Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Unable to compile class for JSP  RSS feed

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you attempting to run it? How are you compiling it?
 
lakshmanan anand
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!