0 Replies Latest reply on Jan 6, 2014 4:22 AM by Sanjeev Kumar

    Webservices in JBOSS

    Sanjeev Kumar Newbie

      Hi,

       

      I am working on migration project and i need to migrate the code from Weblogic9 to jboss7.1.I have a WSDL file and which i need to use to create java artifacts , so i am trying to use the wsconsume task through the build.xml file and i am getting following error.

       

       

      ##########################

       

      [wsconsume] Loading FrontEnd jaxws ...

      [wsconsume] Loading DataBinding jaxb ...

      [wsconsume] wsdl2java -compile -exsh false -d C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\TestcompiledWsdl\recatService -wsdlLocation http://localhost/recatService/services/UpdateClaimRecat?WSDL -verbose -classdir C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\TestcompiledWsdl\recatService -allowElementReferences file:/C:/Projects/FeC/FeC-Code/Weblogic-migration-code-actual/FEC-src/Code/GUI%20And%20Services/financial/code/archives/FinancialEClaims.wsdl

      [wsconsume] wsdl2java - Apache CXF 2.4.9-redhat-2

      [wsconsume] Failed to invoke WSDLToJava

      [wsconsume] org.apache.cxf.tools.common.ToolException: Rpc/encoded wsdls are not supported with CXF

      [wsconsume]     at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.checkSupported(JAXWSDefinitionBuilder.java:141)

      [wsconsume]     at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:87)

      [wsconsume]     at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:61)

      [wsconsume]     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:171)

      [wsconsume]     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)

      [wsconsume]     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286)

      [wsconsume]     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)

      [wsconsume]     at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)

      [wsconsume]     at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:260)

      [wsconsume]     at org.jboss.ws.api.tools.WSContractConsumer.consume(WSContractConsumer.java:210)

      [wsconsume]     at org.jboss.ws.tools.ant.WSConsumeTask.executeNonForked(WSConsumeTask.java:237)

      [wsconsume]     at org.jboss.ws.tools.ant.WSConsumeTask.execute(WSConsumeTask.java:257)

      [wsconsume]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

      [wsconsume]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

      [wsconsume]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      [wsconsume]     at java.lang.reflect.Method.invoke(Method.java:597)

      [wsconsume]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

      [wsconsume]     at org.apache.tools.ant.Task.perform(Task.java:348)

      [wsconsume]     at org.apache.tools.ant.Target.execute(Target.java:392)

      [wsconsume]     at org.apache.tools.ant.Target.performTasks(Target.java:413)

      [wsconsume]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

      [wsconsume]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

      [wsconsume]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

      [wsconsume]     at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

      [wsconsume]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

      [wsconsume]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)

      [wsconsume]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)

       

      #####################

       

      I have searched the internet and found the facts that, Rpc/encoded wsdls are not supported with CXF and this is only supported by axis, so i have used the axis apis(axis-wsdl2java) to generate the java artifacts.

       

      Now i have a requirement that i need to deploy the webservice as war in Jboss7.1 , so i need a tool which can automatically generate all required xml files and java artifacts and create the war. For Weblogic9, we are using "jwsc" task to create a war file.

       

      Can anybody suggest me whether any packaging tool is available for jboss for Rpc/encoded webservice or not?, if not then how will i do it for packaging a webservice as war.

       

      Regards

      Sanjeev Kumar