: mapped-name is required for cxf of deployment auto-update-ws.war
dgh1 Jan 23, 2010 3:29 PM
I am not sure where exactly sure where to start, here but I have a web service war file built using Apache CXF. This war file runs great in apache tomcat container, so I have some level of confidence.
However, when I try putting in deploy dir and restarting JBoss 5.1 with this war file I get the below exceptions. I am not sure what
“java.lang.RuntimeException: mapped-name is required for cxf of deployment auto-update-ws.war”
means or what I need to do to resolve. Below also is the jbossws-cxf.xml I am using for this based on “JBossWS - Stack CXF User Guide” and the web.xml
10:48:03,326 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 2m:56s:966ms
11:32:38,694 INFO [TomcatDeployment] deploy, ctxPath=/auto-update-ws
11:32:38,969 ERROR [StandardContext] Context [/auto-update-ws] startup failed due to previous errors
java.lang.RuntimeException: mapped-name is required for cxf of deployment auto-update-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)
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/space/server/default/deploy/auto-update-ws.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/space/server/default/tmp/a69515-bvwhsb-g4sr37lt-1-g4sssbdl-1ep/auto-update-ws.war/ deployment failed
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
jbossws-cxf.xml
<beans
xmlns='http://www.springframework.org/schema/beans'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:beans='http://www.springframework.org/schema/beans'
xmlns:jaxws='http://cxf.apache.org/jaxws'
xsi:schemaLocation='http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/schemas/jaxws.xsd'>
<!-- one or more jaxws:endpoint POJO declarations -->
<jaxws:endpoint
id='p1'
address='http://nemo:8080/auto-update-ws/p1'
implementor='com.oti.main.webservice.UpdateServiceImpl'>
<jaxws:invoker>
<bean class='org.jboss.wsf.stack.cxf.InvokerJSE'/>
</jaxws:invoker>
</jaxws:endpoint>
</beans>
Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>SimpleService</display-name>
<servlet>
<servlet-name>s1</servlet-name>
<servlet-class>com.oti.main.webservice.SimpleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>s1</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>