class loading isolation deployment error
bapats Aug 6, 2010 12:31 PMI have a vanilla CXF web service deployed in JBoss 5.1.0. All the cxf jars, and dependencies are in the war file.
I am enabling class loading isolation, using jboss-classloading.xml in WEB-INF. The
problem I am running into is that, the application is not successfully
deployed (exception below). I tried adding
org.apache.tomcat/annotations-api as suggested in another thread, but
that does not seem to work.
The deployment error is always one of the following one:
-mapped-name is required for org.apache.cxf.transport.http.QueryHandlerRegistryImpl/bus
-mapped-name is required for org.apache.cxf.binding.AbstractBindingFactory/bus of deployment
-mapped-name is required for org.apache.cxf.catalog.OASISCatalogManager/bus
-mapped-name is required for cxf
Turning off class loading isolation, makes the problem go away, but
then I have to keep removing jars from the war. Any help is greatly
appreciated.
The detailed exception is as follows:
java.lang.RuntimeException: mapped-name is required for ...
org.apache.cxf.binding.AbstractBindingFactory/bus of deployment ws.war
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:287)
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:550)
at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4272)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Thanks