[jboss-user] [JBossWS] - NullPointerException which generating the WSDL file using ws

tapeshag do-not-reply at jboss.com
Thu Nov 9 09:58:21 EST 2006


Hello,
I am trying to generate the descriptiors using the wstools. When I try to run it with my config file, I get the following error

---------------------------------------------------------
Exception in thread "main" java.lang.NullPointerException
        at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:303)
        at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122)
        at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
        at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
        at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
---------------------------------------------------------------

I am using wstools which gets shipped default with JBOSS-4.0.4GA release.

Attaching the contents of the interface and config files

wstools-config.xml
=============

    <java-wsdl>
        
        <namespaces target-namespace="http://hello.ws.jboss.org/"
                    type-namespace="http://hello.ws.jboss.org/types"/>
        
        <webservices servlet-link="TrivialEndPointJSE"/>
    </java-wsdl>


TrivialServiceInterface.java
====================
import java.rmi.Remote;
import java.rmi.RemoteException;

public interface TrivialServiceInterface extends Remote
    {
       String purchase (String person) throws RemoteException;
    }



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984540#3984540

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984540



More information about the jboss-user mailing list