File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes regarding struts2-spring-plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "regarding struts2-spring-plugin" Watch "regarding struts2-spring-plugin" New topic

regarding struts2-spring-plugin

Harshani Wickramarathna

Joined: Nov 15, 2007
Posts: 28

I have done everything to integrate spring into my application as mentioned in this site.

But when i run the application it throws "org\springframework\web\context\contextLoaderListener" class not found exception.

I couldn't be able to find that class in the srtuts2-spring-plugin but its in the spring.jar.

Do I need to add spring.jar with the struts2-spring-plugin?
or how can i get rid of the exception?

Thanks in advance.

Anirudh Vyas
Ranch Hand

Joined: Oct 23, 2006
Posts: 93
Why don't you just use maven? install maven and create archetype using mvn ... it will manage all the dependencies for you. You can then import the project in your workspace. Should you need some help go to maven site and refer to some documentation.
[ April 05, 2008: Message edited by: Anirudh Vyas ]

Vyas, Anirudh
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

I can't imagine why this is in our Performance forum; I'll move it to our Struts forum.

[Jess in Action][AskingGoodQuestions]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Struts2 only contains a few classes used for integration with the Spring Framework. It does not contain the Spring Framework core classes. For these, you will need to include the spring.jar file in your WEB-INF/lib folder.

Consultant, Sima Solutions
I agree. Here's the link:
subject: regarding struts2-spring-plugin
It's not a secret anymore!