2 Replies Latest reply on Aug 11, 2005 12:19 PM by darranl

    3.2.3 to 4.0.2 upgrade - NameNotFoundException / not bound -

      Hi,

      I'm trying to upgrade from 3.2.3 to 4.0.2 running on Red Hat Linux. My app runs fine on 3.2.3. I've built my app using the 4.0.2 jars etc and it deploys ok (except that I get "Could not load the org.jboss.ejb.plugins.CleanShutdownInterceptor interceptor" after each entity bean is deployed. This looks like something to do with shutting down, so I've ignored it for the moment).

      I have several session beans that are accessed remotely. These session beans then usually access entity beans via their local interface. The first to be accessed is "GEN-SiteEJB". It is looked up via "local/GEN-SiteEJB". When this lookup is done under 4.0.2 I get the exception below. This works under 3.2.3.

      Listing the JNDI data there is a ref under local in the Global namespace, but it is mangled at the end:
      | +- GEN-SiteEJB@6598415 instead of
      | +- GEN-SiteEJB on 3.2.3
      is this my problem? If so, what do the numbers mean please?

      The local beans do not have jndi refs at the root level of the global JNDI namespace, so the error message is right, but I don't understand why it's looking for "GEN-SiteEJB" and not "local/GEN-SiteEJB" (which I passed to the InitialContext "lookup" method).

      Thanks,

      Andrew Gonnet

      javax.naming.NameNotFoundException: GEN-SiteEJB not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:252)
      at org.jnp.interfaces.NamingContext.looku(NamingContext.java:610)
      at org.jnp.interfaces.NamingContext.looku(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at geogpii.distpipeim.database.util.BeanLocator.lookup(BeanLocator.java:239)