问题1
报错提示:
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冲突。
问题2:
报错提示:
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>
问题3:
报错提示:
公司的站点系统使用的中间是jboss7.1.1 Final,因为有些数据和服务測试环境不具备,免不了要在測试环境调试些jsp页面,发现从jboss社区里下载的jboss应用有个问题,新增jsp页面会实时部署,改动过的jsp页面就无法正常部署。
解决方式:
- 在jboss7standaloneconfigurationstandalone.xml文件里找到
<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"/>
2015-10-12新增
问题4:
问题描写叙述:
查阅网上的资料发现大多数都是例如以下的方案
改动
jboss-as-7.1.1.Finalstandaloneconfiguration文件夹下的standalone.xml
将以下代码中的127.0.0.1 改为 0.0.0.0
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
可是经过本机实验没有效果。原因不详,继续在网上查询发现最终柳暗花明
解决方式:
解决方式例如以下:
interfaces标签中新增
<interface name="any">
<any-ipv4-address/>
</interface>
而且将socket-binding-group标签的default-interface属性值改为any
然后ip和localhost都能够訪问了
參考文档
https://community.jboss.org/message/723945#723945#723945
持续更新中…,欢迎各位同仁提供相关问题已经解决方式