• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding struts2-spring-plugin

 
Harshani Wickramarathna
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't imagine why this is in our Performance forum; I'll move it to our Struts forum.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic