Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jsp Error: File structure?

Status
Not open for further replies.

Bebacha

Programmer
Mar 30, 2003
3
PH
I have created a jsp page that calls a bean.
The bean compiles and is stored in my C:\Tomcat\webapps\idcard\WEB-INF\classes\idcard folder as .class and .java.
The jsp file is stored in this folder: C:\Tomcat\webapps\idcard
However when I run the jsp and hit submit to allow the capture of the data I get this warning:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
Which I don't understand.
and this error:
Generated servlet error (with some variations on the theme):
C:\Tomcat\work\Standalone\localhost\idcard\retrieveData$jsp.java:64: Class org.apache.jsp.GetData not found.
GetData getData = null;

I have tried moving my bean file around to several different places within the structure and calling it by idcard.GetData but neither of those solutions worked.
Can anyone explain what the issue is?
 
Tomcat uses the environment variable CP to define the classpath for locating your bean, so first off you should make sure that reflects your beans location.

Is GetData the name of your bean? Is JSPNote a bean of yours also? "When you have eliminated the impossible, whatever remains, however
improbable, must be the truth." ~ Arthur Conan Doyle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top