This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Spent the past day or so trying to set up a little Struts2, Spring3 (eventually Hibernate4) app with Annotations eg @autowired
but am having a little trouble.
For some reason my Action is always dropping to teh error.jsp, because my TestService is NULL.
Just wondering if anyone can see an obvioius reason why this is the case. I think I have included everything I need to below...
I'm sure it's going to turn out to be something stupid...
Note you don't need to wire your bean up in XML you are fine with the component scan like you have your bean name by convention will be "testService". However you can override this by giving a different name to the annotation @Service("myService")
I think you should carefully read over the fist link I gave you again. I think you are missing something in the configuration. I don't use Struts 2 and Spring so I can provide much more assistance with this. I did add this to our Struts forum in case someone there has more experience integrating these 2 technologies.
Kevin P Smith
Joined: Feb 18, 2005
Arh yes it works with the struts2-spring.2.3.8.jar I had the 'reverse' jar spring-struts2.jar
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Struts2.1.8 Spring3.2.1 anootated app with autowired, gives Service as NULL