Pret-a-LLOD / teanga-dkpro-wrapper

A wrapper for DKPro in Teanga
0 stars 0 forks source link

org.insightcentre.uld.teanga.dkprowrapper.DKProWrapper #1

Closed chiarcos closed 3 years ago

chiarcos commented 3 years ago

java.lang.ClassNotFoundException: org.insightcentre.uld.teanga.dkprowrapper.DKProWrapper reported when running mvn install jetty:run. The server starts, but curl requests just return HTTP ERROR 503 Service Unavailable, e.g.,

$> curl -v -X POST -H "Content-Type: application/json" --data \
'{"documentText":"this is a test","language":"en"}' \
http://localhost:8080/opennlp_segmenter

Log:

[WARNING] unavailable
java.lang.ClassNotFoundException: org.insightcentre.uld.teanga.dkprowrapper.DKProWrapper
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    ...
[WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@657becc9{/,file:///home/chiarcos/teanga/teanga-dkpro-wrapper/src/main/webapp/,UNAVAILABLE}{file:///home/chiarcos/teanga/teanga-dkpro-wrapper/src/main/webapp/}
javax.servlet.ServletException: Resource configuration class org.insightcentre.uld.teanga.dkprowrapper.DKProWrapper could not be loaded.
    at org.glassfish.jersey.servlet.WebComponent.createResourceConfig (WebComponent.java:520)
    ...
    Caused by: java.lang.ClassNotFoundException: org.insightcentre.uld.teanga.dkprowrapper.DKProWrapper
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    ...
jmccrae commented 3 years ago

Hi Christian, README is out-of-date. See new instructions.