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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:22:43+00:00 2026-05-28T05:22:43+00:00

I have a jboss and a tomcat installed in the same machine (with jboss

  • 0

I have a jboss and a tomcat installed in the same machine (with jboss 6 having port 8080 and tomcat 7 having port 8090) and I am trying to use JNDI lookup from tomcat to obtain the ejb lookups in JBoss. I have checked my EJB beans using the jmx console to make sure they are available. I have denoted them to be @Remote and in JMX console these EJBs are avilable as
aaaServiceRemote/remote
bbbServiceRemote/remote etc

I my tomcat, I have put my application war which consists a Service locator and when the application starts the service locator tries to find the EJBs and fails.
I have put jnp-client and jboss-all-client jar files copied from jboss/client to tomcat/lib folder
I have put a jndi.properties file inside the webapp directory of tomcat consisting of the following entries.

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

it seems that tomcat is trying to find the EJBs in its JNDI context not the remote jboss JNDI context.

any help on how this remote looking up can be enabled please.

  • 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-28T05:22:43+00:00Added an answer on May 28, 2026 at 5:22 am

    it looks like your jndi.properties file is not read properly.
    Have you tried to see whether these properties are passed to the InitialContext object when you create a first JNDI lookup?

    What the debug reveals?

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

Sidebar

Related Questions

I am using jboss 4.2 server and oracle xe both have same port ie
What version of Tomcat does JBoss 5.1.0 have embedded? Thanks
We have a large web app installation, using Apache/Tomcat/Jasper and jboss. In development environment,
I have developed a java 1.4 web application.Application is deployed on jboss(tomcat). suppose my
I have the following arrangement : Tomcat --EJB-invokation--> JBoss (6.0.14) (5.1.0) The two servers
I am trying to invoke an EJB on JBoss 5.1.0 from two instances of
i use eclipse with tomcat 5.5 and jdk 1.6. i have 2 question 1.which
I can't access the Tomcat inside JBoss server. I have JBoss 5.1.1 and started
I'm trying to run the Tomcat with JBoss Embedded jpa booking example. I run
I have an application server (JBoss, but this also happens in Tomcat) running as

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.