Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.ClassNotFoundException using Java2WSDL

843833Mar 14 2008 — edited Mar 14 2008
Hi all,

I am new to Web Services. I am trying to use Java2WSDL to get WSDL file and i am working on MacOSX.

The Java code of the Interface is the following:
package sbmlSolver;

public interface ProcessCatalog {
    public void createSolver(String UID, String model_filename, double totalTime, int numSteps);
    public double[] step(String UID, String[] speciesToChange, double[] newValues, String[] wantedSpecies);
    public void cleanup(String UID);
}
I used the following command:
java -cp ./sbmlSolver:$AXISCLASSPATH org.apache.axis.wsdl.Java2WSDL 
-o sbml.wsdl -l"http://localhost:8080/axis/services/sbmlSolver" -n "urn:sbmlSolver" 
-p"sbmlSolver" "sbmlSolver" sbmlSolver.ProcessCatalog
And I am getting the following error:
java.lang.ClassNotFoundException: sbmlSolver.ProcessCatalog
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
	at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
	at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079)
	at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:584)
	at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:682)
Anyone of you knows why it is not working?

Thank you in advance for your responses.

Eva.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2008
Added on Mar 14 2008
3 comments
352 views