File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2885
    
  13

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
My 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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2885
    
  13

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