Hi all,
I've just compiled from git the basex, basex-api, and basex-example repos, using maven. When I try to start, in basex-api, etc/basexhttp, I get:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Handler at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.basex.BaseXHTTP. Program will exit.
Which to me suggests I'm missing Jetty stuff, however I'm unsure why that wasn't brought to my attention during the compile? I'm all kinds of confused.
Thanks for any help, Jay
Hi Jay,
you need to call "mvn package", which will create an "etc" directory in your basex directory that contains all relevant libraries for the startup script. As an alsternative, you can type in "mvn jetty:run", which will access all libraries from Maven’s .m2 local directory. I have extended our documentation a little to make this more obvious [1].
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Maven ___________________________ On Tue, Jan 29, 2013 at 12:38 PM, Jay Straw thisiswherejunkgoes@gmail.comwrote:
Hi all,
I've just compiled from git the basex, basex-api, and basex-example repos, using maven. When I try to start, in basex-api, etc/basexhttp, I get:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Handler at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.basex.BaseXHTTP. Program will exit.
Which to me suggests I'm missing Jetty stuff, however I'm unsure why that wasn't brought to my attention during the compile? I'm all kinds of confused.
Thanks for any help, Jay
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de