It should not be necessary to change the pom or add dependencies. E.g. the build server travis does not need tweaking. Did you try:
./graphhopper.sh web europe_germany_berlin.pbf Peter On 22.11.2014 09:07, Yang wrote: > ok, I added this > http://mvnrepository.com/artifact/aopalliance/aopalliance/1.0 > > to pom, then it works, > > > I guess the 0.3 branch is supposed to be tested and without basic > bugs. looks not ? > > On Fri, Nov 21, 2014 at 11:56 PM, Yang <[email protected] > <mailto:[email protected]>> wrote: > > I tried to compile the code according > > tohttps://github.com/graphhopper/graphhopper/blob/0.3/docs/core/quickstart-from-source.md > > or simply mvn compile, but it gave some error saying javax.inject > can't be found, then I added the necessary dependency to pom.xml, > then it compiles. but when I start up the service and sent a > request, the server fails: > > |Exception in thread "main" java.lang.NoClassDefFoundError: > [Lorg/aopalliance/intercept/MethodInterceptor; > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) > at java.lang.Class.getDeclaredMethods(Class.java:1855) > at > com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:81) > at > com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:73) > at > com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223) > at > com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:232) > at com.google.inject.AbstractModule.install(AbstractModule.java:118) > at com.graphhopper.http.GHServer$1.configure(GHServer.java:111) > at com.google.inject.AbstractModule.configure(AbstractModule.java:59) > at > com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223) > at com.google.inject.spi.Elements.getElements(Elements.java:101) > at > com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133) > at > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103) > at com.google.inject.Guice.createInjector(Guice.java:95) > at com.google.inject.Guice.createInjector(Guice.java:72) > at com.google.inject.Guice.createInjector(Guice.java:62) > at com.graphhopper.http.GHServer.start(GHServer.java:61) > at com.graphhopper.http.GHServer.main(GHServer.java:47) > Caused by: java.lang.ClassNotFoundException: > org.aopalliance.intercept.MethodInterceptor > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 19 more > | > > | > | > |Thanks!| > |Yang| > > > > > _______________________________________________ > GraphHopper mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/graphhopper
_______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
