[jboss-user] [JBossWS] - EJB3.0 as webservices/ error in geneerating wsdl

MmarcoM do-not-reply at jboss.com
Sat Sep 30 12:11:19 EDT 2006


hi all,
 i am trying to generate a wsdl file for my Stateless SessioinBean that i want to expose as a webservice.
here's bean code

  | @WebService (name="EndpointInterface",
  | 			 targetNamespace="http://org.jboss.ws/samples/jsr181ejb",
  | 			 serviceName="TestFacade")
  | 			 
  | @Stateless
  | @Remote ( {WSFacade.class})
  | @RemoteBinding( jndiBinding="/ejb3/WSFacade")
  | 
  | public class TestFacade implements WSFacade{
  | ...
  | 

whenever i run wstools ant task, i got back following exception


  | org.jboss.ws.WSException: A service endpoint interface should extend Remote
  |         at org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.buildMetaDa
  | (ToolsUnifiedMetaDataBuilder.java:82)
  |         at org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.<init>(Tool
  | nifiedMetaDataBuilder.java:69)
  |         at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:298)
  |         at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(T
  | lsHelper.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.ant.wstools.execute(wstools.java:103)
  |         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275
  |         at org.apache.tools.ant.Task.perform(Task.java:364)
  |         at org.apache.tools.ant.Target.execute(Target.java:341)
  |         at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(Abstrac
  | ntMojo.java:99)
  |         at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:8
  | 
  |         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlu
  | nManager.java:412)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(De
  | ultLifecycleExecutor.java:534)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWith
  | 

and here is my wstools-config.xml

  | <configuration xmlns="http://www.jboss.org/jbossws-tools">
  |     <java-wsdl>
  |             <service name="TestFacade" style="rpc" endpoint="com.mm.j2me.ejb.TestFacade"/>
  |             <namespaces target-namespace="http://org.jboss.ws/samples/jsr181ejb"
  |                         type-namespace="http://org.jboss.ws/samples/jsr181ejb"/>
  |             <mapping file="jaxrpc-mapping.xml"/>
  |             <webservices ejb-link="TestFacade"/>
  |     </java-wsdl>
  |     
  | </configuration>
  | 

but if my ejb has already the @Remote annotation, why am i getting this?

thanks in advance and regards
 marco



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

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



More information about the jboss-user mailing list