Hi!, 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 | lsHelper.java:113) | 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"> | <java-wsdl> | <service name="SampleService" style="rpc" | endpoint="org.jboss.test.ws.samples.rpcstyle.TrivialService"/> | | <namespaces target-namespace="http://org.jboss.ws/samples/rpcstyle" | type-namespace="http://org.jboss.ws/samples/rpcstyle/types"/> | | <mapping file="jaxrpc-mapping.xml"/> | <webservices servlet-link="TrivialEndpoint"/> | </java-wsdl> | </configuration> 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! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951252#3951252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951252 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
