标签:jboss7-1-1 解决方案 error jboss热部署
报错提示:
MSC00001: Failed to start service jboss.web.deployment.default-host./:
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_HOME%/configuration/standalone.xml,修改enable-welcome-root=”false”,防止jboss默认的context和你的application冲突。
报错提示:
14:01:59,555 WARN [org.jboss.as.ee] (MSC service thread 1-14) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
解决方案:
找到%JBOSS_HOME%/configuration/standalone.xml ,在的console-handler name=”CONSOLE”>中添加下面内容
<filter>
<not>
<match pattern="JBAS011006"/>
</not>
</filter>
报错提示:
公司的网站系统使用的中间是jboss7.1.1 Final,由于有些数据和服务测试环境不具备,免不了要在测试环境调试些jsp页面,发现从jboss社区里下载的jboss应用有个问题,新增jsp页面会实时部署,修改过的jsp页面就无法正常部署。
解决方案:
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
<configuration>
<jsp-configuration development="true"/>
</configuration>
<connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
到 jboss-as-7.1.1.Final/modules/org/jboss/as/web/main目录下,将 jboss-as-web-7.1.1.Final-RECOMPILE.jar 粘贴进来. 下载地址http://www.datafilehost.com/download-2cb9ff04.html
打开 module.xml (jboss-as-7.1.1.Final/modules/org/jboss/as/web/main) 进行如下操作,注释掉以下代码
<!--resource-root path="jboss-as-web-7.1.1.Final.jar"/-->
在上面注释的行下面添加如下行
<resource-root path="jboss-as-web-7.1.1.Final-RECOMPILE.jar"/>
参考文档
https://community.jboss.org/message/723945#723945#723945
持续更新中…,欢迎各位同仁提供相关问题已经解决方案
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:jboss7-1-1 解决方案 error jboss热部署
原文地址:http://blog.csdn.net/gao36951/article/details/46788143