1 Reply Latest reply on May 23, 2003 12:08 PM by juhalindfors

    Accessing EJB from Servlet within Jboss

    jasoneaton

      I have Jboss3.0.2 bundled with Tomcat environment. I have a servlet ( in a WAR file ) which tries to communicate to an EBJ Session Bean within the same Jboss instance but in a seperate EAR file. When I run the servlet's functionallity that communicates to the bean I get an exception;

      "java.rmi.ServerException: EJBException:; nested exception is:
      javax.ejb.EJBException: Invalid invocation, check your deployment packaging"

      ( Yes I am using the same version of the EJB classes to compile my servlet and include that EJB client jar with my servlet WAR file, as Jboss is using for the EJB )

      If I configure my servlet to talk to another instance of JBoss running the same EAR file it works just fine.

      Is there any special configuration necessary to allow the servlet to acess the EJB within the same Jboss instance? Why would the servlet work with external EJB instances and not Jboss internal EJB intances?

      Thanks.

        • 1. Re: Accessing EJB from Servlet within Jboss

          > Is there any special configuration necessary to allow
          > the servlet to acess the EJB within the same Jboss
          > instance?

          No.

          > Why would the servlet work with external
          > EJB instances and not Jboss internal EJB intances?

          Check that you're using correct libs one more time.. ?