WSDL create fails
ssholtis Oct 13, 2004 5:34 PMI used the sample HelloWorld and just modified it to use my own class names. I'm using JBOSS 4 with Eclipse 3.0. I keep getting the following when the build script runs.
Buildfile: C:\Java\build\webServiceBuild.xml
validate:
fail_if_not_valid:
prepare:
wsdl:
[java] java.lang.ClassNotFoundException: recvOrder
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Unknown Source)
[java] at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
[java] at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112)
[java] at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:1477)
[java] at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:500)
[java] at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:542)
[java] Java Result: 1
war:
dist:
[copy] Copying 1 file to C:\packages\jboss-4.0.0\server\default\deploy
main:
BUILD SUCCESSFUL
Total time: 22 seconds
This is the build script: You will notice that the compile etc is commented out. I have another ant script which does all my compiling. The class is compiled, and in the acts.jar which is in the classpath. I dont get it.
<!-- the other jars for axis, servlets, etc are added to the classpath
-->
<!-- set the classpath for compiling files -->
<!-- now copy across the files
-->
<!-- compile the code
-->
<!--
-->
<!-- now build the wsdl file -->
<!-- now build the war file -->
<!-- for ease of checking that all of the contents are correct
-->
<!-- now deploy the war file -->
<!-- run the client
-->