wood burning stoves*
The moose likes Servlets and the fly likes Exception Handling in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Exception Handling in Tomcat" Watch "Exception Handling in Tomcat" New topic
Author

Exception Handling in Tomcat

James Winfrey
Ranch Hand

Joined: Jan 04, 2009
Posts: 60
Hi Guys

We are using tomcat container.

We have a dao that throws custom application exception.

We call servlet1 after throwing exception.

Then servlet1 also throws an exception.

In the catch block in the servlet1 we can't get the new exception description.

How can we get that exception details.

Thanks
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3018
    
  35

James Winfrey wrote:We call servlet1 after throwing exception.
.....
In the catch block in the servlet1 we can't get the new exception description.

Could you elaborate that?


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
Does your custom application exception implement Serializable?
preetha parasuraman
Greenhorn

Joined: May 05, 2009
Posts: 3
Can you provide more information on the servlet1 class.
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3018
    
  35

"preetha vp" please check your private messages regarding an important administrative matter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception Handling in Tomcat
 
Similar Threads
Strange behaviour of HttpServletResponse.encodeURL()
whats the difference between forward and redirect?
problem with response commitment
running a servlet without IDE
Communication between servlets of two different applications in Tomcat