Don, The JAR file names in your classpath don't match up to the names in my 1.2.1 download of Axis; I had the same problem when I copied a classpath setup script from the wiki (but had forgotten until Tim mentioned it).
You'll want to go through and compare each JAR name against the real JAR in your /lib directory; for example, commons-discovery.jar is actually commons-discovery-0.2.jar on my system. That might be all you need to do... we'll see if Tim comes up with something additional. If you haven't discovered this page on the wiki yet, it might be useful: http://wiki.apache.org/ws/FrontPage/Axis/UsingCommandLineTools BTW, thanks for the reminder about quotation marks for spaced-classpaths, Tim, I remember reading that once but had never needed to use it. :) Meghan Tim, This is what the AXISCLASSPATH look like, D:\axis121\AXIS-1~1\samples\stock>echo %AXISCLASSPATH% D:\axis121\axis-1_2_1\lib\axis.jar;D:\axis121\axis-1_2_1\lib\commons-dis covery.jar;D:\axis121\axis-1_2_1\lib\commons-logging.jar;D:\axis121\axis -1_2_1\lib\jaxrpc.jar;D:\axis121\axis-1_2_1\lib\saaj.jar;D:\axis121\axis -1_2_1\lib\log4j-1.2.8.jar;D:\axis121\axis-1_2_1\lib\xml-apis.jar;D:\axi s121\axis-1_2_1\lib\xercesImpl.jar Thanks, Don -----Original Message----- From: Bish, Tim [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:15 AM To: '[email protected]' Subject: RE: Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons??? What does you AXISCLASSPATH look like? Can you dump it out and attach paste it into an email? ----------------------------------------- Timothy A. Bish Sensis Corperation 5717 Enterprise Parkway East Syracuse, NY 13057 Phone: (315) 634-3027 [EMAIL PROTECTED] ----------------------------------------- -----Original Message----- From: Chen, Donald [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 10:05 AM To: [email protected] Subject: RE: Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons??? Meghan, Thanks for the advice. I reran the commend and I got the same response: D:\axis121\AXIS-1~1\samples\stock>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/a is/services/AdminService deploy.wsdd Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.ja va:41) at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33 ) at org.apache.axis.client.AdminClient.<clinit>(AdminClient.java:48) Any idea? Don -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 5:19 PM To: [email protected] Subject: Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons??? Don, >From your copy and paste below, it appears that you put the AXISCLASSPATH variable in quotation marks. Don't do that; you want the shell to fill in the actual value--that's what the percent signs are for. Meghan Pietila Granite Consulting On a Win box, I followed the Axis 1.2 "Installation Guide" and tried the "Run the admin client" java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd I am pretty sure the path %AXISCLASSPATH% was set right, but I still got this errors: D:\axis121\AXIS-1~1\samples\stock>java -cp "%AXISCLASSPATH%" org.apache.axis. axis/services/AdminService deploy.wsdd Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons at org.apache.axis.components.logger.LogFactory.class$(LogFactory.jav at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFact at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.j at org.apache.axis.client.AdminClient.<clinit>(AdminClient.java:48) Is this related to the JCL classloader issue or something else? How can I go around it? This is my configure: Axis 1.2 Tomcat5.5.9, WinXPPro, JRE1.5. Thanks, Don
