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
JBoss warns you when can't find no-args constructor for a class. In this case, there is no no-arg constructor for this Spring class. Just this one:
public StandardServletAsyncWebRequest(HttpServletRequest request, HttpServletResponse response) { super(request, response); }
No problem with that..That will work..
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
):For JBoss 7.2.0, the syntax is a bit different:
This is how I suppressed it in my jboss-as-7.1.1
updated configuration/standalone.xml as
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.