peterstadler / oxgarage-docker Goto Github PK
View Code? Open in Web Editor NEWOxGarage Docker Image
OxGarage Docker Image
Turning on CORS will make it possible to use the dockerized version of OxGarage from Javascript applications in the browser.
This might be enough:
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
I followed the readme file of this docker. I built the image and started the container. All seemed fine.
Then I tried to test it with the follow command (which is from the read me file at https://github.com/TEIC/oxgarage):
$ curl -o test.docx -F [email protected] http://localhost:8080/ege-webservice/Conversions/TEI%3Atext%3Axml/docx%3Aapplication%3Avnd.openxmlformats-officedocument.wordprocessingml.document
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 137k 0 0 100 137k 0 99k 0:00:01 0:00:01 --:--:-- 99k
But I got errors in the log saying:
13:33:17,200 INFO TEIConverter:148 - 2017/11/27 13:33:17: Converting FROM: Documents:TEI P5 XML Document:TEI,text/xml TO Documents:Microsoft Word (.docx):docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document WITH profile null
Exception in thread "Thread-13" java.lang.NoSuchMethodError: net.sf.saxon.Configuration.setProcessor(Ljava/lang/Object;)V
at net.sf.saxon.s9api.Processor.<init>(Processor.java:60)
at org.tei.utils.SaxonProcFactory.getProcessor(SaxonProcFactory.java:21)
at pl.psnc.dl.ege.tei.TEIConverter.convertDocument(TEIConverter.java:231)
at pl.psnc.dl.ege.tei.TEIConverter.convert(TEIConverter.java:153)
at pl.psnc.dl.ege.component.NamedConverter.convert(NamedConverter.java:44)
at pl.psnc.dl.ege.ConversionPerformer.run(ConversionPerformer.java:44)
at java.lang.Thread.run(Thread.java:748)
2017-11-27 13:33:17.261:WARN:oejs.HttpChannel:qtp636718812-17: /ege-webservice/Conversions/TEI%3Atext%3Axml/docx%3Aapplication%3Avnd.openxmlformats-officedocument.wordprocessingml.document
javax.servlet.ServletException: javax.servlet.ServletException: java.util.zip.ZipException: zip file is empty
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:561)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:243)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
Caused by:
javax.servlet.ServletException: java.util.zip.ZipException: zip file is empty
at pl.psnc.dl.ege.webapp.servlet.ConversionServlet.doPost(ConversionServlet.java:280)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:833)
Any ideas please? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.