This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes struts2 - spring problem 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 » Spring
Bookmark "struts2 - spring problem" Watch "struts2 - spring problem" New topic

struts2 - spring problem

khaled hanafy

Joined: Jun 28, 2010
Posts: 25
I am trying to integrate struts2 and spring but the spring doesn't inject the beans when required "it gives null pointer".

my applicationContext.xml as follow

and the TestBao and TestDao classes as follow

and the tomcat server gives that in the console which mean the spring runs properly

any idea ..
I agree. Here's the link:
subject: struts2 - spring problem
Similar Threads
Spring AOP and AspectJ Integration with EJB3
Sychronization problem with hibernate and weblogic 9.2 JTA
Understand regarding REQUIRED and REQUIRES_NEW
LazyInitializationException [spring + struts2]
@Autowired problem