Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:00:50+00:00 2026-06-01T16:00:50+00:00

I am working on an application using Spring 3 and Hibernate 3.5 with Java

  • 0

I am working on an application using Spring 3 and Hibernate 3.5 with Java 1.6.

So far I’ve been using JBoss 4.2.1 and everything was fine.

Now while migrating to JBoss 5.1, I encountered lot of issues. One of them is that JBoss is ignoring the Spring @Resource annotation. I get the following exception:

java.lang.RuntimeException: mapped-name is required for serviceManager of deployment pol-1.0.war
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:287)
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:550)
at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)

It expects mapped-name for each @Resource like some ejb.

I’ve seen similar questions but they are without any answer e.g.:

@Resource annotation not working properly with JBoss5.0.1

Please advise.

Adi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:00:51+00:00Added an answer on June 1, 2026 at 4:00 pm

    Actually your problem is that JBoss doesn’t ignore @Resource annotations – it tries to handle them according to EJB rules instead of leaving them to Spring.

    Perhaps this feature can be disabled somewhere in JBoss configuration, but the simpliest solution would be to replace @Resource with @Autowired or @Inject.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While working on a Spring 3 MVC project using Hibernate, we encountered an annoying
I'm working on a web application using Spring 3.0 and hibernate 3 with SQL
I'm working on a reporting web application using JasperReports and Spring MVC. Now, i
I am working on profiling a legacy application using Spring AOP and I want
I am working a java application using H2 Database in embedded mode. My Application
I'm currently working on web application using VB in ASP.NET. Right now I have
Working on a tracking application using GPS. It is all fine, but sometimes because
I have an application that is using Hibernate 3, c3p0, and spring 2.5.6. We
I am developing an application using oracle 11g, Java(struts2) and Hibernate. I have table
I am using Spring & Hibernate in my application and I want to set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.