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

  • Home
  • SEARCH
  • 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 5987329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:47:56+00:00 2026-05-22T22:47:56+00:00

I have a war (using struts 1) nested in an ear with session ejbs.

  • 0

I have a war (using struts 1) nested in an ear with session ejbs. If I lookup normal session beans from the war with lookup(“earname/beanname/local”) everything works. If I lookup a @Service ejb the same way it fails from the war with a NamingException.

To make sure I was doing the lookup correctly I looked up one @Service bean from another’s start() method (instead of injecting with annotations) and the jndi lookup succeeded.

What could be the cause of this behavior? I am currently stuck with JBoss 5.0.

  • 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-22T22:47:57+00:00Added an answer on May 22, 2026 at 10:47 pm

    After going through the jmx-console like Nicholas recommended I was able to track down my mistake.

    It turns out my two lookups were in fact different. The war was using the service name that I wanted, everything else (which was working) was using the class name of the implementation of the @Local interface.

    To further the confusion I used @Service(objectName=”blah”) instead of @Service(name=”blah”).

    I am now able to successfully lookup my @Service ejbs from my war.

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

Sidebar

Related Questions

I have multiple (8) WAR files and 1 EAR file that I want to
I have a simple j2ee application: foo.ear - foo.war - foo.jar (ejb3 jar) I
I have Maven2 war project built, I'm using the cargo start plugin, and it
I'm using Jboss 4/5 and have some .war .properties files with default configuration settings
We have developed an auto deployment tool for deploying files(ear,war and jar) in jboss
We have multiple war files packaged in an ear file. Some of the wars
I have a WAR file that was built using grails framework and OSGi plugin.
I am using Tomcat 7 as a servlet container and I have two war
I have an ear file that consists of a war file together with a
I have integrated solr.war in my web application, i am using bea102 weblogic server.

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.