3 Replies Latest reply on Apr 29, 2004 4:52 AM by srini

    Getting the EJB

    emimob

      Well I am pretty new in developing Enterprise Application and so I decided to teach myself with JBoss .I have done the example in the JBoss Tutorial Step by Step,the application Server ran as it should,I deployed the EJB also and everything seemed to be OK,since a peculiar error occured when trying to get the bean i.e by executing the "Context" method "lookup".Well this ist the StackTrace:

      javax.naming.CommunicationException: Receive timed out. Root exception is java.net.SocketTimeoutException: Receive timed out
      at java.net.PlainDatagramSocketImpl.receive(Native Method)
      at java.net.DatagramSocket.receive(DatagramSocket.java:670)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1093)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1223)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
      at client.HelloFrame.main(HelloFrame.java:85)
      2004-3-24 13:41:37 client.HelloFrame main
      SEVERE: Lookup failed!


      I will be very thankful if you could help me,since I really have no idea what I should correct or configure.In the meantime this is the configuration I have:

      OS: Windows 2000

      Eclipse: Version 3.0

      JBOSS: JBoss-3.2.3

      JVM: 1.4.1_02

      I am using also the JBossIDE for Eclipse.


      Thanx a lot!

        • 1. Re: Getting the EJB
          boxhead

          DID YOU EVER SOLVE THIS PROBLEM, I AM HAVING THE SAME PROBLEM. I BELIEVE THERE IS A BUG IN JBOSS ITSELF.

          • 2. Re: Getting the EJB
            darranl

            Boxhead,

            Please don't dig up lots of posts adding me to messages.

            JBoss works fine.

            Also please don't post in capitals, IT IS RUDE.

            • 3. Re: Getting the EJB
              srini

              just check if u have all the necessary classpath set.

              check if ur client code has set the properties and passing to Initial Context

              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");

              env.put(Context.PROVIDER_URL, "localhost:1099");

              env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
              t