GeeCON Prague 2014*
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


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: 3112
    
  42

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 ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- 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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3112
    
  42

"preetha vp" please check your private messages regarding an important administrative matter.
 
GeeCON Prague 2014
 
subject: Exception Handling in Tomcat