4 Replies Latest reply on May 29, 2003 4:45 PM by tester1331

    question about local interfaces in JBoss 3.2.1

    tester1331

      When I deploy a bean with a local interface in a separate
      jar from the session bean that uses it, I get the following
      error in jboss when my client tries to access the session bean:

      23:00:08,611 ERROR [LogInterceptor] EJBException, causedBy:
      javax.naming.NamingException: Could not dereference object [Root exception is java.lang.NullPointerException]
      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:934)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:577)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at com.titan.travelagent.TravelAgentBean.listCabins(TravelAgentBean.java:26)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)


      Hovever, if I combine the two beans in the same jar, it works.

      Is there a requirement that beans with local interfaces be in
      the same jar as other beans that use them, or is this a bug?

      P.S. I'm using the code in section 5.3 of the JBoss workbook
      used with O'reilly's Enterprise Java Beans 3rd Ed.

      -Thanx