struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Need help w/ struts+spring+jpa tutorial
Date Wed, 05 Mar 2014 08:05:25 GMT
Can you post the whole stacktrace? Maybe ClassNotFound isn't the root case

2014-03-01 8:06 GMT+01:00 Tommy Pham <tommyhp2@gmail.com>:
> Hi,
>
> I'm trying to follow the tutorial mentioned in subject at:
>
> http://struts.apache.org/release/2.3.x/docs/struts-2-spring-2-jpa-ajax.html
>
> I got it to build the war OK so far for:
>
> Struts 2.3.16
> Spring 3.0.5.RELEASE
> Hibernate 4.3.2.FINAL
> Log4j 2.0-RC1
>
>
> But when I run it on Tomcat 7.0.50 server via Eclipse Kepler, I got an
> error:
>
> Feb 28, 2014 11:01:09 PM org.apache.catalina.core.StandardContext
> listenerStart
> SEVERE: Error configuring application listener of class
> org.springframework.web.context.ContextLoaderListener
> java.lang.ClassNotFoundException:
> org.springframework.web.context.ContextLoaderListener
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
> at
> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
> at
> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
> at
> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:142)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4876)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
>
>
> Could someone please tell me why I'm getting the above error even though
> needed jar containing the class is in WEB-INF/lib built within the war?
>  I'm sure I've correctly defined the dependencies in pom.xml [1] and
> configured the web.xml [2].  Full project is on github [3].
>
>
> Thanks,
> Tommy
>
> [1] https://github.com/tommyhp2/struts-spring-jpa/blob/master/pom.xml
> [2]
> https://github.com/tommyhp2/struts-spring-jpa/blob/master/src/main/webapp/WEB-INF/web.xml
> [3] https://github.com/tommyhp2/struts-spring-jpa

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message