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包,是为了登录简单方便记忆。。

时间: 2024-10-05 05:06:00

JBOSS启动报错Failed to start service jboss.web.deployment.default-host.的相关文章

VMware启动报错:The VMware Authorization Service is not running

The VMware Authorization Service is not running 今天在使用虚拟机的时候,竟然发现不能启动,而且伴有启动虚拟系统报错: The VMware Authorization Service is not running. 截图如下: 故障排除思路: 之前为系统做最大优化时将相关无用启动项及相关服务启动方式做了相应修改: 导致VMware Authorization Service 未启动 系统本地VMware相关服务截图: 解决故障步骤: 1:打开CMD

Eclipse启动 报错[Failed to load the JNI shared library jvm.dll

准备要做java服务器,在安装开发环境时,启动Eclipse报错[Failed to load the JNI shared library jvm.dll] 研究了下,造成错误的原因是由于eclipse与jdk的不一致造成的. 我的开发环境是64位windows8 Pro,安装了64位jdk1.6,eclipse却粗物的安装了32位的版本,由于64位和32位匹配不一致,造成了以上错误的发生. 又尝试了一下,32位jdk+64位eclipse也会发生同样的问题. 好了,解决方法很简单,jdk和e

第一个springboot项目启动报错Failed to configure a DataSource: &#39;url&#39; attribute is not specified and no embedded datasource could be configured.

报错内容具体如下 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a

maven web 项目中启动报错java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener

本篇文章主要介绍了"maven web 项目中启动报错java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener ",主要涉及到maven web 项目中启动报错java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener 方面的内容,对于maven web 项目中启动报错jav

Jboss启动报错——DailyRollingFileAppender无法转换异常

问题:Jboss在启动时,报错java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender. 解决办法:D:/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml文件,修改Java2ClassLoadingCompliance和UseJBossWebLoader为true,即:

Linux网卡启动报错Job for network.service failed处理方法

在克隆centos 修改静态IP地址之后,重启网络系统(命令:service network restart 或systemctl restart network.service)报错:job for network.service failed 如下截图 这是由于cat/etc/sysconfig/network-scripts/ifcfg-eno16777736 中HWADDR的地址和ifconfig中的地址不一样,如下图 这里只需要把ifconfig 里的MAC地址添加到.vi/etc/s

Tomcat启动报错 Failed to start component [StandardServer[8005]]解决

SEVERE: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] 之前在Eclipse上部署了Tomcat服务器,今天在MyEclipse上部署,结果Tomcat启动失败,报错.在网上搜了半天,有的说是因为端口被占用,有

解决Eclipse启动报错Failed to create the Java Virtual Machine

电脑:2G内存,WIN7 32位. 启动adt-bundle-windows-x86-20140702\eclipse\eclipse.exe时,报错[Failed to create the Java Virtual Machine].点确定后,Eclipse自动关闭 解决方法如下: 修改Eclipse目录下的配置文件[eclipse.iniadt-bundle-windows-x86-20140702\eclipse\eclipse.ini] 将下面两个值改为原来的0.5倍,然后保存,重新启

maven创建spring项目之后,启动报错java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

出错情景:maven中已经加载了spring的核心包,但是项目启动时,报错: org.apache.catalina.core.StandardContext listenerStart严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springframewor