[jboss-user] [JBossWS] - org.jboss.ws.WSException: Cannot generate wsdl from interfac

soni_rahul337 do-not-reply at jboss.com
Mon Jun 9 10:28:04 EDT 2008


Hi,All 

I have created the webservice that returns the user defined type. I have to use the jboss wstools for developing service. For that I have created the class that containts the getter and setter methods and the required interface and the and the class that implements the intreface with the logic. but now when I am returning the complex-type it will not allow me to generate the wsdl file and another artifacts neccesary for creating the service. The same webservice works fine for the String[] as a return parameter. I have read that wstools generate the response and request classes for the complex type but in my case it wont create. what to do in that case.

Here is the exception that i am getting while executing the wstools ant task:--


  | 
  | [jbosswstools] org.jboss.ws.WSException: Cannot generate wsdl from: interface com.test.testdb.TestDataConnectionInterface
  | [jbosswstools] at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:348)
  | [jbosswstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122)
  | [jbosswstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
  | [jbosswstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
  | [jbosswstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
  | [jbosswstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | [jbosswstools] at org.apache.tools.ant.Task.perform(Task.java:364)
  | [jbosswstools] at org.apache.tools.ant.Target.execute(Target.java:341)
  | [jbosswstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
  | [jbosswstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  | [jbosswstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  | [jbosswstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  | [jbosswstools] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
  | [jbosswstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  | [jbosswstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
  | [jbosswstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
  | 
  | 


My Environment is:--

Jboss 4.0.5 GA
Apache Ant 1.6.5
Jdk 1.5.0_11

Regards and Thanks in Advace,
Rahul

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

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



More information about the jboss-user mailing list