-
1. Re: Rest Service deployment issue on JBossWS-CXF-3.4.0 and JBoss 5.1
doudl Sep 20, 2011 9:40 AM (in response to kyle.bober)Kyle,
I've had this error before and here are a couple things to try.
Is the JBoss instance you are deploying to also contain JBoss ESB? When I ran into this problem I believe I solved it by uninstalling JBoss ESB. Turns out JBoss ESB has a Spring deployment inside it.
Are you using jbossws-cxf.xml? If so, make sure you don't have the normal CXF imports, such as:
<import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> Are you using a different "beans.xml" file than jbossws-cxf.xml? This might be your problem. I've seen people try to take CXF based services that run on Tomcat and deploy on JBoss and it just doesn't work. You need to change you web.xml and use jbossws-cxf.xml if this is the case.
I found the following links helpful. They are not specific to REST, but I don't think your problem is specific to REST either.
http://community.jboss.org/wiki/JBossWS-StackCXFUserGuide#Server_Side_Integration_Customization
http://www.mastertheboss.com/web-interfaces/307-jboss-cxf-web-services.html
Leon
-
2. Re: Rest Service deployment issue on JBossWS-CXF-3.4.0 and JBoss 5.1
ropalka Sep 22, 2011 3:48 AM (in response to kyle.bober)JBossAS comes with its own REST integration.
It's highly suggested that our users reuse it
instead of using thirdparty solutions