This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class JSPException not found error

 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am trying to compile my code via ANT.
I get following error
Symbol : class JSPException not found.
I have installed java 2 SDK. Java Web Services Development kit.
Am I missing something?
[ January 05, 2004: Message edited by: Rei Damle ]
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like a classpath problem.
Is servlet.jar in your classpath?
 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Varun,
I do not see servlet.jar on my machine. Java web services pack ( has inbuilt tomcat impl) has servlet-api.jar file which is in my class path.
Are servlet.jar and servlet-api.jar similar?
 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think I have hit the answer by just trial and error.
When I had jsp-api.jar file in my classpath alongwith servlet-api.jar, my error is gone.
But by God, how are we supposed to know about this? I did not find it anywhere. I tried googling also but with no help.
Can any experienced person, please tell me where all such nitty-gritties
can be found?
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rei Damle:
Hi Varun,
I do not see servlet.jar on my machine. Java web services pack ( has inbuilt tomcat impl) has servlet-api.jar file which is in my class path.
Are servlet.jar and servlet-api.jar similar?

Have you seen if JSPException class is there in servlet-api.jar?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic