It sounds like you need to add the current directory to your classpath. set CLASSPATH=.; followed by all of your jar files
I also noticed that I also included log4j-core.jar to my Axis classpath. -----Original Message----- From: Andy Faraclas [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 1:57 PM To: [EMAIL PROTECTED] Subject: Trouble running Apache Axis Hello, I have just downloaded Axis beta2 release but I am having trouble getting my code to work. I am using Tomcat 4.0. The .jws file seems to be working okay and is generating a wsdl file When I run the examples however I am recieving this error.(I have Tomcat running) Exception in thread "main" java.lang.NoClassDefFoundError: CalcClient (wrong name: samples/userguide/example2/CalcClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) I believe the problem is related to not properly setting my classpath. Where and how should I set my classpath. I am using Windows XP Here is what the user guide says to do xml-axis-beta2/lib/axis.jar xml-axis-beta2/lib/jaxrpc.jar xml-axis-beta2/lib/commons-logging.jar xml-axis-beta2/lib/tt-bytecode.jar xml-axis-beta2/lib/wsdl4j.jar xml-axis-beta2/ (for the sample code) A JAXP-1.1 compliant XML parser such as xerces or crimson I have tried to set the classpath in a few different places but have had no luck. I had copied the above files into a lib dir I created under C:\Projects and tried setting my classpath at the prompt but that failed to work. I can't find anyplace in Tomcat to set the classpath. I tried doing it in C:\Program Files\Apache Tomcat 4.0\bin\setclasspath.bat but I had no luck. Let me know if anybody knows of any possible solutions. Thanks for your help Andy __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
