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 3323362
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:17:37+00:00 2026-05-17T23:17:37+00:00

I have an EJB3 project to be deployed on JBoss 5.1.0 GA. I have

  • 0

I have an EJB3 project to be deployed on JBoss 5.1.0 GA. I have Stateless EJBs being injected into other Stateless beans and Servlets.

I’m using the @EJB annotation without any parameters to inject the EJB beans, (i have a test project just to simulate the injection, which works).

When i try deploying i get the error below.

"Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Resolution should not happen via injection container"

I have searched but can’t seem to find/pinpoint the cause of the error.

Update: 1

Both the EJB jar and WAR are deployed in the same EAR. I’m using the JEE5 archtype, http://code.google.com/p/javaee5-maven-archetype/ to create both the main project and test. The default code generated by the archtype works, and there is no need to specify the JNDI name in the @EJB injection.

Update: 2
The full deployment stacktrace, http://pastebin.com/CknXie13

  • 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-05-17T23:17:38+00:00Added an answer on May 17, 2026 at 11:17 pm

    Known Issue;

    http://community.jboss.org/message/8196#8196

    https://jira.jboss.org/browse/JBAS-6332

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

Sidebar

Related Questions

I have an EJB3 stateless session bean that uses some other ejbs to do
i have created a demo application Using JSF & EJB 3.0 (Stateless session bean
I have an EJB 3.0 project using webstart that I am trying to deploy
I have an EJB3 bean deployed as a web service in JBoss 4.2.2. In
We have some staleless EJBs (EJB3) deployed on a GlassFish 2 server that expose
We're developing a project in JaveEE6 , using EJB3 beans and JPA2 annotations. We
I have created an EAR with a web project, ejb3 project and the ejb
I am working on an EJB 3 project using OpenEJB (TomEE++). I have a
I have an JEE5 app using EJB3 with JPA. E.g I have some beans
I have a very trivial EJB3 project that I'm trying to deploy on JBoss

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.