DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26447>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26447 NoClassDefFoundError while using Custom Validator Summary: NoClassDefFoundError while using Custom Validator Product: Struts Version: 1.0.2 Final Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Validator Framework AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I could succesfully use teh StrutsValidator by using Validator plug-in. To enhance my application scope, I created a new Custom validator and put it in the Validator-rules.xml. When I ran my web application, it produced a NoClassDefFoundError on the first argument of validateXXX method which was org/apache/commons/validator/ValidatorAction in my case. My validator resides in my application's own package. After several work arounds, I put the Validator in org.apache.struts.util package under my directory structure and got my Validator called. This is the package where StruitsValidator resides. I am sure this is not the appropriate way. What is the reason teh framework could not load this class. I used webLogic 7.02. I did not try other platforms to deploy. Stack Trace <Jan 26, 2004 4:02:33 PM EST> <Error> <HTTP> <101017> <[ServletContext (id=330037 7,name=RtvCmRs.war,context-path=/RtvCmRs)] Root cause of ServletException java.lang.NoClassDefFoundError: org/apache/commons/validator/ValidatorAction at java.lang.Class.getMethod0(Native Method) at java.lang.Class.getMethod(Class.java:883) at org.apache.commons.validator.Validator.validateFieldForRule (Validator .java:401) at org.apache.commons.validator.Validator.validateField (Validator.java:5 44) at org.apache.commons.validator.Validator.validate(Validator.java:582) at org.apache.struts.validator.DynaValidatorForm.validate (DynaValidatorF orm.java:151) at org.apache.struts.action.RequestProcessor.processValidate (RequestProc essor.java:942) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.ja va:255) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:148 2) at org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1058) at weblogic.servlet.internal.ServletStubImpl.invokeServlet (ServletStubIm pl.java:401) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20) at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:5451) at weblogic.security.service.SecurityServiceManager.runAs (SecurityServic eManager.java:780) at weblogic.servlet.internal.WebAppServletContext.invokeServlet (WebAppSe rvletContext.java:3105) at weblogic.servlet.internal.ServletRequestImpl.execute (ServletRequestIm pl.java:2588) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]