4 Replies Latest reply on May 21, 2004 4:43 PM by Adrian Brock

    no JNDI entries

    pokey909 Newbie

      Hi all!

      I coded a simple HelloWorld Bean at home and wrote a java application client for it. At home everything works as expected. If I look at the JNDIView page I can see some namespaces for some existing sample apps and also my own HelloWorld bean.
      I tried the same thing at work and nothing works. The JNDI tree only shows the "java:" nad global namespaces. But my JNDI names for my bean is nowhere found in there. THe ejb-jar.xml, jboss.xml, application-client.xml and jboss-client.xml are all there but nothing happens.
      Any ideas what could lead to this behaviour?
      (btw. I changed some ports of jboss and some services at work, thats the only difference, but the errorlog doesnt show up any errors)

        • 1. Re: no JNDI entries
          Juha Lindfors Master

          check the /log directory for server.log and look for exceptions at deployment time that would prevent the bean from deploying correctly.

          • 2. Re: no JNDI entries
            pokey909 Newbie

            There is no error.
            But at home the log tells me about the JNDI name of the deployed bean.
            At work nothing is said about its JNDI name:

            ---------------------->8----------------------------------->8-------------------
            2004-05-21 18:04:46,336 INFO [org.jboss.deployment.EARDeployer] Undeploying J2EE application, destroy step: file:/homes/pokey/Java_Enterprise/jboss-3.2.3/server/default/deploy/TestDB.ear/
            2004-05-21 18:04:46,341 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/homes/pokey/Java_Enterprise/jboss-3.2.3/server/default/deploy/TestDB.ear/
            2004-05-21 18:04:46,342 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/homes/pokey/Java_Enterprise/jboss-3.2.3/server/default/deploy/TestDB.ear/
            2004-05-21 18:04:46,736 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/homes/pokey/Java_Enterprise/jboss-3.2.3/server/default/deploy/TestDB.ear/
            2004-05-21 18:04:46,736 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/homes/pokey/Java_Enterprise/jboss-3.2.3/server/default/deploy/TestDB.ear/

            • 3. Re: no JNDI entries
              pokey909 Newbie

              At home the log says

              21:59:39,503 INFO [StatelessSessionInstancePool] Started jboss.j2ee:jndiName=ejb/HelloBean,plugin=pool,service=EJB
              21:59:39,504 INFO [StatelessSessionContainer] Started jboss.j2ee:jndiName=ejb/HelloBean,service=EJB

              Maybe I should say that at work JBoss is running on a remote machine and i deployed via nfs mount. But that shouldnt make a difference i think.
              The session container doesnt seem to start, but why?!

              • 4. Re: no JNDI entries
                Adrian Brock Master

                Your ear has no ejb jar either for real or described in application.xml