• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting 500 Error While Running JSP.

 
Prasad Pusapati
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I Have Follwoing Problem.I Wrote 2 JSP Pages Named ABC.jsp & CBA.jsp Running In Tomcat5.5.While Making Request TO ABC.jsp I Am Getting Following Error.Please Help Me To Resolve This.
__________________________________________________________
ABC.jsp
<%@ page errorPage="CBA.jsp" %>
<html><body>
<% if(true){
throw new Exception("Exception Thrown By ABC.jsp");

}%>

</body></html>
______________________________________________________________


CBA.jsp
<%@ page isErrorPage="true" %>
<html><body>
Error Is:<%= exception.getMessage() %>
</body></html>
_______________________________________________________________

ABC.jsp & CBA.jsp are In Tomcat5.5/webapps/myapp/
1)Why Internal 500 Error Is Comming While Making A Request To ABC.JSP
I Am Making Request Like This: http://localhost:8080/myapp/ABC.jsp
2)How Can We Do Debugging In Tomcat5.5?.
3)Does Tomcat5.5 Supports Auto Reloading Of Servlet After Making Any Changes To It?.
Please Help Me For Solving Above Problem(s)?.
Thanks In Advance,
Prasad p.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)Why Internal 500 Error Is Comming While Making A Request To ABC.JSP
Do you have an error page mapped for 500 errors in your web.xml file?

2)How Can We Do Debugging In Tomcat5.5?.
I use log.debug(String) statements with log4j.
Some use System.out.println.
Others use an IDE such as Eclipse or Netbeans with whatever debugging tools they offer.

3)Does Tomcat5.5 Supports Auto Reloading Of Servlet After Making Any Changes To It?.
Yes. Set reloadable to "true" for your context.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Prasad P.",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. 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.

Thanks!
bear
Forum Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!