Git Product home page Git Product logo

oxgarage-docker's People

Contributors

peterstadler avatar

Stargazers

 avatar

Watchers

 avatar  avatar

oxgarage-docker's Issues

Turn on CORS on Tomcat

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>

javax.servlet.ServletException: java.util.zip.ZipException: zip file is empty

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.

Using different port causes 404

I tried running the service with -p 8081:8080 and it appeared to run correctly, but some resources returned 404. The service works as expected with -p 8080:8080.

http://localhost:8081/ege-webclient/ was reachable, but /Conversions/ and /Validations/ returned 404, see screenshot below.

screenshot from 2017-12-26 12-57-14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.