0 Replies Latest reply on Sep 19, 2012 3:07 PM by 99jboss

    JBA S011054:Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest

    99jboss

      Tried to deploy a sample spring3 applicaiton on JBoss 7.1.2.

      OS: Windows 7,JDK1.6,Spring3.2

       

      Getting below exception:

      14:14:42,517 WARN  [org.jboss.as.ee] (MSC service thread 1-7) JBAS011006: Not installing optional component org.springframework.web.cont

      ext.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBA

      S011054: 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) [jboss-a

      s-ee-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

              at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:83) [jboss-as-e

      e-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

              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_34]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_34]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_34]

       

      14:14:42,546 INFO  [org.jboss.as.osgi] (MSC service thread 1-7) JBAS011907: Register module: Module "deployment.SpringTest.war:main" fro

      m Service Module Loader

      14:14:42,561 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SpringTest]] (MSC service thread 1-5) No Spring

      WebApplicationInitializer types detected on classpath

      14:14:42,600 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SpringTest]] (MSC service thread 1-5) Initializi

      ng Spring FrameworkServlet 'spring'

      14:14:42,600 INFO  [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-5) FrameworkServlet 'spring': initializatio

      n started

      14:14:42,614 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-5) Refreshing WebApplication

      Context for namespace 'spring-servlet': startup date [Wed Sep 19 14:14:42 EDT 2012]; root of context hierarchy

      14:14:42,634 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-5) Loading XML bean definitions

      from ServletContext resource [/WEB-INF/spring-servlet.xml]

      14:14:42,680 INFO  [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-5) JSR-250 'javax.annot

      ation.ManagedBean' found and supported for component scanning

      14:14:42,682 INFO  [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] (MSC service thread 1-5) JSR-330 'javax.injec

      t.Named' annotation found and supported for component scanning

      14:14:42,765 INFO  [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-5) JSR-330

      'javax.inject.Inject' annotation found and supported for autowiring

      14:14:42,771 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-5) Pre-instantiating sin

      gletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@42374a4b: defining beans [helloWorldController,org.sprin

      gframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotatio

      nProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCom

      monAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0

      ,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidato

      rFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.hand

      ler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.we

      b.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0

      ,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.spr

      ingframework.web.servlet.mvc.SimpleControllerHandlerAdapter,viewResolver,org.springframework.context.annotation.ConfigurationClassPostPr

      ocessor.importAwareProcessor]; root of factory hierarchy

      14:14:42,832 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-5) Mapped

      "{[/hello],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView

      net.balu.spring3.controller.HelloWorldController.helloWorld()

      14:14:42,916 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-5) Hibernate Validator 4.2.0.Final-redhat-1

      14:14:43,057 INFO  [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-5) FrameworkServlet 'spring': initializatio

      n completed in 456 ms

      14:14:43,058 INFO  [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /SpringTest

      14:14:43,070 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "SpringTest.war" with deploymen

      t "SpringTest.war"