I hope that more info may help generate something to help me. Here is what i have done thus far.
Ok. where to start. I have
tomcat 4.1 installed at c:\tomcat4.1.
I have axis in C:\Tomcat4.1\webapps\axis. I have added this to my classpath
set CLASSPATH="C:\Tomcat4.1\webapps\axis\WEB-INF\lib\*"
lib has following jars:
axis
axis-ant
commons-logging-1.0.4
commons-discovery-0.2
jaxrpc
log4j-1.2.8
saaj
wsdl4j-1.5.1
I have read mail & activation must also be there however they were not in axis-bin_1.4 i downloaded. I'm thinking about taking those two from an axis2 i downloaded and moving them into lib but seems kinda strange to be mixig jars from different versions.
So I start tomcat and go to
http://localhost:8080/axis/happyaxis.jsp and everything is ok except for an optional element:
Warning: could not find class org.apache.xml.security.Init from file xmlsec.jar
XML Security is not supported.
See
http://xml.apache.org/security/
I'm assuming this is not my problem.
Now i try to go to the command line and enter:
C:\Documents and Settings\steve>java org.apache.axis.wsdl.WSDL2Java -a "C:\Tomca
t4.1\webapps\axis\enterprise.wsdl"
Exception in
thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/
WSDL2Java
Caused by: java.lang.ClassNotFoundException: org.apache.axis.wsdl.WSDL2Java
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)
Could not find the main class: org.apache.axis.wsdl.WSDL2Java. Program will exi
t.
Then from reading around i have seen it is the setting up the classpath that is the most common issue so i try to explicitly enter in the class path:
java –classpath c:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar; org.apache.axis.wsdl.WSDL2Java -a C:\Tomcat4.1\webapps\axis\enterprise.wsdl
C:\Documents and Settings\steve>java -classpath c:\Tomcat4.1\webapps\axis\WEB-IN
F\lib\axis.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Tomcat4.1\w
ebapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Tomcat4.1\webapps\axis\WEB-
INF\lib\commons-logging-1.0.4.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\jaxrpc.j
ar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat4.1\webapps\ax
is\WEB-INF\lib\saaj.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C
:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar; org.apache.axis.wsdl.WSD
L2Java -a C:\Tomcat4.1\webapps\axis\enterprise.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: ûclasspath
Caused by: java.lang.ClassNotFoundException: ûclasspath
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)
Could not find the main class: GÇôclasspath. Program will exit.
I'm confused when you enter in java org.apache.axis.wsdl.WSDL2Java where exactly is "org.apache.axis.wsdl.WSDL2Java" it was not in the axis1.4 bin from what i could see the onlything close was wsdl4j? I'm not seeing that in java as well. I thought wsdl2java was part of the axis package? I go into axis2-1.4.1 and there does exist wdsl2java ? Do i have the wrong axis? I was told not to use axis2 instead axis1.4.
Please i'm so frustrated and have tried everything i can possibly think of.
I need help!