3 Replies Latest reply: Aug 8, 2012 12:40 PM by Tom Cunningham RSS

jboss ws cxf integration with jboss esb fails

Dhivya Swaminathan Newbie

HI,

 

I am using jbossesb 4.10,Jboss 5.1.0GA and started with the webservice_producer exmaple.My output was (I am copying the

 

last part)

 

9:57:44,418 INFO  [EsbDeployment] Starting ESB Deployment 'WebServiceProducer.esb'

19:57:47,433 INFO  [InquiryHelper] uddi:juddi.apache.org:a46fe09e-c52a-42a5-ab49-d45a119f5c62 is modified Wed Aug 01 19:53:18 GMT+05:30 2012 1343830998822

19:57:47,527 INFO  [InquiryHelper] uddi:juddi.apache.org:a46fe09e-c52a-42a5-ab49-d45a119f5c62 is modified Wed Aug 01 19:57:47 GMT+05:30 2012 1343831267480

19:57:47,933 INFO  [CoyoteInvoker] Using org.apache.coyote.http11.Http11Protocol for http (coyote) invoker protocol handler.

19:57:48,136 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8765

19:57:48,152 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8765

19:57:48,152 INFO  [JBossRemotingGatewayListener] JBoss Remoting Gateway listener 'listener' started.

19:57:48,152 INFO  [InquiryHelper] uddi:juddi.apache.org:a46fe09e-c52a-42a5-ab49-d45a119f5c62 is modified Wed Aug 01 19:57:47 GMT+05:30 2012 1343831267480

19:57:48,214 INFO  [JBossRemotingGatewayListener] JBoss Remoting Gateway listener 'listener' started.

19:57:48,230 INFO  [InquiryHelper] uddi:juddi.apache.org:a46fe09e-c52a-42a5-ab49-d45a119f5c62 is modified Wed Aug 01 19:57:48 GMT+05:30 2012 1343831268199

19:58:04,996 INFO  [EsbDeployment] Starting ESB Deployment 'spring.esb'

19:58:05,058 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080

19:58:05,105 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009

19:58:05,121 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 3m:12s:298ms

