Open taha-y-merghani opened 7 years ago
I have the same issue!
java 9 Java(TM) SE Runtime Environment (build 9+181) Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
2017-11-16 17:22:15,609 4506 [main] INFO org.eclipse.jetty.util.log - jetty-7.x.y-SNAPSHOT
2017-11-16 17:22:15,630 4527 [main] INFO org.eclipse.jetty.util.log - Extract jar:file:/Users/dumadan/nlp/dexter2/dexter-2.1.0.jar!/ to /Users/dumadan/nlp/dexter2/work/webapp
Nov 16, 2017 5:22:24 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
it.cnr.isti.hpc.dexter.rest
com.wordnik.swagger.jersey.listing
Nov 16, 2017 5:22:27 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
class it.cnr.isti.hpc.dexter.rest.GraphRestService
class it.cnr.isti.hpc.dexter.rest.JSONPService
class it.cnr.isti.hpc.dexter.rest.RestService
class com.wordnik.swagger.jersey.listing.ApiListingResourceJSON
Nov 16, 2017 5:22:27 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Provider classes found:
class com.wordnik.swagger.jersey.listing.JerseyApiDeclarationProvider
class com.wordnik.swagger.jersey.listing.JerseyResourceListingProvider
Nov 16, 2017 5:22:27 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 05:30 PM'
2017-11-16 17:22:28,173 17070 [main] WARN org.eclipse.jetty.util.log - FAILED Jersey Web Application: java.lang.NoClassDefFoundError: javax/xml/ind/JAXBException
2017-11-16 17:22:28,285 17182 [main] WARN org.eclipse.jetty.util.log - FAILED o.e.j.w.WebAppContext{/dexter-webapp,file:/Users/dumadan/nlp/dexter2/work/webapp/},file:/Users/dumadan/nlp/dexter2/dexter-2.1.0.jar: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
2017-11-16 17:22:28,285 17182 [main] WARN org.eclipse.jetty.util.log - FAILED org.eclipse.jetty.server.handler.HandlerList@1f2d2181: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
2017-11-16 17:22:28,288 17185 [main] WARN org.eclipse.jetty.util.log - Error starting handlers
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.sun.jersey.server.impl.wadl.WadlFactory.init(WadlFactory.java:96) ~[dexter-2.1.0.jar:na]
at com.sun.jersey.server.impl.application.RootResourceUriRules.initWadl(RootResourceUriRules.java:169) ~[dexter-2.1.0.jar:na]
at com.sun.jersey.server.impl.application.RootResourceUriRules.
what JVM are you using?
have a look at https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j
in alternative, can you try running dexter follow the steps that I wrote in https://github.com/dexter/dexter/issues/32?
I'm using the official Oracle Java 9 JVM, as I posted above, and on MacOS Sierra: Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
Adding --add-modules java.xml.bind to the command line as the stackoverflow article above recommends worked, so it's clearly a Java 9 thing :)
Apparently the order of parameters matters, so:
java -Xmx3000m --add-modules java.xml.bind -jar dexter-2.1.0.jar
As a side note, I tried mvn compile inside dexter-webapp as you recommend in #32 , and this happened:
[ERROR] Failed to execute goal on project dexter-webapp: Could not resolve dependencies for project it.cnr.isti.hpc:dexter-webapp:jar:2.1.0: The following artifacts could not be resolved: it.cnr.isti.hpc:dexter-core:jar:2.1.0, it.cnr.isti.hpc:dexter-tagme:jar:2.1.0, it.cnr.isti.hpc:dexter-wikiminer:jar:2.0.0, it.cnr.isti.hpc:json-wikipedia:jar:1.0.0, it.cnr.isti.hpc:dexter-common:jar:0.0.1-SNAPSHOT, simplenlg:simplenlg:jar:4.4: Could not find artifact it.cnr.isti.hpc:dexter-core:jar:2.1.0 in diego's dropbox (https://dl.dropboxusercontent.com/u/4663256/mvn-repository/)
Now loading http://localhost:8080/dexter-webapp/dev/
I see the Swagger interface but it only shows this in the content space:
500 : undefined http://localhost:8080/dexter-webapp/api/api-docs/
I post this here as it seems relevant to the error before.
Hi,
I followed the following steps
Here is a dump from the terminal
Then went to the link provided http://localhost:8080/dexter-webapp/dev, but received a 404 Error Message.
How can I proceed?