File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Class JSPException not found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Class JSPException not found error" Watch "Class JSPException not found error" New topic
Author

Class JSPException not found error

D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
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

Joined: May 30, 2002
Posts: 1400
It looks like a classpath problem.
Is servlet.jar in your classpath?


- Varun
D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
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

Joined: Apr 25, 2003
Posts: 215
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

Joined: May 30, 2002
Posts: 1400
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class JSPException not found error
 
Similar Threads
classic tag extends TagSupport
How to use custom tag?
JSP: Passing object to a bean using setter method
Question about servlet.jar
Help-javax.servlet.jsp does not exist