[jboss-user] [JBoss Web Services CXF] New message: "Re: : mapped-name is required for cxf of deployment auto-update-ws.war"

Not available Not available do-not-reply at jboss.com
Tue Mar 2 05:04:39 EST 2010


User development,

A new message was posted in the thread ": mapped-name is required for cxf of deployment auto-update-ws.war":

http://community.jboss.org/message/529289#529289

Author  : Not available Not available
Profile : http://community.jboss.org/people/no1one

Message:
--------------------------------------------------------------
I had similar problem trying to deploy war-in-ear with webservices & (some of) apache CXF jars included in.
Similar exception appeared. When I included annotations-api.jar in the war file and turned on classloading isolation, the exception dissapeared and everything worked perfectly.
 
I suspect (not sure) that CXF has it's own mechanism of resource injection which uses @javax.annotation.Resource annotation, and all  properties annotated with @Resource aren't supposed to be injected by JBoss in deploytime, but exactly that happens.
 
If annotations-api.jar is present, and classloading isolation is on - then jboss will not detect @Resource annotations in cxf and will not try to inject them (because Resource.class from annotations-api.jar will overwrite Resource.class from jboss in CXF's classloader, and for JVM point of view, CXF's @Resource annotation will be different than jboss'es @Resource annotations).

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/529289#529289




More information about the jboss-user mailing list