Starting Server --> Exception in thread

Saturday, 14 August 2010 · 5 messages · last reply 17 Aug 2010
M
martina.haenzi14 Aug 2010 10:14 #
Hi I have a problem with starting the Server on my MacBook. If I execute the Unix-File from basex-api (startjaxrx) the Terminal displays: "Exception in thread "main" java.lang.NoClassDefFoundError: StartJaxRx logout" And if I execute the Jar-File (BaseX61-jaxrx.jar) this Error displays on the console: "Faild to load Main-Class manifest attribut from /Applications/basex-api/BaseX61-jaxrx.jar" If I'm using BaseX on my virtual machine (Windows XP professional) there ist a similar problem. The MS-DOS-File displays: "Exception in thread "main" org.jaxrx.core.JaxRxException at org.jaxrx.StartJetty.<init>(StartJetty.java:46) at StartJaxRx.main(StartJetty.java:41)" What am I doing wrong? Thanks for your help.
AW
Andreas Weiler14 Aug 2010 10:34 #
Hi Martina, if you just want to start the BaseXServer you have to download BaseX61.jar and call it with: java -cp BaseX61.jar org.basex.BaseXServer if you want to use the JAX-RX Interface to communicate with the BaseXServer have a look at this documentation page: http://www.inf.uni-konstanz.de/dbis/basex/rest Kind regards, Andreas
Quoted text · martina.haenzi · 25 lines
martina.haenzi at students.fhnw.ch schrieb: > Hi > > I have a problem with starting the Server on my MacBook. > If I execute the Unix-File from basex-api (startjaxrx) the Terminal displays: > "Exception in thread "main" java.lang.NoClassDefFoundError: StartJaxRx > logout" > > And if I execute the Jar-File (BaseX61-jaxrx.jar) this Error displays on the console: "Faild to load Main-Class manifest attribut from > /Applications/basex-api/BaseX61-jaxrx.jar" > > > If I'm using BaseX on my virtual machine (Windows XP professional) there ist a similar problem. The MS-DOS-File displays: > "Exception in thread "main" org.jaxrx.core.JaxRxException > at org.jaxrx.StartJetty.<init>(StartJetty.java:46) > at StartJaxRx.main(StartJetty.java:41)" > > What am I doing wrong? > > Thanks for your help. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
HS
Hänzi Martina (s)14 Aug 2010 11:37 #
Hi Andreas Thanks for your quick answer. Now I got this error, if i execute "java -cp BaseX61.jar org.basex.BaseXServer" in the Filer "basex-api":
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
i downloaded the basex-api.zip from the uni konstanz homepage. Any ideas whats wrong? I don't think its realy the .class file thanks and kind regards Martina
Quoted text · Andreas Weiler · 39 lines
Von: Andreas Weiler [andreas.weiler at uni-konstanz.de] Gesendet: Samstag, 14. August 2010 10:34 An: Hänzi Martina (s) Cc: basex-talk at mailman.uni-konstanz.de Betreff: Re: [basex-talk] Starting Server --> Exception in thread Hi Martina, if you just want to start the BaseXServer you have to download BaseX61.jar and call it with: java -cp BaseX61.jar org.basex.BaseXServer if you want to use the JAX-RX Interface to communicate with the BaseXServer have a look at this documentation page: http://www.inf.uni-konstanz.de/dbis/basex/rest Kind regards, Andreas martina.haenzi at students.fhnw.ch schrieb: > Hi > > I have a problem with starting the Server on my MacBook. > If I execute the Unix-File from basex-api (startjaxrx) the Terminal displays: > "Exception in thread "main" java.lang.NoClassDefFoundError: StartJaxRx > logout" > > And if I execute the Jar-File (BaseX61-jaxrx.jar) this Error displays on the console: "Faild to load Main-Class manifest attribut from > /Applications/basex-api/BaseX61-jaxrx.jar" > > > If I'm using BaseX on my virtual machine (Windows XP professional) there ist a similar problem. The MS-DOS-File displays: > "Exception in thread "main" org.jaxrx.core.JaxRxException > at org.jaxrx.StartJetty.<init>(StartJetty.java:46) > at StartJaxRx.main(StartJetty.java:41)" > > What am I doing wrong? > > Thanks for your help. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AW
Andreas Paul Weiler14 Aug 2010 13:16 #
Hi Martina, you have to download the whole BaseX-Project at http://www.inf.uni-konstanz.de/dbis/basex/download/BaseX61.jar Then just start the server with: --> java -cp BaseX61.jar org.basex.BaseXServer More documentation can be found here: http://www.inf.uni-konstanz.de/dbis/basex/server I hope this helps, feel free to ask for more assistance. Kind regards, Andreas Zitat von "Hänzi Martina (s)" <martina.haenzi at students.fhnw.ch>:
Quoted text · Hänzi Martina (s) · 79 lines
> Hi Andreas > > Thanks for your quick answer. Now I got this error, if i execute > "java -cp BaseX61.jar org.basex.BaseXServer" in the Filer "basex-api": > Exception in thread "main" java.lang.UnsupportedClassVersionError: > Bad version number in .class file > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:676) > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:317) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375) > > i downloaded the basex-api.zip from the uni konstanz homepage. > > Any ideas whats wrong? I don't think its realy the .class file > > thanks and kind regards > Martina > > > > ________________________________________ > Von: Andreas Weiler [andreas.weiler at uni-konstanz.de] > Gesendet: Samstag, 14. August 2010 10:34 > An: Hänzi Martina (s) > Cc: basex-talk at mailman.uni-konstanz.de > Betreff: Re: [basex-talk] Starting Server --> Exception in thread > > Hi Martina, > > if you just want to start the BaseXServer you have to download BaseX61.jar > and call it with: > java -cp BaseX61.jar org.basex.BaseXServer > > if you want to use the JAX-RX Interface to communicate with the BaseXServer > have a look at this documentation page: > http://www.inf.uni-konstanz.de/dbis/basex/rest > > Kind regards, > Andreas > > martina.haenzi at students.fhnw.ch schrieb: >> Hi >> >> I have a problem with starting the Server on my MacBook. >> If I execute the Unix-File from basex-api (startjaxrx) the Terminal >> displays: >> "Exception in thread "main" java.lang.NoClassDefFoundError: StartJaxRx >> logout" >> >> And if I execute the Jar-File (BaseX61-jaxrx.jar) this Error >> displays on the console: "Faild to load Main-Class manifest >> attribut from >> /Applications/basex-api/BaseX61-jaxrx.jar" >> >> >> If I'm using BaseX on my virtual machine (Windows XP professional) >> there ist a similar problem. The MS-DOS-File displays: >> "Exception in thread "main" org.jaxrx.core.JaxRxException >> at org.jaxrx.StartJetty.<init>(StartJetty.java:46) >> at StartJaxRx.main(StartJetty.java:41)" >> >> What am I doing wrong? >> >> Thanks for your help. >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > >
HS
Hänzi Martina (s)17 Aug 2010 09:51 #
Yes, it's working with java 6 thanks
Quoted text · Lukas Lewandowski · 90 lines
Von: Lukas Lewandowski [lukas.lewandowski at uni-konstanz.de] Gesendet: Montag, 16. August 2010 10:27 An: Hänzi Martina (s) Betreff: Re: [basex-talk] Starting Server --> Exception in thread Hi Martina, does it work now? If not, which java version do you use? BaseX and its packages need at least java 6. regards Lukas Hänzi Martina (s) wrote: > Hi Andreas > > Thanks for your quick answer. Now I got this error, if i execute "java -cp BaseX61.jar org.basex.BaseXServer" in the Filer "basex-api": > Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:676) > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:317) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375) > > i downloaded the basex-api.zip from the uni konstanz homepage. > > Any ideas whats wrong? I don't think its realy the .class file > > thanks and kind regards > Martina > > > > ________________________________________ > Von: Andreas Weiler [andreas.weiler at uni-konstanz.de] > Gesendet: Samstag, 14. August 2010 10:34 > An: Hänzi Martina (s) > Cc: basex-talk at mailman.uni-konstanz.de > Betreff: Re: [basex-talk] Starting Server --> Exception in thread > > Hi Martina, > > if you just want to start the BaseXServer you have to download BaseX61.jar > and call it with: > java -cp BaseX61.jar org.basex.BaseXServer > > if you want to use the JAX-RX Interface to communicate with the BaseXServer > have a look at this documentation page: > http://www.inf.uni-konstanz.de/dbis/basex/rest > > Kind regards, > Andreas > > martina.haenzi at students.fhnw.ch schrieb: > >> Hi >> >> I have a problem with starting the Server on my MacBook. >> If I execute the Unix-File from basex-api (startjaxrx) the Terminal displays: >> "Exception in thread "main" java.lang.NoClassDefFoundError: StartJaxRx >> logout" >> >> And if I execute the Jar-File (BaseX61-jaxrx.jar) this Error displays on the console: "Faild to load Main-Class manifest attribut from >> /Applications/basex-api/BaseX61-jaxrx.jar" >> >> >> If I'm using BaseX on my virtual machine (Windows XP professional) there ist a similar problem. The MS-DOS-File displays: >> "Exception in thread "main" org.jaxrx.core.JaxRxException >> at org.jaxrx.StartJetty.<init>(StartJetty.java:46) >> at StartJaxRx.main(StartJetty.java:41)" >> >> What am I doing wrong? >> >> Thanks for your help. >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >

⚡Generated with XQuery