• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to compile class for JSP - Error

 
S Dongan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I receive the following error in index.jsp file. Actually, it is working in my local machine correctly. But, in the server, it generates an error. But, the database version is different in the server. Will it be the cause?

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 184 in the jsp file: /index.jsp
Generated servlet error:
/usr/local/psa/home/vhosts/xxxxxx.com/jakarta-tomcat-5.0.28/work/Catalina/localhost/project1/org/apache/jsp/index_jsp.java:233: cannot resolve symbol
symbol : class Country
location: class org.apache.jsp.index_jsp
if(getServletContext().getAttribute("CountryCollection")==null) getServletContext().setAttribute("CountryCollection",new Country().getAllObjectsCollection());

Thank you for your help.

Regards,
Dongan.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cannot resolve symbolsymbol : class Country


Looks like it can't find one of your classes.
Maybe you missed some when shipping the app to the server?
 
S Dongan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:


Looks like it can't find one of your classes.
Maybe you missed some when shipping the app to the server?


similarly , i receive many exceptions. i am sure i have't missed anything to the server.

anyother suggestions? anyway, i will upload the files again.
[ October 17, 2005: Message edited by: Dongan S ]
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Ben, this problem doesn't look like problem with different database version.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Dongan S".

You have already been asked at least once (here) to change your display name to conform to JavaRanch requirements,

Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

bear
Forum Bartender
 
S Dongan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:


Looks like it can't find one of your classes.
Maybe you missed some when shipping the app to the server?


Yeah. Finally, i made it. You are right. I missed one class and traced out. Thank you for your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!