[jboss-as7-dev] Another ROOT.war issue

Jason T. Greene jason.greene at redhat.com
Tue May 17 21:46:08 EDT 2011


I think I can add something to make it have a better error message.

On 5/17/11 8:26 PM, Scott Stark wrote:
> Apparently there is a default root (/) application now that displays the
> server welcome-content directory. I was not seeing this because of a
> http proxy setting. I see that I can disable this in the
> urn:jboss:domain:web:1.0 subsystem.
>
> <subsystem xmlns="urn:jboss:domain:web:1.0">
> <connector name="http" protocol="HTTP/1.1" socket-binding="http"
> scheme="http"/>
> <virtual-server name="localhost" enable-welcome-root="true">
> <alias name="example.com"/>
> </virtual-server>
> </subsystem>
>
> On 5/17/11 6:02 PM, Scott Stark wrote:
>> In the current pull of jboss-as trunk, I can't deploy a simple ROOT.war
>> due to what looks like a duplicate ROOT or / context, but when there is
>> no deployment there is no application available under localhost:8080/.
>>
>> [105](ironmaiden:bin)>   ./standalone.sh
>> =========================================================================
>>
>>      JBoss Bootstrap Environment
>>
>>      JBOSS_HOME:
>> /home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT
>>
>> ...
>>
>> 17:59:26,587 INFO  [org.jboss.as.deployment] (MSC service thread 1-2)
>> Started FileSystemDeploymentService for directory
>> /home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT/standalone/deployments
>> 17:59:26,598 INFO  [org.jboss.as.deployment] (DeploymentScanner-threads
>> - 1) Found ROOT.war in deployment directory. To trigger deployment
>> create a file called ROOT.war.dodeploy
>> 17:59:26,609 WARN  [org.jboss.osgi.framework.internal.URLHandlerPlugin]
>> (MSC service thread 1-3) Unable to set the URLStreamHandlerFactory
>> 17:59:26,616 WARN  [org.jboss.osgi.framework.internal.URLHandlerPlugin]
>> (MSC service thread 1-3) Unable to set the ContentHandlerFactory
>> 17:59:26,624 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC
>> service thread 1-5) The Apache Tomcat Native library which allows
>> optimal performance in production environments was not found on the
>> java.library.path:
>> .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
>> 17:59:26,640 INFO  [org.jboss.remoting] (MSC service thread 1-7) JBoss
>> Remoting version 3.1.0.Beta2
>> 17:59:26,697 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC
>> service thread 1-2) live server is starting..
>> 17:59:26,699 WARN  [org.jboss.vfs] (MSC service thread 1-4) VFS was
>> unable to set the URLStreamHandlerFactory.  This will have unpredictable
>> results
>> 17:59:26,706 INFO  [org.jboss.as.server.deployment] (MSC service thread
>> 1-4) Starting deployment of "ROOT.war"
>> 17:59:26,753 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC
>> service thread 1-8) Starting Coyote HTTP/1.1 on
>> http-localhost-127.0.0.1-8080
>> 17:59:26,795 INFO  [org.jboss.as.connector] (MSC service thread 1-1)
>> Starting JCA Subsystem (JBoss IronJacamar 1.0.0.Beta6)
>> 17:59:26,843 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC
>> service thread 1-3) Bound data source [java:/H2DS]
>> 17:59:26,952 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8)
>> MSC00001: Failed to start service jboss.web."ROOT.war":
>> org.jboss.msc.service.StartException in service jboss.web."ROOT.war":
>> Failed to start service
>>        at
>> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1696)
>> [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> [:1.6.0_24]
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> [:1.6.0_24]
>>        at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
>> 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:57)
>>        at
>> org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:36)
>>        at
>> org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:55)
>> [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
>>        at
>> org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:1482)
>> [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
>>        at
>> org.jboss.msc.service.ServiceControllerImpl.access$2000(ServiceControllerImpl.java:47)
>> [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
>>        at
>> org.jboss.msc.service.ServiceControllerImpl$StartTask.performInjections(ServiceControllerImpl.java:1709)
>> [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
>>        at
>> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1670)
>> [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
>>        ... 3 more
>>
>> 17:59:26,968 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor]
>> (MSC service thread 1-2) Started Netty Acceptor version
>> 3.2.1.Final-r2319 localhost:5455 for CORE protocol
>> 17:59:26,969 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor]
>> (MSC service thread 1-2) Started Netty Acceptor version
>> 3.2.1.Final-r2319 localhost:5445 for CORE protocol
>> 17:59:26,970 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC
>> service thread 1-2) HornetQ Server version 2.1.2.Final (Colmeia, 120)
>> started
>> 17:59:27,178 ERROR [org.jboss.as] (MSC service thread 1-1) JBoss AS
>> 7.0.0.Beta4-SNAPSHOT "(TBD)" started (with errors) in 2645ms - Started
>> 125 of 182 services (1 services failed or missing dependencies, 56
>> services are passive or on-demand)
>> 17:59:27,178 INFO  [org.jboss.as.server] (MSC service thread 1-7)
>> Service status report
>>      Services which failed to start:
>>          service jboss.web."ROOT.war":
>> org.jboss.msc.service.StartException in service jboss.web."ROOT.war":
>> Failed to start service
>>
>> 17:59:27,197 INFO  [org.jboss.as.server.deployment] (MSC service thread
>> 1-1) Stopped deployment ROOT.war in 13ms
>> 17:59:27,200 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads
>> - 1) undefined
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
Jason T. Greene
JBoss, a division of Red Hat


More information about the jboss-as7-dev mailing list