JBossWS-CXF and EAP 6.1.0
bapats Jun 6, 2013 10:11 AMWe are exploring the migration from using plain CXF on JBoss 7.1 (as cxf servlets) to using the built in JBossWS-CXF on JBoss EAP 6.1.0.
A few questions:
- Our existing plain CXF web services currently use the cxf-servlet.xml. In order to migrate to JBossWS-CXF, based on the JBossWS-CXF documentation, we would have to use jbossws-cxf.xml, and configure the web.xml. The official JBoss EAP 6.1 documentation (link below) does not make any mention of JBossWS-CXF/CXF/jbossws-cxf.xml , or say that this is supported. Is configuring the WS completely using jbossws-cxf.xml (equivalent of cxf-servlet.xml) fully supported under EAP? We wanted to stay close to the CXF way of configuration.
https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html-single/Development_Guide/index.html#About_JAX-WS_Web_Services - Is JBossWS-CXF installed in the default EAP 6.1.0, or does it need to be installed? In addition to the org.springframework.spring module, do I need to install or configure anything else in the server? The modules seems to indicate that it is there, but once I deployed a web service, I could access the wsdl, and the ws works, but http://localhost:8080/jbossws returns a 404. Here's the deployment log.
09:56:44,865 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "hello-
world.war" (runtime-name: "hello-world.war")
09:56:45,400 INFO [org.jboss.ws.cxf.metadata] (MSC service thread 1-1) JBWS024061: Adding service endpoint metadata: id=HelloWorl
dService
address=http://localhost:8080/hello-world/HelloWorldService
implementor=com.test.demo.ws.HelloWorldService
serviceName={http://test.com/services/demo/HelloWorldService}HelloWorldService
portName={http://test.com/services/demo/HelloWorldService}HelloWorldServicePort
annotationWsdlLocation=null
wsdlLocationOverride=null
mtomEnabled=false
09:56:45,808 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http:/
/test.com/services/demo/HelloWorldService}HelloWorldService from class com.test.demo.ws.HelloWorldServiceI
09:56:46,380 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http:/
/localhost:8080/hello-world/HelloWorldService
09:56:46,554 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/jboss-eap-6.1/standalone/data/wsdl/hello-world.war/HelloWorldService.wsdl
09:56:46,557 INFO [org.jboss.as.webservices] (MSC service thread 1-6) JBAS015539: Starting service jboss.ws.port-component-link
09:56:46,579 INFO [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015539: Starting service jboss.ws.endpoint."
hello-world.war".HelloWorldService
09:56:46,592 INFO [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022050: Endpoint registered: jboss.ws:context=hello-world,endpoint=HelloWorldService
09:56:46,669 INFO [org.jboss.web] (ServerService Thread Pool -- 55) JBAS018210: Register web context: /hello-world
Thanks