This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable to compile class for JSP" Watch "Unable to compile class for JSP" New topic
Author

Unable to compile class for JSP

lakshmanan anand
Greenhorn

Joined: Jan 13, 2009
Posts: 22
hi,

I am trying to develop and deploy a simple web app tutorial given in Head First servlets and jsp book, but after I wrote all the necessary files, when i try to run , it gives me the erro 500 : saying unable to compile jsp file.
I have just 1 servlet(controller), 1 plain java code(model) and 1 jsp file (view). Is there something wrong . I have given all the three files below.

I am using tomcat 5.0

Error is




JSP file



Servlet



java file (model)


html file (form.html)




please help me..

should i include any jsp jar file from tomcat into classpath variable. i am stuck here..


http://luckydev07.blogspot.com
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

How are you attempting to run it? How are you compiling it?
lakshmanan anand
Greenhorn

Joined: Jan 13, 2009
Posts: 22
i am running it from browser

http://localhost:8080/BeerV1/form.html

This form will have a button, which will call the servlet to do some computation and that servlet will call a jsp to give the page to the user....

the servlet class compiled without errors, should i include any classpath for the jsp compilation
Edgar Balderas
Greenhorn

Joined: Jun 13, 2009
Posts: 14
Your trace suggests that the java environment variables are not set correctly.

Look at http://java.sun.com/docs/books/tutorial/essential/environment/paths.html


|SCJP-87|SCWCD-95|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to compile class for JSP