2 Replies Latest reply on Oct 24, 2001 5:46 AM by benwilcock

    How does Jsps use ejb’s classpath when Jsps are on tomcat an

    parshuram

      Hi all
      I am having tomcat as webserver and Jboss as container
      When I invoke jsp on browser and my ejbjar files are on ..\deploy\.*.jar
      How to add these (i.e. ejbjar ) classfiles in tomcat-classpath ?
      Please suggest me some solution
      Regards

      Parshuram

        • 1. Re: How does Jsps use ejb’s classpath when Jsps are on tomca
          pfink

          This is documented.
          For tomcat 3.x put the jar into the war.....
          copy your EJB jar file to WEB_INF/lib before
          creating your JSP war.

          • 2. Re: How does Jsps use ejb’s classpath when Jsps are on tomca
            benwilcock

            Hi Parshuram,

            If creating wars each time you make a change is a pain, you could do the following...

            Package all your beans Home and remote interfaces into one jar file, then copy this to tomcat\lib. In ver 3.2.3 of Tomcat, all the jars in lib are automatically added to the classpath setting on startup. Then, whenever a bean is looked up, its interfaces will be available.

            Dont forget to add the jboss\client.jars to tomcat\lib and also put jndi.properties there or somewhere on your classpath.

            Hope this helps

            Ben