[jboss-dev-forums] [JBoss AS 7 Development] - JBoss 7.1.1 - Not able to set app to root using jboss-web.xml

such do-not-reply at jboss.com
Tue May 8 14:55:55 EDT 2012


such [https://community.jboss.org/people/such] created the discussion

"JBoss 7.1.1 - Not able to set app to root  using jboss-web.xml"

To view the discussion, visit: https://community.jboss.org/message/734346#734346

--------------------------------------------------------------
Hi

I have the following jboss-web.xml in my app to set root context.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jboss-web PUBLIC
    "-//JBoss//DTD Web Application 4.2//EN"
    " http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">

<jboss-web>
<context-root>/</context-root>
</jboss-web>


But I am getting this exception: 
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC00001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
Caused by: java.lang.IllegalArgumentException: Child container with name  already exists
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:804)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:792)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:356)
    at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:62)
    at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:38)
    at org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:55) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:1549) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl.access$1900(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.performInjections(ServiceControllerImpl.java:1780) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1741) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    ... 3 more

Any idea? 

Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/734346#734346]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120508/dafa614f/attachment.html 


More information about the jboss-dev-forums mailing list