Hi Niall I've done all that, checked all the jars and copied them into the lib dir from the bin distro. Replaced all the tld files in WEB-INF from the bin distro. Took the validator-rules.xml as well.
Everything I have now is officail 1.2.4 with relevant jars. I'm runnign in tomcat 4.1.18 Thansk for the help Donie -----Original Message----- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 07 December 2004 15:42 To: Struts Users Mailing List Subject: Re: Exception when app goes to form which extends ValidatorForm OK I shoved your struts-config into my webapp. Firslty I got an exception telling me that the message-resources and plug-in were in the wrong order: org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappi ngs?,controller?,message-resources*,plug-in*)". However, it also logged that it was setting the pathnames properties correctly. So this is bizarre because your log showed no exception and you didn't get the pathnames properties set. Move the plug-in to after the message resources - probably will make no difference, but it should be there. The other thing I noticed is the dtd declaration is for struts 1.1 - are you using Struts 1.1 or Struts 1.2.4. If your using Struts 1.2.4 then change it to the following: <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"> Having said that - it shouldn't make any difference either 'coz you can use the 1.1 DTD with Struts 1.2.4 (I just did with your struts-config). The only other thing I can think of is have you deployed all the right jars? Deploy the ones that you got in the Struts 1.2.4 binary distro (commons beanutils, commons validator, commons digester, commons collections, etc). If you do all that and its still not working then I'm at a loss. Maybe look at the SAX parser implementation your using. Also, whats the servlet container you're deploying on - maybe theres some kind of config issue with it? Thats all I can think of Niall ----- Original Message ----- From: "Donie Kelly" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 07, 2004 2:44 PM Subject: RE: Exception when app goes to form which extends ValidatorForm > Hi niall > > Yes, it's definatly being deployed like that. I've looked for no-printablew > codes in the text, just in case, but there are none there. > > What else could be stopping it from reading the properties? > > I've attached the full strts-config.xml, validation.xml and > validator-rules.xml > > Thanks for all the help > Donie > > > > > > -----Original Message----- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: 07 December 2004 14:00 > To: Struts Users Mailing List > Subject: Re: Exception when app goes to form which extends ValidatorForm > > From your log, its not picking up any properties for the ValidatorPlugin - > most importantly - the "pathnames" one - thats why your not getting any > validator resources initialized. > > See these lines.... > > 7 Dec 13:07:25 [DEBUG ActionServlet.807] Initializing module path '' plug > ins > 7 Dec 13:07:25 [DEBUG BeanUtils.710] > BeanUtils.populate([EMAIL PROTECTED], {}) > > They should look something like this.... > > 7 Dec 13:07:25 [DEBUG ActionServlet.807] Initializing module path '' plug > ins > 7 Dec 13:07:25 [DEBUG BeanUtils.710] > BeanUtils.populate([EMAIL PROTECTED], > {stopOnFirstError=false, pathnames=/WEB-INF/validator-rules.xml, > /WEB-INF/validation-extends-rule.xml, /WEB-INF/validation.xml}) > > > So the problem is in your strus-config. You said it looked like this.... > > <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> > <set-property property="pathnames" > value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> > <set-property property="stopOnFirstError" value="false"/> > </plug-in> > > Which looks fine. Are you 100% certain this is what you're deploying? > Somethings not right somewhere in this struts-config > > Niall > > ----- Original Message ----- > From: "Donie Kelly" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, December 07, 2004 1:02 PM > Subject: RE: Exception when app goes to form which extends ValidatorForm > > > > Here is my log. Some of it is missing off the top. See if you can see > > anything I cant. > > > > Many thanks > > Donie > > > > > > -----Original Message----- > > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > > Sent: 07 December 2004 12:59 > > To: Struts Users Mailing List > > Subject: Re: Exception when app goes to form which extends ValidatorForm > > > > Another thought. You say your using Validator 1.1.3 (and presumably Struts > > 1.2.4?) - I just took a quick look at the tutorial - their versions of the > > validator config files are for Validator 1.0 > > > > Make sure your validator-rules.xml is the latest one that ships with > Struts > > 1.2.4 - its in the "lib" folder in the binary distro. Also make sure your > > validation.xml has the correct dtd declaration at the top: > > > > <!DOCTYPE form-validation PUBLIC > > "-//Apache Software Foundation//DTD Commons Validator Rules Configuration > > 1.1.3//EN" > > "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"> > > > > > > Niall > > > > ----- Original Message ----- > > From: "Niall Pemberton" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Tuesday, December 07, 2004 12:44 PM > > Subject: Re: Exception when app goes to form which extends ValidatorForm > > > > > > > The error is basically saying that it can't find any configured > validation > > > resources. Its a problem in your config files either struts or > validation. > > > > > > Its got to be something in how you've configured struts or validator. I > > > suggest you switch on logging. > > > > > > You should see INFO log messages for > > > "org.apache.struts.validator.ValidatorPlugin" telling you its loading > your > > > two validation config files. If you switch on DEBUG for > > > "org.apache.commons.validator" you'll see a whole ton of information > about > > > the stuff its loading from those validation config files. > > > > > > The other thing that springs to mind is are you using modules and is > your > > > validation stuff configured for the module thats trying to use them? > > > > > > Niall > > > > > > ----- Original Message ----- > > > From: "Donie Kelly" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Tuesday, December 07, 2004 12:03 PM > > > Subject: RE: Exception when app goes to form which extends ValidatorForm > > > > > > > > > > Hi Niall > > > > > > > > <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> > > > > <set-property property="pathnames" > > > > value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> > > > > <set-property property="stopOnFirstError" value="false"/> > > > > </plug-in> > > > > > > > > Here is the plugin section and there are no errors in the logs that I > > can > > > > see... > > > > > > > > Thansk > > > > Donie > > > > > > > > > > > > -----Original Message----- > > > > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > > > > Sent: 07 December 2004 11:06 > > > > To: Struts Users Mailing List > > > > Subject: Re: Exception when app goes to form which extends > ValidatorForm > > > > > > > > What about your struts-config.xml - do you have the validator PlugIn - > > can > > > > you show us the entry? > > > > > > > > If you do have the Plugin are you getting any errors when the webapp > > > starts > > > > up - check your logs. > > > > > > > > Niall > > > > > > > > ----- Original Message ----- > > > > From: "Donie Kelly" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > Sent: Tuesday, December 07, 2004 10:50 AM > > > > Subject: RE: Exception when app goes to form which extends > ValidatorForm > > > > > > > > > > > > > Hi David, thatnks for that. I'm only starting to set up validation > so > > my > > > > > file is this simple ! > > > > > > > > > > <form-validation> > > > > > <formset> > > > > > <form name="mmscContentAdaptationForm"> > > > > > <field property="accessCheckInterval" depends="integer"> > > > > > <arg0 key="mmssm.mmsc.ca.accessCheckInterval"/> > > > > > </field> > > > > > </form> > > > > > </formset> > > > > > </form-validation> > > > > > > > > > > Thanks > > > > > Donie > > > > > > > > > > -----Original Message----- > > > > > From: David G. Friedman [mailto:[EMAIL PROTECTED] > > > > > Sent: 07 December 2004 02:09 > > > > > To: Struts Users Mailing List > > > > > Subject: RE: Exception when app goes to form which extends > > ValidatorForm > > > > > > > > > > Donie, > > > > > > > > > > What version of the Commons Validator (or Struts) do you have? I've > > > > looked > > > > > at the raw code of the Validator for a few versions and that line > 188 > > > > seems > > > > > to be related to problems with your validation.xml form. I can't > tell > > > if > > > > it > > > > > is a problem with the form name of one of the fields. I recommend > you > > > post > > > > > some of your validation.xml file for feedback. > > > > > > > > > > Regards, > > > > > David > > > > > > > > > > -----Original Message----- > > > > > From: Donie Kelly [mailto:[EMAIL PROTECTED] > > > > > Sent: Monday, December 06, 2004 9:49 AM > > > > > To: Struts Users Mailing List > > > > > Subject: RE: Exception when app goes to form which extends > > ValidatorForm > > > > > > > > > > > > > > > Yes, I have the resource file specified and I use it to load text > into > > > > > pages. This is working ok. I'm lost as to what might casuse this... > > > > > > > > > > Thanks > > > > > Donie > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > > > > > Sent: 03 December 2004 17:08 > > > > > To: Struts Users Mailing List > > > > > Subject: Re: Exception when app goes to form which extends > > ValidatorForm > > > > > > > > > > Do you have your resource file specified in your struts-config? > > > > > > > > > > > > > > > On Fri, 3 Dec 2004 16:42:09 -0000, Donie Kelly > > <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > Hi all > > > > > > > > > > > > I'm getting this error when accessign a form which extends > > > ValidatorForm > > > > > and > > > > > > I'm having trouble figuring out what;s wrong. Anybody know why > this > > > > might > > > > > > happen. I'm following the tutorial at > > > > > > > > > http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html > > > > > > > > > > > > <http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html> > > > > > > > > > > > > Thanks > > > > > > > > > > > > Donie > > > > > > > > > > > > java.lang.IllegalArgumentException: Resources cannot be null. > > > > > > at > > org.apache.commons.validator.Validator.(Validator.java:188) > > > > > > at > > > > > > > > > org.apache.struts.validator.Resources.initValidator(Resources.java:299) > > > > > > at > > > > > > > > > > > > org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:106) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j > > > > > > ava:921) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206) > > > > > > at > > > > > > > > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) > > > > > > at > > > > > > > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) > > > > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > > > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. > > > > > > java:684) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch > > > > > > er.java:432) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher > > > > > > .java:356) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 > > > > > > 56) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces > > > > > > sor.java:388) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) > > > > > > at > > > > > > > > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) > > > > > > at > > > > > > > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) > > > > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > > > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > > > > > FilterChain.java:247) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > > > > > ain.java:193) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > > > > > va:260) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:643) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > > > > > at > > > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > > > > > va:191) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:643) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase > > > > > > .java:493) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:641) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > > > > > at > > > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > > > > > at > > > > > > > > > > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 > > > > > > ) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:643) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. > > > > > > java:170) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:641) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 > > > > > > ) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:641) > > > > > > at > > > > > > > > > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:641) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > > > > > at > > > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > > > > > :174) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > > > > > eNext(StandardPipeline.java:643) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > > > > > at > > > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: > > > > > > 1040) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151 > > > > > > ) > > > > > > at java.lang.Thread.run(Thread.java:536) > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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] > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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] > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]