[GraphHopper] failed to compile, or fail to run the compiled jar

Yang teddyyyy123 at gmail.com
Sat Nov 22 08:07:18 UTC 2014


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 <teddyyyy123 at gmail.com> wrote:

> I tried to compile the code according to
> https://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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20141122/0c71c708/attachment.html>


More information about the GraphHopper mailing list