JBOSS启动报错Failed to start service jboss.web.deployment.default-host.
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JBOSS启动报错Failed to start service jboss.web.deployment.default-host.相关的知识,希望对你有一定的参考价值。
14:10:01,487 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: 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.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]
Caused by: java.lang.IllegalArgumentException: JBWEB000250: Child container with name already exists
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:794)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:353)
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.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:1549) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl.access$1900(ServiceControllerImpl.java:49) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.performInjections(ServiceControllerImpl.java:1780) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1741) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
... 3 more
哎,应开发和测试需求,我们测试环境原来的war包名字修改了,代码包里面的配置也进行了修改,但是部署了新的war包之后,启动报错,查了半天,原来是也要修改一下standalone.xml这个配置文件。但是我这里使用的不是这个配置文件,查看一下启动脚本
[[email protected] configuration]# cat /opt/jboss-eap-6.2/myrun_monitor.sh
export JAVA_HOME="/opt/jdk1.6.0_25"
export JAVA_OPTS="-Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:MaxPermSize=512m -Djava.awt.headless=true
-Dorg.jboss.resolver.warning=true -XX:+HeapDumpOnOutOfMemoryError
-Djava.security.egd=file:///dev/urandom.
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.lang.ClassLoader.allowArraySyntax=true"
rm -rf /opt/jboss-eap-6.2/monitor/tmp/*
rm -rf /opt/jboss-eap-6.2/monitor/data/*
nohup bin/standalone.sh -Djboss.server.base.dir=monitor -c=monitor.xml -Dmonitor.port-offset=100 -Dorg.jboss.as.logging.per-deployment=false -Dfile.encoding=utf-8 > /dev/null 2>&1 &
tailf monitor/log/server.log
我这里使用的是这个配置文件,路径为
[[email protected] configuration]# pwd
/opt/jboss-eap-6.2/monitor/configuration
<subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="false">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
这里原来为true,改为false,原来的登录验证地址为http://10.224.173.206:8080/machine/machineHttpService
现在为 http://10.224.173.206:8180/#/pcList
这样设置是隐藏了war包,是为了登录简单方便记忆。。
以上是关于JBOSS启动报错Failed to start service jboss.web.deployment.default-host.的主要内容,如果未能解决你的问题,请参考以下文章
tomcat启动报错failed to start component
Tomcat启动报错 Failed to start component [StandardServer[8005]]解决
启动项目报错——A child container failed during start——解决Failed to start component [StandardEngine[Catalina]
MysqlCentOS7启动MySQL报错Failed to start mysqld.service
记一次sshd启动报错,Failed to start OpenSSH server daemon.
启动docker报错:Failed to start Docker Application Container Engine.