3 Replies Latest reply on Nov 19, 2006 1:12 AM by tapeshag

    NullPointerException which generating the WSDL file using ws

    tapeshag

      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;
      }