In looking at the stack trace, the exception is java.lang.NoClassDefFoundError. This means that the class definition could not be found to instantiate the class. For struts - does that mean it cannot find DynaActionFormClass (from the stack trace) or that it cannot find DynaValidatorForm as defined in the struts-config.xml file:
<form-bean name="verifyForm" type="org.apache.struts.validator.DynaValidatorForm"> Interestingly enough, both of these classes are in the same jar file as the class that is trying to instantiate it: org.apache.struts.util.RequestUtils.createActionForm. So is this a class loader problem? My struts jar is in the WEB-INF/lib directory. Is this a timing issue? When does struts load the struts-config.xml and try to create the form beans (such as verifyForm)? ---------------------------------------------------------------------- SEVERE: Error creating form bean of class verifyForm java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.struts.action.DynaActionFormClass.newInstance(DynaActionFormClass .java:238) at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:611) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:635) at org.apache.jsp.verify$jsp._jspService(verify$jsp.java:97) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > -----Original Message----- > From: Jay Wright [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 03, 2003 4:58 PM > To: '[EMAIL PROTECTED]' > Subject: DynaValidatorForm exception. > > > > I've seen a number of postings regarding a ServletException > that is thrown > when a struts tag can't create a DynaValidatorForm: > > javax.servlet.ServletException: Exception creating bean of class > org.apache.struts.validator.DynaValidatorForm: {1} > > Basically, when we restart tomcat (4.0.4 on unix, struts > 1.1-b2) we are > likely to see this error the first time we try to access our > webapp. But > then a second (sometimes third) restart of tomcat will clear > the problem and > the webapps will function properly. > > Is there any reason for this? Does it have to do with the > location of the > struts jar file? Does it need to be in the WEB-INF/lib or > the common/lib or > other part of the path? > > Has anyone been able to overcome this annoyance? > > Jay > > --------------------------------------------------------------------- > 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]