JBoss Community

ClassDefNotFound Spring

created by mazmart in JBoss AS 7 Development - View the full discussion

Hello. please help im preaty sure i have sprint 3.0.2 in /lib/spring3.0 directory but deployment throws this error.:

 

`SEVERE org.springframework.web.context.ContextLoader (MSC service thread 1-12) Context initialization failed: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource /WEB-INF/applicationContext.xml; nested exception is java.lang.NoClassDefFoundError: org/jboss/virtual/VirtualFileVisitor

          at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) spring-beans-3.0.2.RELEASE.jar:

Caused by: java.lang.NoClassDefFoundError: org/jboss/virtual/VirtualFileVisitor

          at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:348) spring-core-3.0.2.RELEASE.jar:

Caused by: java.lang.ClassNotFoundException: org.jboss.virtual.VirtualFileVisitor from [Module "deployment.ProTurism.war:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)`

 

 

08:58:10,259 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ProTurism]] (MSC service thread 1-12) Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource /WEB-INF/applicationContext.xml; nested exception is java.lang.NoClassDefFoundError: org/jboss/virtual/VirtualFileVisitor

          at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) spring-beans-3.0.2.RELEASE.jar:

Caused by: java.lang.NoClassDefFoundError: org/jboss/virtual/VirtualFileVisitor

          at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:348) spring-core-3.0.2.RELEASE.jar:

Caused by: java.lang.ClassNotFoundException: org.jboss.virtual.VirtualFileVisitor from [Module "deployment.ProTurism.war:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

 

08:58:10,269 ERROR org.apache.catalina.core.StandardContext (MSC service thread 1-12) Error listenerStart

08:58:10,269 ERROR org.apache.catalina.core.StandardContext (MSC service thread 1-12) Context /ProTurism startup failed due to previous errors

 

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community