File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnavailableException problem

 
Meng Tan
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got an error message when compiling the following class I created myself :
public class AnotherUnavailableException extends javax.servlet.UnavailableException {
}
The compilation error message is :
D:\jakarta-tomcat-4.0.1\webapps\ch05\WEB-INF\classes>javac -classpath %j2ee_home
%\lib\j2ee.jar AnotherUnavailableException.java
AnotherUnavailableException.java:1: cannot resolve symbol
symbol : constructor UnavailableException ()
location: class javax.servlet.UnavailableException
public class AnotherUnavailableException extends javax.servlet.UnavailableExcept
ion {
^
1 error
And when I replace UnavailableException with ServletException as the base class, it is OK.
I dont know what is wrong.
Please help!
 
Meng Tan
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, please ignore the problem. I managed to find the cause.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic