Hi group, I am facing the following problem: I've got a JSP which, among other things, is invoking an EJB. Our framework includes a utility class called HomeFactory which is responsible of obtaining home stubs in a uniform, application-centric manner (reading jndi.properties once, etc.). Whenever I'm trying to use this HomeFactory to get an EJB's Home reference, I'm getting a ClassNotFoundException (for the Home Interface), although the EJB client jar file is located in WEB-INF\lib, as often recommended in J2EE tutorials. I _did_ find out that the problem is solved when the EJB client jar is located in he application server's classpath (that's WLS6.1, btw) OR the HomeFactory located in the WEB-INF\classes directory. It seems, however, that neither of these solutions is ideal (due to maintnance & redeployment issues) - but I can't find a way to make it work.
One last thing - I've done this little test, where I've written a small web-app where a jsp is instantiating a class which is located in the server's classpath, and this class, in turn, instantiates another class that is located in the web application's classpath (WEB-INF\lib). Again, the JSP threw a ClassNotFoundException, but when comparing the web-app's ClassLoader to the first class's ClassLoader(using Thread.currentThread().getContextClassLoader()) I found out that they were the same classloaders, having access to the same class files... Does anyone have an idea how I can solve this thing, keeping the IFS class in the server's classpath and the EJB Client classes in the WEB-INF\lib??? any _ideas_ would be greatly appreciated. Zvika Markfeld Comverse, Israel. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
