permaculture playing cards*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Struts2 with Spring MVC?
Velocity + Struts2 + Sitemesh + Spring +Hibernate Integration How to configur web.xml?
Introducing Spring in Struts2 Project
Struts2-Spring annotation
Struts2 testing frameworks? Are there any?