Better yet, create a bugzilla enhancement request for TC5 and attach your patch (see http://jakarta.apache.org/site/source.html#Patches).

Mark

Edmon Begoli wrote:
Willie,

You shoud probably send this e-mail to Tomcat developer list as well.

Thank you,
Edmon

Willie Wheeler wrote:

Hi all,

I have a suggestion regarding the StandardWrapper
class in Tomcat 5.5.4.  It contains a loadServlet()
method that catches Throwable when trying to create
the servlet using reflection, but doesn't print a
stack trace.

The stack trace would have been very useful in a case
I ran into.  I was migrating an app from 5.0.28 to
5.5.4, and my Struts servlet wouldn't load.  But the
error message just said "Error instantiating servlet
class org.apahce.struts.action.ActionServlet" without
the root cause.  In the spirit of open source, I built
Tomcat from source after adding an appropriate
e.printStackTrace().  The problem was
NoClassDefFoundError:
org/apache/commons/collections/FastHashMap.  My WAR
did not include the Apache Collections JAR because
Tomcat 5.0.28 already had it.  But apparently 5.5.4
doesn't have it (or at least doesn't share it with web
apps--I haven't checked).  In retrospect I'm thinking
that I should probably have packaged the Apache
Collections JAR in my WAR since I can't really assume
that the server environment will provide it, but I
guess the point is that a stack trace would have made
the problem easy, whereas not having a stack trace
makes it difficult.

Anyway, I'm finally looking forward to playing with
JDK 1.5 now...  :-D

Willie



__________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to