tag:blogger.com,1999:blog-743578218566083321.post390938892334019710..comments2024-03-04T02:21:22.021-08:00Comments on Technology highlights: REST API with CXF and Springfandryhttp://www.blogger.com/profile/01990790629557446302noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-743578218566083321.post-70535778388768837672013-07-08T00:54:35.151-07:002013-07-08T00:54:35.151-07:00Modifying the org/apache/cxf JBoss AS modules cont...Modifying the org/apache/cxf JBoss AS modules contents without the matching JBossWS upgrade can basically broke the WS integration for other deployments, so is a big NO. If you want to have a newer version of Apache CXF in JBoss AS, consider using the install script of newer JBossWS releases [1] (see the supported target containers at [2]).<br />Otherwise, use jboss-deployment-structure.xml to disable jaxrs and webservices subsystem, embed cxf libraries in your war and leave the AS untouched.<br />Please refer to the JBoss WebService documentation at [3] and also read [4].<br /><br />[1] http://www.jboss.org/jbossws/downloads<br />[2] https://community.jboss.org/wiki/JBossWS-SupportedTargetContainers<br />[3] https://docs.jboss.org/author/display/JBWS/Apache+CXF+integration<br />[4] http://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-JBossApplicationServerAlessio Soldanohttps://www.blogger.com/profile/15231208472339526847noreply@blogger.comtag:blogger.com,1999:blog-743578218566083321.post-31160675281122258982013-07-07T01:40:57.902-07:002013-07-07T01:40:57.902-07:00Another thing - I'm not using Maven to build t...Another thing - I'm not using Maven to build this, I'm using Eclipse. Do I need to manually include anything in my MANIFEST.MF then? Also, there is a warning before this error occurs:<br /><br />Encountered invalid class name 'org.springframework.context.Application<br />Context,org.springframework.beans.BeansException' for service type 'org.apache.c<br />xf.bus.factory'Mayank Shttps://www.blogger.com/profile/00531544924316349984noreply@blogger.comtag:blogger.com,1999:blog-743578218566083321.post-86552274011034938972013-07-06T23:37:45.173-07:002013-07-06T23:37:45.173-07:00Hi, I have tried the steps mentioned on this page ...Hi, I have tried the steps mentioned on this page for deploying a REST-ful web-service project using Apache CXF 2.6.2. I have put the cxf-2.6.2.jar file in the org/apache/cxf/main folder and done the entries in the module.xml as advised by you. I have also put the Spring framework JARs after creating the springframework/main folder as advised by you and created the entries in the module.xml there. However, I'm getting the following error message:<br /><br />Could not configure component org.apache.cxf.wsn.client.Publisher<br /><br />Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBA<br />S011054: Could not find default constructor for class org.apache.cxf.wsn.client.<br />Publisher<br /><br />"WebService.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebService.war".INSTALL: Failed to process phase INSTALL of deployment "WebService.war"<br /><br />Do I need to also deploy the other CXF JARs from the 2.6.2 bundle and create entries for them in the module.xml? Mayank Shttps://www.blogger.com/profile/00531544924316349984noreply@blogger.comtag:blogger.com,1999:blog-743578218566083321.post-36718121945545157752012-12-03T12:42:34.382-08:002012-12-03T12:42:34.382-08:00Hey, I updated this for you so that it uses JBoss ...Hey, I updated this for you so that it uses JBoss AS 7.1.1.Final and JBoss-WS 4.1.0.Final.<br /><br />Link is: <a href="http://resistentialjava.blogspot.com/2012/12/rest-api-using-cxf-and-jboss-ws.html" rel="nofollow">here.</a>Finaglehttps://www.blogger.com/profile/15340890237535611593noreply@blogger.com