Hi Markus, Markus Unger (RDG) wrote: > Hello, > > I tryed to work with axis2 and the getting startet guide. But I get > errors while starting the tools under %AXIS_PATH%\bin. No > ClassDefFound... and that with alle *.bat file in the directory. I > tryed the version 1.3 and 1.2 the same errors: > > ==================== > > C:\Dokumente und > Einstellungen\ungerk>C:\Downloads\axis2-1.3\bin\axis2server.bat > Using JAVA_HOME C:\Programme\Java\jdk1.5.0_14 > Using AXIS2_HOME C:\Downloads\axis2-1.3 > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/axis2/transport/SimpleAxis2Server > C:\Dokumente und Einstellungen\ungerk>echo %CLASSPATH% > .;C:\Programme\Java\jre1.5.0_13\lib\ext\QTJava.zip > > C:\Dokumente und Einstellungen\ungerk>set > CLASSPATH=%CLASSPATH%;C:\Downloads\axis2-1.3\lib\ > > C:\Dokumente und > Einstellungen\ungerk>C:\Downloads\axis2-1.3\bin\axis2server.bat > Using JAVA_HOME C:\Programme\Java\jdk1.5.0_14 > Using AXIS2_HOME C:\Downloads\axis2-1.3 > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/axis2/transport/SimpleAxis2Server > C:\Dokumente und Einstellungen\ungerk>echo %CLASSPATH% > .;C:\Programme\Java\jre1.5.0_13\lib\ext\QTJava.zip;C:\Downloads\axis2-1.3\lib\ > > > ==================== > > I think the AXIS2_HOME is set correct and the JAVA_HOME too.. First I > tryed to start without the AXIS_HOME\lib and then with.. but it didn't > work... Since the files in the AXIS2_HOME\lib folder are .jar files, if you were to do it manually, you would need to add each .jar to the classpath, and not just the lib folder. But the .bat script is supposed to take care of this. > I must only download the "Standard Distrubtion" and extract it on the > filesystem.. set the AXIS2_HOME and it must work right? Yes that is correct. Actually, you shouldn't even need to set AXIS2_HOME. Setting JAVA_HOME should suffice. > > btw.. The Webapplication starts without no problem, I can develop my > own services and invoke the datas by my own client. > > Anybody a idea why this tools not work? > > Thanks for Help > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This is a case of the AXIS2_CLASSPATH not getting set correctly IMO. Try this. Open up the .bat script in notepad and comment out the topmost line (@echo off) by putting a 'rem' in front of it. Then run it again and see if the AXIS2_CLASS_PATH variable gets created properly. i.e. all the .jars in the lib folder should get appended to it sequentially. If not, please check where it's breaking down.
Hope this helps. Suran --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
