I'm developping an application using Jboss-4.2.3.GA, spring 3.1.0.RC1 (framework, aop,...), Maven 3.3 and eclipse Indigo. If i deploy my webApp on Jboss using a command line jboss:deploy without using Eclipse, the project is deployed corrctly and i run my application very well. Now, for quick testing and deploying purpose, i want to use Eclipse to deploy the same web app on a jboss server added to eclipse servers and linked to the same external jboss server. The entry to my web app is always the same: a simple servlet (Bonjour.java) wich must call an autowired spring bean (promoteurPresInt) . The problem is that this bean is not wired. Debug shows that it's null.
the bean PromoteurPres.java:
the interface implemented by my bean
La servelett Bonjour.java:
It seems like jboss need some additional library or config when launching a spring application on it through eclipse???
Pliz Save me!
I have just configured Log4j for spring. It work very well, but no logs are trigered when the problem occur. I m going to chek if it's because i didnt create the project containing the bean the same way than the project containing the servlet. In fact, i created its by 2 diffrents versions of m2eclipse. I will keep you in touch.
Joined: Nov 01, 2011
I found the source of the problem. It was done by cheking the two war. the one genereted by m2eclipse and wtp and the one genrated by maven binaries directly. A spring context file was absent in wtp one. it was due to the bad donwloding of an RC version of spring dependency. now i m using an older version of spring core 3 and it works very well.
subject: autowiring problem when deploying on Jboss through eclipse