tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Tomcat 4.1.10 - JSP Compile Error
Date Mon, 23 Sep 2002 15:47:34 GMT
I have installed Tomcat 4.1.10 on C:\Tomcat41. I have an application which
is on d:\appdir\wws2Java.
The CATALINA_HOME is set to C:\Tomcat41
CATALINA_BASE is not set.

I set the context Section in server.xml as follows:
        <!Context path="/wws2Java"

All the files which belongs to the application reside in the wws2Java directory.
The subdir structure is the same as in the standard webapps directory.
(WEB-INF, classes and so on).
Under Tomcat 3.2 this works perfectly.
Now under Tomcat the compilation of the JSP fails because the compiler
cannot find the imported packages of my application. This seems to happen
because Tomcat 4 is no longer using the information of the classpath environment
I read the documentation and searched the web to find out how I can convince
Tomcat that my classes are also to be found under the docbase directory.

In the classloader HowTo I found the following:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)

>From this I would expect that my WEB-INF/classes directory will be searched first.

BTW - If I copy my wws2Java directory to the tomcat webapps directory on c-drive
everything works - except for the following error:

Generated servlet error:
    [javac] Compiling 1 source file
C:\Tomcat41\work\Standalone\localhost\wws2Java\ jspDestroy()
is already defined in org.apache.jsp.index_jsp  public void jspDestroy() { ...

What do I have to do, that the compiler finds the classes ?

And - not my major problem - why is it no longer possible to have a own jspDestroy

TIA and best regards,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message