I'm attempting to use Java2WSDL to create a WSDL file for a web service class that will eventually be deployed under Axis. However, Java2WSDL is just throwing a NullPointerException. I've tried tweaking the parameters to no avail. My command line is (summarized):

java -cp $AXIS_CLASSPATH
     org.apache.axis.wsdl.Java2WSDL
     -X classes/
     -o EntityBeanManagement.wsdl
     -l http://localhost:8080/DFTService/ManagerService
     -n "http://services.dft.mycompany.com";
     -p"com.mycompany.dft.beans"="http://beans.dfd.mycompany.com";
     -p"com.mycompany.dft.maps"="http://maps.dft.mycompany.com";
     com.mycompany.dft.services.ManagerService

I've tried various permutations with no -p, one -p no -n, etc. All generate this exception:

java.lang.NullPointerException
at org.apache.axis.utils.ClassUtils.createClassLoader(ClassUtils.java:291)
        at org.apache.axis.wsdl.Java2WSDL.parseOption(Java2WSDL.java:491)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:564)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:682)

I'm using a binary distribution of Axis 1.3 downloaded from the official site.

What might be causing this?


Cheers,
-Martin

Reply via email to