This one is a little hard to describe due to how it manifests.  I'd
appreciate any suggestions.

>From time to time when we start our server, we get a JspException that
doesn't go away until we restart the server.  So it comes and goes *without*
making changes to code or configuration files, and we're not sure what the
root cause is.  In one place, the JspException reads:

javax.servlet.jsp.JspException: Exception creating bean of class
com.trams.struts.LoginForm: {1}
        at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:610)
        at org.apache.jsp.login$jsp._jspService(login$jsp.java:357)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        .
        .
        .

I've traced it down to the org.apache.struts.util.RequestUtil, on or about
line 557 of the nightly build where it reads:

  try {
    // FIXME - thread context class loader?
    Class clazz = Class.forName(config.getType());
    instance = (ActionForm) clazz.newInstance();
  } catch (Throwable t) {
    LOG.error(servlet.getInternal().getMessage
    ("formBean", config.getType()), t);
    return (null);
  }

It throws a ClassNotFound exception on the forName line, and indeed returns
a null value and adds an ERROR log entry as it's coded to do in case a
Throwable is thrown.  It's interesting that just doing a restart fixes it.
This happens even on our production server.  When it does, I just restart
the Apache Tomcat service, and it's fine again.

We're on Struts Nightly Build, Apache Tomcat 4.0.3, JDK 1.3.1, Windows 2000.


Anthony

"Were it not for my little jokes, I could not bear the burdens of this
office." - Abraham Lincoln

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

Reply via email to