tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: tomcat 4.1.12 compilation error
Date Fri, 25 Oct 2002 10:59:21 GMT
Put your custom java classes in a package and recompile.

Old class: Login
New class: fooPackage.Login
New location: webapps\myapp\WEB-INF\classes\fooPackage\Login.class

Tomcat 4 doesn't looking for classes without a package.

Nirav.Shah@arvindmills.com wrote:
> Dear All,
> 
> I am just newbie for tomcat 4.1.12 version. Recently I have installed it on
> my NT Server. Now I have a problem to access classes through JSP files of
> my Application.
> 
> Following is the structure of my application
> 
> webapps\myapp\*.jsp
> webapps\myapp\WEB-INF\classes\*.class
> 
> Following is the error which I am getting.
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 1 in the jsp file: /checklogin.jsp
> 
> Generated servlet error:
>     [javac] Compiling 1 source file
> 
> D:\Tomcat 4.1\work\Standalone\localhost\opt\checklogin_jsp.java:44: cannot
> resolve symbol
> symbol  : class Login
> location: class org.apache.jsp.checklogin_jsp
>       Login log = null;
>       ^
> 
> 
> 
> An error occurred at line: 1 in the jsp file: /checklogin.jsp
> 
> Generated servlet error:
> D:\Tomcat 4.1\work\Standalone\localhost\opt\checklogin_jsp.java:46: cannot
> resolve symbol
> symbol  : class Login
> location: class org.apache.jsp.checklogin_jsp
>         log = (Login) pageContext.getAttribute("log",
> PageContext.SESSION_SCOPE);
> 
> 
> 
> The same structure was working fine in tomcat 3.x version.
> 
> Thanks in advance :)
> 
> Rgds
> Nirav
> 
> 
> 
>  


--
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