tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
Subject Re: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
Date Mon, 15 Nov 2004 21:22:45 GMT
From: "Venkat Reddy Valluri" <venkatv@quinnfable.com>
>    I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with
mod_jk(ajp13)
>    when I try to execute jsp's they processed  fine with tomcat.   But one
of my jsp's having a import(<%@page import
> ="Test"%>) of one java class(Test.java) which is not included in any
package( I mean it is not having a package
>  name.i.e dierectly placed under the root directory).  Here I am getting
compilation error saying that it is expecting Test.;
>     THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with
mod_jk
> Can you please xplain me Why it is bahaving like this

Somewhere around the move from Tomcat 4.0 to 4.1 and from Java 1.3 to 1.4,
things changed and you can no longer import a class in the default package
[no package statement] into a class that _is_ in a named package (such as
the code generated from a JSP).

If you're using the same JDK version on both servers, then my guess is that
Tomcat 4.1 puts a package statement on the code generated from the JSP,
while Tomcat 4.0 didn't.  You can look in the 'work' directory to find out
for sure, but it's irrelevant-- by the time you're deploying a J2EE webapp,
all of your code should be packaged.

-- 
Wendy Smoak


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


Mime
View raw message