3 Replies Latest reply on Jan 4, 2007 8:24 AM by Darren Pitt

    Problem with wstools (Endpoint ... cannot be loaded)

    Joel Linden Newbie


      I'm having trouble generating wsdl with wstools.bat in Windows. I have copy-pasted the JBossWS User Guide's "simple RPC Style Endpoint" example and I'm trying to run wstools for it but it generates the following errors:

      log4j:WARN No appenders could be found for logger (org.jboss.ws.tools.WSTools).
      log4j:WARN Please initialize the log4j system properly.
      Exception in thread "main" org.jboss.ws.WSException: Endpoint org.jboss.test.ws.
      samples.rpcstyle.TrivialService cannot be loaded
       at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(Too
       at org.jboss.ws.tools.WSTools.process(WSTools.java:129)
       at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
       at org.jboss.ws.tools.WSTools.main(WSTools.java:61)

      Here is a listing for config.xml, TrivialService.java and TrivialEndpointJSE.java:
      <configuration xmlns="http://www.jboss.org/jbossws-tools">
       <service name="SampleService" style="rpc"
       <namespaces target-namespace="http://org.jboss.ws/samples/rpcstyle"
       <mapping file="jaxrpc-mapping.xml"/>
       <webservices servlet-link="TrivialEndpoint"/>

      package org.jboss.test.ws.samples.rpcstyle;
      import java.rmi.Remote;
      import java.rmi.RemoteException;
      public interface TrivialService extends Remote
       String purchase (String person, String product) throws RemoteException;

      package org.jboss.test.ws.samples.rpcstyle;
      public class TrivialEndpointJSE implements TrivialService
       public String purchase (String person, String product)
       return "ok";

      I have copied these files to JBoss's /bin directory and I'm trying to run wstools in that same directory with: wstools.bat -cp . -config config.xml

      I'm using jboss-4.0.4.GA

      Does anyone have any ideas why TrivialService cannot be loaded?

      Thanks in advance!