Spring component-scan and @Autowired is not working properly in JBoss EAP 5.1.2
Issue
- We facing a challenge in using Spring 3.0 component-scan feature with JBoss. We are unable to use the
@Autowiredfeature. - We also have a JBossWS-Native endpoint in the application.
- We are utilizing ORM via Spring with Hibernate.
- A
NullPointerExceptionis thrown when trying to invoke the Spring managed object.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 5.1.2
- Spring 3.x
- Hibernate 3.x
- JBossWS-Native 3.1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
