[jboss-user] [JBoss Seam] - Seam messes up JNDI lookups from webtier in GlassFish

samdoyle do-not-reply at jboss.com
Wed Aug 1 21:50:45 EDT 2007

Gah, I thougth Seam was going to make things easy to integrate not harder?

Since Seam Remoting doesn't appear to work on GlassFish I am attempting to switchback to DWR which works fine as usual. But when I hit my server side object that does a JNDI lookup I get a no object bound to name exception. The exact same code works fine without using Seam.

Very basic lookup in GlassFish that works without Seam:

  |  private GarageEntityBeanFacadeLocal lookupGarageEntityBeanFacade() {
  |       try {
  |          Context c = new InitialContext();
  |          return (GarageEntityBeanFacadeLocal) c.lookup("java:comp/env/ejb/GarageEntityBeanFacade");
  |       } catch(NamingException ne) {
  |          Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception caught" ,ne);
  |          throw new RuntimeException(ne);
  |       }
  |    }

With Seam I constantly get the exception

javax.naming.NameNotFoundException: No object bound to name exceptions.

I really think Seam has potential but perhaps it is not ready for use with GlassFish. I'm really encountering several snags that really bogs me down and is preventing me from getting stuff done.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069865#4069865

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069865

More information about the jboss-user mailing list