aspose file tools
The moose likes Servlets and the fly likes Exception Handling in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2691
    
    3

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?


Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2691
    
    3

"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
running a servlet without IDE
Strange behaviour of HttpServletResponse.encodeURL()
problem with response commitment
whats the difference between forward and redirect?
Communication between servlets of two different applications in Tomcat