Spring component-scan and @Autowired is not working properly in JBoss EAP 5.1.2

Solution Unverified - Updated -

Issue

  • We facing a challenge in using Spring 3.0 component-scan feature with JBoss. We are unable to use the @Autowired feature.
  • We also have a JBossWS-Native endpoint in the application.
  • We are utilizing ORM via Spring with Hibernate.
  • A NullPointerException is 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.