19:58:42,449 INFO  [ServiceInvoker] Badly formed EPR [EPR: PortReference < <wsa:Address http://localhost:8765/> >] for Service [MyServiceCategory:MyWSProducerService] and Message [header: [  ]].Courier for EPR not supported: ESB-unaware EPR used!

19:58:43,090 INFO  [STDOUT] [Quickstart_webservice_producer] BEFORE invoking jbossws endpoint:

19:58:43,090 INFO  [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:good="http://webservice_producer/goodbyeworld">

   <soapenv:Header/>

   <soapenv:Body>

      <good:sayGoodbye>

         <message>Goodbye!!</message>

      </good:sayGoodbye>

   </soapenv:Body>

</soapenv:Envelope>].

19:58:43,152 WARN  [ActionProcessingPipeline] No fault address defined for fault message! To: JMSEpr [ PortReference < <wsa:Address jms:localhost:1099#queue/quickstart_webservice_producer_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost:1099/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:destination-name : queue/quickstart_webservice_producer_esb/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] MessageID: 312a3f1a-9281-4e19-9145-e06549ba23a5 RelatesTo: jms:correlationID#312a3f1a-9281-4e19-9145-e06549ba23a5

19:58:43,168 INFO  [InquiryHelper] uddi:juddi.apache.org:d7e6908e-495e-4677-b40a-44ce867d8666 is modified Wed Aug 01 19:57:32 GMT+05:30 2012 1343831252902

12:31:18,063 INFO  [InquiryHelper] uddi:juddi.apache.org:a46fe09e-c52a-42a5-ab49-d45a119f5c62 is modified Wed Aug 01 19:57:48 GMT+05:30 2012 1343831268277

12:31:18,391 INFO  [ServiceInvoker] Badly formed EPR [EPR: PortReference < <wsa:Address socket://localhost:8888/> >] for Service [MyServiceCategory:MyWSProducerService] and Message [header: [  ]].Courier for EPR not supported: ESB-unaware EPR used!

12:31:18,391 INFO  [ServiceInvoker] Badly formed EPR [EPR: PortReference < <wsa:Address http://localhost:8765/> >] for Service [MyServiceCategory:MyWSProducerService] and Message [header: [  ]].Courier for EPR not supported: ESB-unaware EPR used!

12:31:18,500 INFO  [STDOUT] [Quickstart_webservice_producer] BEFORE invoking jbossws endpoint:

12:31:18,500 INFO  [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:good="http://webservice_producer/goodbyeworld">

   <soapenv:Header/>

   <soapenv:Body>

      <good:sayGoodbye>

         <message>Goodbye!!</message>

      </good:sayGoodbye>

   </soapenv:Body>

</soapenv:Envelope>].

 

From the stack I saw jboss-ws-native stack was used.But then when I started installing jboss-ws-cxf-3.1.1.GA in addition hoping the webserviceprod

 

ucer quickstart will function well.I copied ant file and configured jboss 5.1.0GA in it.

 

"ant deploy-jboss510" it was deployed successfully.I have added junit 4.10.jar in server/lib/endorsed and also has set

set ANT_OPTS="-Djava.endorsed.dirs=D:\Softw

 

ares\AppServers\jboss-5.1.0.GA\lib\endorsed"

 

But when I ran "ant tests" it gave buil unsuccessful.the error stack is as follows:

**********************************************************************************************************************************************************************************

D:\Softwares\jbossws-cxf-bin-dist>ant tests
Buildfile: D:\Softwares\jbossws-cxf-bin-dist\build.xml

prepare:

init:
     [echo] integration.target=jboss510

tests-prepare:
     [echo]
     [echo] -----------------------------------------------
     [echo] jboss.home   = D:/Softwares/AppServers/jboss-5.1.0.GA
     [echo] excludesfile = D:\Softwares\jbossws-cxf-bin-dist/tests/resources/tes
t-excludes-jboss510.txt
     [echo] java.home    = C:\Program Files\Java\jdk1.7.0\jre
     [echo] jboss.bind   = localhost
     [echo] -----------------------------------------------

tests-classpath-jboss60:

tests-classpath-jboss51:

tests-classpath-jboss50:

tests-classpath-jboss42:

tests-classpath:

tests-init:

tests-compile:
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\ant-import\build-testsuite.x
ml:436: warning: 'includeantruntime' was not set, defaulting to build.sysclasspa
th=last; set to false for repeatable builds
    [javac] Compiling 180 source files to D:\Softwares\jbossws-cxf-bin-dist\outp
ut\test-classes
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\exception\server\EndpointImpl.java:43: error: cannot find symbol
    [javac]          SOAPFault fault = factory.createFault("this is a fault stri
ng!", new QName("http://foo", "FooCode"));
    [javac]                                   ^
    [javac]   symbol:   method createFault(String,QName)
    [javac]   location: variable factory of type SOAPFactory
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\exception\server\ServerHandler.java:53: error: no suitable method found
for getChildElements(QName)
    [javac]          SOAPElement faultStringElement = (SOAPElement)soapBodyEleme
nt.getChildElements(new QName("faultstring")).next();
    [javac]
  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\exception\server\ServerHandler.java:55: error: no suitable method found
for getChildElements(QName)
    [javac]          Iterator<SOAPElement> itDetail = soapBodyElement.getChildEl
ements(new QName("detail"));
    [javac]                                                          ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\exception\server\ServerHandler.java:58: error: no suitable method found
for getChildElements(QName)
    [javac]             Iterator<SOAPElement> itException = itDetail.next().getC
hildElements(new QName("http://server.exception.samples.jaxws.ws.test.jboss.org/
","UserException"));
    [javac]                                                                ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\exception\server\ServerHandler.java:61: error: no suitable method found
for getChildElements(QName)
    [javac]                SOAPElement messageElement = (SOAPElement)itException
.next().getChildElements(new QName("message")).next();
    [javac]
       ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:122: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:123: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame(targetNS, "product")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:153: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:154: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame(targetNS, "product")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:197: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:198: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame("PurchaseOrderAck")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:227: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\soapbinding\SOAPBindingTestCase.java:228: error: no suitable method fou
nd for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame(resultNamespace, "NamespacedPurchaseOrderAck")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\webmethod\WebMethodTestCase.java:95: error: no suitable method found fo
r getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\webmethod\WebMethodTestCase.java:96: error: no suitable method found fo
r getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame("return")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\webresult\WebResultTestCase.java:106: error: no suitable method found f
or getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-cxf-bin-dist\tests\java\org\jboss\test\ws\jaxws
\samples\webresult\WebResultTestCase.java:107: error: no suitable method found f
or getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame("CustomerRecord")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 17 errors

BUILD FAILED
D:\Softwares\jbossws-cxf-bin-dist\build.xml:92: The following error occurred whi
le executing this line:
D:\Softwares\jbossws-cxf-bin-dist\tests\ant-import\build-testsuite.xml:436: Comp
ile failed; see the compiler error output for details.

Total time: 3 seconds

***************************************************************************************************************************************************************************

 

Then I integrated jboss-ws-native 3.2.1GA with jboss5.1.0GA as this could atleast succeed,but I got the error stack similar:

 

***************************************************************************************************************************************************************************

 

D:\Softwares\jbossws-native-bin-dist>ant tests
Buildfile: D:\Softwares\jbossws-native-bin-dist\build.xml

prepare:

init:
     [echo] integration.target=jboss510

tests-prepare:
     [echo]
     [echo] -----------------------------------------------
     [echo] jboss.home   = D:/Softwares/AppServers/jboss-5.1.0.GA
     [echo] excludesfile = D:\Softwares\jbossws-native-bin-dist/tests/resources/
test-excludes-jboss510.txt
     [echo] java.home    = C:\Program Files\Java\jdk1.7.0\jre
     [echo] jboss.bind   = localhost
     [echo] -----------------------------------------------

tests-classpath-jboss60:

tests-classpath-jboss52:

tests-classpath-jboss51:

tests-classpath-jboss50:

tests-classpath:

tests-init:

tests-compile:
    [mkdir] Created dir: D:\Softwares\jbossws-native-bin-dist\output\test-classe
s
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\ant-import\build-testsuit
e.xml:441: warning: 'includeantruntime' was not set, defaulting to build.sysclas
spath=last; set to false for repeatable builds
    [javac] Compiling 252 source files to D:\Softwares\jbossws-native-bin-dist\o
utput\test-classes
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\exception\server\EndpointImpl.java:43: error: cannot find symbol
    [javac]          SOAPFault fault = factory.createFault("this is a fault stri
ng!", new QName("http://foo", "FooCode"));
    [javac]                                   ^
    [javac]   symbol:   method createFault(String,QName)
    [javac]   location: variable factory of type SOAPFactory
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\exception\server\ServerHandler.java:53: error: no suitable method fo
und for getChildElements(QName)
    [javac]          SOAPElement faultStringElement = (SOAPElement)soapBodyEleme
nt.getChildElements(new QName("faultstring")).next();
    [javac]
  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\exception\server\ServerHandler.java:55: error: no suitable method fo
und for getChildElements(QName)
    [javac]          Iterator<SOAPElement> itDetail = soapBodyElement.getChildEl
ements(new QName("detail"));
    [javac]                                                          ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\exception\server\ServerHandler.java:58: error: no suitable method fo
und for getChildElements(QName)
    [javac]             Iterator<SOAPElement> itException = itDetail.next().getC
hildElements(new QName("http://server.exception.samples.jaxws.ws.test.jboss.org/
","UserException"));
    [javac]                                                                ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\exception\server\ServerHandler.java:61: error: no suitable method fo
und for getChildElements(QName)
    [javac]                SOAPElement messageElement = (SOAPElement)itException
.next().getChildElements(new QName("message")).next();
    [javac]
       ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:122: error: no suitable method
found for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:123: error: no suitable method
found for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame(targetNS, "product")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:153: error: no suitable method
found for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:154: error: no suitable method
found for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame(targetNS, "product")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:197: error: no suitable method
found for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:198: error: no suitable method
found for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame("PurchaseOrderAck")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:227: error: no suitable method
found for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\soapbinding\SOAPBindingTestCase.java:228: error: no suitable method
found for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame(resultNamespace, "NamespacedPurchaseOrderAck")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\webmethod\WebMethodTestCase.java:95: error: no suitable method found
for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\webmethod\WebMethodTestCase.java:96: error: no suitable method found
for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame("return")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\webresult\WebResultTestCase.java:106: error: no suitable method foun
d for getChildElements(QName)
    [javac]       SOAPElement soapElement = (SOAPElement)resMsg.getSOAPBody().ge
tChildElements(qname).next();
    [javac]                                                                  ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] D:\Softwares\jbossws-native-bin-dist\tests\java\org\jboss\test\ws\ja
xws\samples\webresult\WebResultTestCase.java:107: error: no suitable method foun
d for getChildElements(QName)
    [javac]       soapElement = (SOAPElement)soapElement.getChildElements(new QN
ame("CustomerRecord")).next();
    [javac]                                             ^
    [javac]     method SOAPElement.getChildElements(Name) is not applicable
    [javac]       (actual argument QName cannot be converted to Name by method i
nvocation conversion)
    [javac]     method SOAPElement.getChildElements() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 17 errors

BUILD FAILED
D:\Softwares\jbossws-native-bin-dist\build.xml:94: The following error occurred
while executing this line:
D:\Softwares\jbossws-native-bin-dist\tests\ant-import\build-testsuite.xml:441: C
ompile failed; see the compiler error output for details.

Total time: 22 seconds

 

***************************************************************************************************************************************************************************

I need to sucessfully run the webservice producer quickstart after integrating the jboss-ws stack with jboss5.1.0GA.

 

Can anyone help me on this.

  • 1. Re: jboss ws cxf integration with jboss esb fails
    Tadayoshi Sato Novice

    It seems JBoss AS 5.1.0.GA has not been fully tested against Java 7, and you are using Java 7.

    https://community.jboss.org/thread/202595

    Why not try it with Java 6?

  • 2. Re: jboss ws cxf integration with jboss esb fails
    Dhivya Swaminathan Newbie

    Thanks Sato Tadayoshi.

     

    I t worked for me.Even though there was a runtime error,the build was succesful.

     

     

        [junit] There was 1 error:
        [junit] 1) org.jboss.test.ws.jaxws.samples.oneway.OneWayTestCasejava.lang.Ru
    ntimeException: java.lang.RuntimeException: Cannot obtain MBeanServerConnection
    using jndi props: {java.naming.factory.initial=org.jnp.interfaces.NamingContextF
    actory, java.naming.provider.url=localhost:1099, java.naming.factory.url.pkgs=or
    g.jboss.naming:org.jnp.interfaces}
        [junit]     at org.jboss.wsf.test.JBossWSTestHelper.getIntegrationTarget(JBo
    ssWSTestHelper.java:249)
        [junit]     at org.jboss.wsf.test.JBossWSTestSetup.setUp(JBossWSTestSetup.ja
    va:108)
        [junit]     at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
        [junit]     at junit.extensions.TestSetup.run(TestSetup.java:23)
        [junit] Caused by: java.lang.RuntimeException: Cannot obtain MBeanServerConn
    ection using jndi props: {java.naming.factory.initial=org.jnp.interfaces.NamingC
    ontextFactory, java.naming.provider.url=localhost:1099, java.naming.factory.url.
    pkgs=org.jboss.naming:org.jnp.interfaces}

  • 3. Re: jboss ws cxf integration with jboss esb fails
    Tom Cunningham Master

    Maybe the server wasn't up or you had a conflicting server already up on localhost?

     

    Probably a better question for the folks at https://community.jboss.org/en/jbossws?view=discussions - they'll definitely be more familiar with their test suite.