jboss final 7.1.1相关error以及解决方案
问题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页面就无法正常部署。
解决方案:
- 在jboss7\standalone\configuration\standalone.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.Final\standalone\configuration目录下的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都可以访问了
上一篇: 2种jQuery 实现刮刮卡效果
下一篇: 现在做网址导航站还有没有机会?