File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "regarding struts2-spring-plugin" Watch "regarding struts2-spring-plugin" New topic
Author

regarding struts2-spring-plugin

Harshani Wickramarathna
Greenhorn

Joined: Nov 15, 2007
Posts: 28
Hi.

I have done everything to integrate spring into my application as mentioned in this site. http://struts.apache.org/2.0.11.1/docs/spring-plugin.html

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.

Harshani
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
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding struts2-spring-plugin