tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunter.No...@porsche.de
Subject Tomcat 4.1.10 - JSP Compile Error
Date Mon, 23 Sep 2002 15:47:34 GMT
Hi,
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"
                 docBase="d:\appdir\wws2Java"
                 crossContext="true"
                 debug="2"
                 reloadable="true">
        <!/Context>

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
setting.
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)
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

>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\index_jsp.java:42: 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
implementation

TIA and best regards,
Gunter






--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message