Actually putting the quote in is necessary if the directories in the paths in the CLASSPATH variable have spaces in them. The windows shell will correctly expand the value even when surrounded by quotes.
I followed the docs also when first starting out, and got errors very similar to this. What I found was that the filenames in the docs and the actual filenames are not the same for some of the JAR files. Check them carefully. I found some help on the Wiki, and used that info to create the following Batch file to set my AXIS env. My file is pasted below, modify the directories to match your env. @ECHO OFF set AXIS_HOME=C:\Program Files\Axis set ACTIVATION_HOME=C:\Program Files\Java\jaf-1.0.2 set MAIL_HOME=C:\Program Files\Java\javamail-1.3.2 set ["LOG4J"]_PROPERTIES_HOME=C:\Program Files\axis\log4j.properties REM set XML_HOME=C:\lib.dir\xalan-j_2_6_0\bin set AXIS_LIB=%AXIS_HOME%\lib set AXISCP=. set AXISCP=%AXISCP%;%ACTIVATION_HOME%\activation.jar set AXISCP=%AXISCP%;%AXIS_LIB%\axis-ant.jar set AXISCP=%AXISCP%;%AXIS_LIB%\axis.jar set AXISCP=%AXISCP%;%AXIS_LIB%\commons-discovery-0.2.jar set AXISCP=%AXISCP%;%AXIS_LIB%\commons-logging-1.0.4.jar set AXISCP=%AXISCP%;%AXIS_LIB%\jaxrpc.jar set AXISCP=%AXISCP%;%AXIS_LIB%\saaj.jar set AXISCP=%AXISCP%;%AXIS_LIB%\wsdl4j-1.5.1.jar set AXISCP=%AXISCP%;%MAIL_HOME%\mail.jar REM set AXISCP=%AXISCP%;%AXIS_LIB%\log4j-1.2.8.jar REM set AXISCP=%AXISCP%;%XML_HOME%\xml-apis.jar REM set AXISCP=%AXISCP%;%XML_HOME%\xercesImpl.jar set AXISCP=%AXISCP%;%LOG4J_PROPERTIES_HOME% set CLASSPATH=%AXISCP% ------------------------------------ Timothy A. Bish [EMAIL PROTECTED] -----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
