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这个配置文件。但是我这里使用的不是这个配置文件,查看一下启动脚本


[root@pctest 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

我这里使用的是这个配置文件,路径为

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



本文转自aaa超超aaa 51CTO博客,原文链接:http://blog.51cto.com/10983441/1738622

相关文章
|
15天前
|
网络协议 Java Shell
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
49 7
|
6月前
【Azure 应用服务】Web App Service 中的 应用程序配置(Application Setting) 怎么获取key vault中的值
【Azure 应用服务】Web App Service 中的 应用程序配置(Application Setting) 怎么获取key vault中的值
|
3月前
【Azure App Service】PowerShell脚本批量添加IP地址到Web App允许访问IP列表中
Web App取消公网访问后,只允许特定IP能访问Web App。需要写一下段PowerShell脚本,批量添加IP到Web App的允许访问IP列表里!
|
4月前
|
监控 Java Linux
问题回顾:Unable to start web server; nested exception is org.springframework.boot.web.server.
解决“Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException”这一问题,关键在于细致的故障诊断和逻辑推理。从日志入手,逐步排查端口冲突、依赖问题、配置错误、资源限制、代码bug以及版本兼容性等多个方面,最终定位并解决根本原因。每一步操作都应谨慎且有针对性,确保修改一处后充分测试,避免引入新的问题。
1125 0
|
4月前
|
Java Spring
【亲测有效完结bug】org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exce
【亲测有效完结bug】org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exce
670 0
|
6月前
【Azure Web Job】Azure Web Job执行Powershell脚本报错 The term 'Select-AzContext' is not recognized as the name
【Azure Web Job】Azure Web Job执行Powershell脚本报错 The term 'Select-AzContext' is not recognized as the name
|
6月前
|
关系型数据库 MySQL Linux
【Azure 应用服务】在创建Web App Service的时候,选Linux系统后无法使用Mysql in App
【Azure 应用服务】在创建Web App Service的时候,选Linux系统后无法使用Mysql in App
【Azure 应用服务】在创建Web App Service的时候,选Linux系统后无法使用Mysql in App
|
6月前
|
Shell PHP Windows
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
|
6月前
|
Linux 应用服务中间件 网络安全
【Azure 应用服务】查看App Service for Linux上部署PHP 7.4 和 8.0时,所使用的WEB服务器是什么?
【Azure 应用服务】查看App Service for Linux上部署PHP 7.4 和 8.0时,所使用的WEB服务器是什么?
|
6月前
【Azure 应用服务】通过 Web.config 开启 dotnet 应用的 stdoutLog 日志,查看App Service 产生500错误的原因
【Azure 应用服务】通过 Web.config 开启 dotnet 应用的 stdoutLog 日志,查看App Service 产生500错误的原因

热门文章

最新文章