Can someone confirm or reject if I am right about the below: "Tomcat requires that all classes which are placed in the default package are deployed in one and the same jar-file placed under <context-root>/WEB-INF/lib/ for the class to be found" /best regards Mikael
JAR files placed n here will be loaded automatically by the web container, if there are put somewhere else then you must set the CLASSPATH before starting the server.
Joined: Sep 18, 2001
I will try to clarify a bit what I meant: I have created two java-beans which belong to the default package but I created to different JAR-files in <docBase>/WEB-INF/lib for them. Then when I wanted to access the beans through the <jsp:useBean id="test1" class="test1"> and <jsp:useBean id="test2" class="test2"> the bean identified by test2 generates an "cannot create bean" error when the page is auto-compiled. I managed to locate and fix the problem when I put the two beans in the same jar-file and made a correct manifest-file stating that both classes where beans. Hope that clarifies the pre-conditions for my question.