0 Replies Latest reply on May 8, 2007 12:57 PM by Laszlo Schaffer

    tomcat seam and external app (SessionBean not bound)

    Laszlo Schaffer Newbie

      Hello

      I have a seam app that I had to ported to tomcat(6) . Another web app (from jsp pages) should reach some service functions from the seam app
      There is a simple stateless bean as a service proxy through external web clients can reach some business services
      (Note: this is working with jboss 4.2)

      the session bean

      @Stateless
      public class ServiceProxyBean implements ServiceProxy {
      @EJB UserController userCnt;
      @EJB PartnerController partnerCnt;

      /**
      ...

      the jsp ('normal' web app)

      <%
      try {
      InitialContext ctx = new InitialContext();

      serviceProxy=(ServiceProxy)ctx.lookup(
      "madreg/ServiceProxyBean/local");
      System.out.println("proxy ok");

      and the jndi in this webapp


      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=localhost

      But in tomcat6 I got an exception "bean not bound in jndi"

      Is there any workaround ?

      Thanks