jboss eap6.1(2)(JBAS015960错误过滤)

接上篇文章jboss eap6.1(1)

1、启动过程中出现如下错误:

15:19:58,345 WARN  [org.jboss.as.ee] (MSC service thread 1-1) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: 无法找到 class org.springframework.web.context.request.async.StandardServletAsyncWebRequest 的默认构造器

at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_17]

at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]


未解决

jboss社区中的回答:

guys this questions was asked so many times that simple google search for this error shows many threads explaining why this is happening and how to fix it.

Again in short, this is bug in spring's  StandardServletAsyncWebRequest which does not expose public constructor.

and it does not cause any problems at all.

We "fixed" this in WildFly 8 by not logging exception but just warning about this.

in any case it is safe to ignore this and as others suggest, you can filter that log message to not appear.

 

网上找的解决办法:

还没有彻底解决该问题的方法,暂时还只能通过过滤日志的方式,不让该警告显示出来。 在 standalone.xml 中配置日志过滤的方法:

<console-handler name="CONSOLE">  
  <level name="INFO"/>  
  <filter-spec value="not(any(match(&quot;JBAS015960.*&quot;),match(&quot;JBAS011006.*&quot;)))"/>  
  <formatter>  
    <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>  
  </formatter>  
</console-handler>

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值