Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring3.2 and jboss as 7

How to resolve this warn? If i use Spring 3.2 i am see this warn:

14:24:19,014 WARN [org.jboss.as.ee] (MSC service thread 1-10) 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

like image 599
Rinat Mukhamedgaliev Avatar asked Dec 09 '12 10:12

Rinat Mukhamedgaliev


2 Answers

Apparently this is "normal", everything should still work. Likely there's an (anonymous) inner class in StandardServletAsyncWebRequest.

See also Applicaiton is deployed in JBoss7.0.2 Final (Arc ) but failed to in 7.1.1 Final (Brontes) and metadata-complete="true" not respected. Basically it's just a warning, everything is fine.

like image 155
Philippe Marschall Avatar answered Oct 03 '22 08:10

Philippe Marschall


To expand aloplop85's link, you can ignore this message. You might want to suppress it because it is distracting (in my opinion, a working application should never normally print stack traces in the log). The instructions are here http://middlewaremagic.com/jboss/?p=2421, short version is to add the following text into the config file (e.g.standalone.xml):

  <subsystem xmlns="urn:jboss:domain:logging:1.0">       <console-handler name="CONSOLE">           <!-- levels, formatters etc. -->           <filter>               <not>                   <match pattern="JBAS011054"/>               </not>           </filter>       </console-handler>       <!-- and the same for other handlers -->   </subsystem> 

For JBoss 7.2.0, the syntax is a bit different:

  <subsystem xmlns="urn:jboss:domain:logging:1.2">       <console-handler name="CONSOLE">          <!-- levels, formatters etc. -->          <filter value='not(match("JBAS011054"))' />       </console-handler>       <!-- and the same for other handlers -->   </subsystem> 
like image 28
artbristol Avatar answered Oct 03 '22 10:10

artbristol