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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content