It appears that SP9 for WebLogic5.1 (recently released) fixes this problem.
The informative exception is now reported!




-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 10:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Debugging struts exceptions 




On Wed, 4 Apr 2001, Will Spies/Towers Perrin wrote:

> 
> 
> I didn't get any response so I'm going to try again. Here is another
> exception:
> 
> Wed Apr 04 10:53:26 EDT 2001:<E> <WebAppServletContext-tpsampleapp> Root
> cause of ServletException
> javax.servlet.ServletException: runtime failure in custom tag 'form'
>      at jsp_servlet._employee._jspService(_employee.java, Compiled Code)
>      at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)

You might want to complain to WebLogic about this.

The actual exception that is thrown *does* contain a more useful error
message -- it's just that WebLogic is not telling you about it.

Alternatively, you can declare an error page to handle runtime
errors.  The Struts tags that throw exceptions store a copy of the
underlying exception as a request attribute under key
"org.apache.struts.action.EXCEPTION", so you can display it yourself.

Craig McClanahan

Reply via email to