最近用JBoss部署WEB應用時報出了一個警告錯誤html
15:50:06,865 WARN [org.jboss.as.ee] (MSC service thread 1-13) 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:1110) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]java
嚇我一跳,但測試應用功能一切正常,部署在resin3.x、tomcat6和JBoss4下均沒有問題,估計是JBoss7自己的問題,在stackoverflow上找到的解決方案,記錄一下以備後查web
修改JBoss的配置文件,若是是以standalone模式就修改standalone.xml,添加行號爲5-9的代碼spring
1 <profile> 2 <subsystem xmlns="urn:jboss:domain:logging:1.1"> 3 <console-handler name="CONSOLE"> 4 <level name="INFO"/> 5 <filter> 6 <not> 7 <match pattern="JBAS011006"/> 8 </not> 9 </filter> 10 .........
原問題地址:http://stackoverflow.com/questions/13922221/jbas011006-not-installing-optional-component-standardservletasyncwebrequest-duetomcat
本文地址:http://www.cnblogs.com/wangjiajun/p/4203373.htmldom