0 Replies Latest reply on Jul 19, 2002 9:57 AM by dsnyckers

    NameNotFoundException using Struts with JBoss 3.0

    dsnyckers

      Hi,

      I'm running JBoss 3.0 with Tomcat 4.0.3 integrated.
      I have created a simple Struts application which makes a call from inside an action to a session bean.
      But I keep getting the following error :

      14:55:33,046 INFO [Engine] action: Creating new Action instance
      14:55:33,496 ERROR [STDERR] NAMING EXCEPTION OCCURED
      14:55:33,496 ERROR [STDERR] javax.naming.NameNotFoundException: ea not bound
      14:55:33,496 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming
      Server.java:495)
      14:55:33,496 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming
      Server.java:503)
      14:55:33,496 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingS
      erver.java:509)
      14:55:33,496 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServ
      er.java:253)
      14:55:33,496 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:445)
      14:55:33,496 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:429)
      14:55:33,496 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCon
      text.java:347)
      14:55:33,496 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:522)
      14:55:33,496 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:558)
      14:55:33,496 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:429)
      14:55:33,496 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCon
      text.java:347)
      14:55:33,496 ERROR [STDERR] at com.presscollection.eassist.web.actions.ViewA
      rticleListAction.performAction(ViewArticleListAction.java:61)
      14:55:33,496 ERROR [STDERR] at com.presscollection.eassist.web.actions.EAMai
      nAction.perform(EAMainAction.java:50)

      My configuration files look like this :
      ejb-jar.xml
      - ejb-name = PageFacadeEJB

      jboss.xml
      - ejb-name = PageFacadeEJB
      - jndi-name = ea/PageFacade

      web.xml
      - ejb-ref-name = ejb/PageFacadeEJB

      jboss-web.xml
      - ejb-ref-name = ejb/PageFacadeEJB
      - jndi-name = ea/PageFacade

      The call i do to lookup the session bean is the following :
      jndiContext.lookup( "java:comp/env/ejb/PageFacadeEJB" );

      It looks like it can find the mapping in jboss-web.xml, but from there it doesn't find the ea mapping ...


      Please help me,
      Thnx,
      Dave