----- Original Message ----- From: "Gene Chuang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 29, 2002 21:19 Subject: Re: axis ant task in netbeans
> > > Thanks for the pointers guys. I'm ALMOST there! I added the classpathref to taskdef, but then ANT complained of not finding my service class. So I added <classpath> to the task: > <axis-java2wsdl classname="com.my.Service" location="${service_url}"> > <classpath><pathelement location="."/></classpath> > </axis-java2wsdl> > But now I get a NullPointer > java.lang.NullPointerException > at java.util.StringTokenizer.<init>(StringTokenizer.java:119) > at java.util.StringTokenizer.<init>(StringTokenizer.java:135) > at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.jav a:177) > I examined Java2WsdlAntTask.java (cvs ver 1.14) and noticed the NPE is occuring because execute() is trying to StrTok the value of 'extraClasses', an attribute I did not set (do I need to?) looks like a bug. will fix in CVS. >So to circumvent the NPE, I added extraClasses="" attribute, but now I get this: > Java2WSDL com.overture.service.Advertiser > java.lang.NoClassDefFoundError: javax/xml/namespace/QName > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:1627) > at java.lang.Class.privateGetPublicMethods(Class.java:1655) > at java.lang.Class.getMethod0(Class.java:1744) That means that something isnt in the classpath for the task declaration, specifically whatever contains the missing class... jaxrpc.jar would be a guess.