class not found error in JSP

B

biswa

Hi,
I am upgrading tomcat from 4.0.6 to 4.1.3. In new installation I am
getting class not found error everywhere i have used
<%@ page import="MyClass" %> ->Class not found.
but i do not have "class not found" error for packaged class.
<%@ page import="utility.*" %> -> does not give error.

In Tomcat 4.0.6 version I am not getting class not found error.
MyClass is a non packaged class file and is under classes directory.
If I do not use
<%@ page import="MyClass" %> JSP file does not compile neither.

I have configured JAVA_HOME and CATALINA_HOME correctly.

I can't find any help in tomcat-docs.

What am i missing??

Thanks.
biswa.
 
C

Christophe Vanfleteren

biswa said:
Hi,
I am upgrading tomcat from 4.0.6 to 4.1.3. In new installation I am
getting class not found error everywhere i have used
<%@ page import="MyClass" %> ->Class not found.
but i do not have "class not found" error for packaged class.
<%@ page import="utility.*" %> -> does not give error.

In Tomcat 4.0.6 version I am not getting class not found error.
MyClass is a non packaged class file and is under classes directory.
If I do not use
<%@ page import="MyClass" %> JSP file does not compile neither.

I have configured JAVA_HOME and CATALINA_HOME correctly.

I can't find any help in tomcat-docs.

What am i missing??

A package statement in your MyClass. You can no longer import from the
default (== no package statement) package.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top