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.

[EMAIL PROTECTED] 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>

Reply via email to