• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Struts spring integration

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am facing problems in integrating spring in my struts 2 application.

I have made the following changes.

web.xml



pom.xml


I have created one applicationContext.xml

but everytime i start the jetty server i get an class not found error for org.springframework.web.context.ContextLoaderListener

I have also tried by manually adding the following jar's to the class path.

* spring-beans-2.0.1.jar
* spring-context-2.0.1.jar
* spring-core-2.0.1.jar
* spring-web-2.0.1.jar
* struts2-spring-plugin-2.0.6.jar

If anyone of you can tell me where have i made a mistake it will be helpful.

Regards
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of S2 are you actually using? The Maven snippet shows 2.0.14 (which uses Spring 2.0.5) and the manual version is using the 2.0.6 spring plugin and Spring 2.0.1.

In any case, I'd check for deployment/build issues, because the Maven dependency should be enough to get the required Spring classes. I've been using the Spring plugin for some time with no issues like this (yet!)
 
Naresh Bafna
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

David Newton wrote:

In any case, I'd check for deployment/build issues, because the Maven dependency should be enough to get the required Spring classes.



As you said, there were some deployment problems. It is working now

Thanks David
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!