解決JBoss7部署應用時Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest的錯誤


最近用JBoss部署WEB應用時報出了一個警告錯誤

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]

嚇我一跳,但測試應用功能一切正常,部署在resin3.x、tomcat6和JBoss4下均沒有問題,估計是JBoss7本身的問題,在stackoverflow上找到的解決方案,記錄一下以備后查

修改JBoss的配置文件,如果是以standalone模式就修改standalone.xml,添加行號為5-9的代碼

 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-due

本文地址:http://www.cnblogs.com/wangjiajun/p/4203373.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM