aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 24166
    
  30

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
 
Don't get me started about those stupid light bulbs.
 
subject: regarding struts2-spring-plugin
 
Similar Threads
Struts2 with Spring MVC?
Struts2-Spring annotation
Introducing Spring in Struts2 Project
Velocity + Struts2 + Sitemesh + Spring +Hibernate Integration How to configur web.xml?
Struts2 testing frameworks? Are there any?