0 Replies Latest reply on Sep 5, 2014 9:25 AM by Francesco Stupazzoni

    Problem loading spring 4.0.6 in JBoss AS 7.1.1

    Francesco Stupazzoni Newbie

      Hi all,

       

      I'm having a problem while deploying a WS Ive written:

       

      14:44:47,159 INFO  [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-14) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring

      14:44:47,180 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-14) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'WSCHECK_Service' defined in "/C:/jboss-as-7.1.1.Final/standalone/deployments/visore.war/WEB-INF/classes/visore/CHECK/WSCHECK_Service.class": Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [visore.CHECK.WSCHECK_Service]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/BeansException

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1076) [spring-beans-4.0.6.RELEASE.jar:4.0.6.RELEASE]

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1021) [spring-beans-4.0.6.RELEASE.jar:4.0.6.RELEASE]

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [spring-beans-4.0.6.RELEASE.jar:4.0.6.RELEASE]

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) [spring-beans-4.0.6.RELEASE.jar:4.0.6.RELEASE]

          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) [spring-beans-4.0.6.RELEASE.jar:4.0.6.RELEASE]

          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) [spring-beans-4.0.6.RELEASE.jar:4.0.6.RELEASE]

       

      What could be the problem?????

       

      Thanks in advance