0 Replies Latest reply on Jun 9, 2008 10:28 AM by soni_rahul337

    org.jboss.ws.WSException: Cannot generate wsdl from interfac

    soni_rahul337

      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