Here is the validation.xml file. Do I need this? A lot of this is new to me. What would I do to rebuild the war without this file, if I can get away with not using it? Thanks.
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd"> <form-validation> <!-- This is a blank Validator form file with a commented examples. --> <global> <!-- An example global constant <constant> <constant-name>postalCode</constant-name> <constant-value>^\d{5}\d*$</constant-value> </constant> end example--> </global> <formset> <!-- An example form <form name="logonForm"> <field property="username" depends="required"> <arg key="logonForm.username"/> </field> <field property="password" depends="required,mask"> <arg key="logonForm.password"/> <var> <var-name>mask</var-name> <var-value>^[0-9a-zA-Z]*$</var-value> </var> </field> </form> end example form --> </formset> <!-- An example formset for another locale <formset language="fr"> <constant> <constant-name>postalCode</constant-name> <constant-value>^[0-9a-zA-Z]*$</constant-value> </constant> </formset> --> </form-validation> Ken -----Original Message----- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 9:03 AM To: Struts Users Mailing List Subject: RE: Problem depoying struts-blank.war > -----Original Message----- > From: Kenneth Litwak [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 11, 2004 8:59 AM > To: Struts Users Mailing List > Subject: RE: Problem depoying struts-blank.war > > > I used the download I got yesterday: struts-20040803.zip. Thakns. Looks the validation file is a bit wonky. That would WEB-INF/validation.xml, and something is out of order in it. Which should be easy to fix, just put things in the right order. If they are in the right order..... > > > Ken > > -----Original Message----- > From: Jim Barrows [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 11, 2004 8:54 AM > To: Struts Users Mailing List > Subject: RE: Problem depoying struts-blank.war > > > > > -----Original Message----- > > From: Kenneth Litwak [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 11, 2004 8:45 AM > > To: [EMAIL PROTECTED] > > Subject: Problem depoying struts-blank.war > > > > > > I am trying to teach myself Struts while writing a real > > application. > > I followed an tutorial that said to start by putting the > > struts-blank.war in the webapps directory of Tomcat 5. > Unfortunately, > > here's what I got: > > Which version of struts did you get the struts-blank.war > from? This is > awfully odd. > > > > > > > > > > > Aug 11, 2004 8:24:50 AM > > org.apache.struts.util.PropertyMessageResources > > <init> > > > > INFO: Initializing, > > config='org.apache.webapp.admin.ApplicationResources', retur > > > > nNull=true > > > > Aug 11, 2004 8:24:55 AM > org.apache.catalina.core.StandardHostDeployer > > install > > > > INFO: Processing Context configuration file URL > > file:C:\tomcat50\conf\Catalina\l > > > > ocalhost\balancer.xml > > > > Aug 11, 2004 8:24:55 AM > org.apache.catalina.core.StandardHostDeployer > > install > > > > INFO: Processing Context configuration file URL > > file:C:\tomcat50\conf\Catalina\l > > > > ocalhost\manager.xml > > > > Aug 11, 2004 8:24:56 AM > org.apache.catalina.core.StandardHostDeployer > > install > > > > INFO: Installing web application at context path > > /struts-blank from URL > > file:C:/ > > > > tomcat50/webapps/struts-blank > > > > Aug 11, 2004 8:24:59 AM org.apache.struts.tiles.TilesPlugin > > initDefinitionsFacto > > > > ry > > > > INFO: Tiles definition factory loaded for module ''. > > > > Aug 11, 2004 8:24:59 AM org.apache.struts.validator.ValidatorPlugIn > > initResource > > > > s > > > > INFO: Loading validation rules file from > > '/WEB-INF/validator-rules.xml' > > > > Aug 11, 2004 8:24:59 AM org.apache.struts.validator.ValidatorPlugIn > > initResource > > > > s > > > > INFO: Loading validation rules file from '/WEB-INF/validation.xml' > > > > Aug 11, 2004 8:25:00 AM org.apache.commons.digester.Digester error > > > > SEVERE: Parse Error at line 45 column 15: The content of > element type > > "formset" > > > > is incomplete, it must match "(constant*,form+)". > > > > org.xml.sax.SAXParseException: The content of element type > > "formset" is > > incomple > > > > te, it must match "(constant*,form+)". > > > > at > > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un > > > > known Source) > > > > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown > > Source) > > > > at > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > Source) > > > > at > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > Source) > > > > at > > > org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S > > > > ource) > > > > at > > org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown > > Source) > > > > > > > > at > > > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow > > > > n Source) > > > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent > > > > Dispatcher.dispatch(Unknown Source) > > > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un > > > > known Source) > > > > at > org.apache.xerces.parsers.XML11Configuration.parse(Unknown > > Source) > > > > at > org.apache.xerces.parsers.XML11Configuration.parse(Unknown > > Source) > > > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown > > Source) > > > > at > > org.apache.commons.digester.Digester.parse(Digester.java:1567) > > > > at > > > org.apache.commons.validator.ValidatorResources.<init>(ValidatorResou > > > > rces.java:159) > > > > at > > > org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl > > > > ugIn.java:233) > > > > at > > > org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java > > > > :164) > > > > at > > > org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle > > > > t.java:839) > > > > at > > org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) > > > > at > javax.servlet.GenericServlet.init(GenericServlet.java:256) > > > > at > > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. > > > > java:1044) > > > > at > > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 > > > > 7) > > > > at > > > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex > > > > t.java:3959) > > > > at > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4 > > > > 284) > > > > at > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase > > > > .java:866) > > > > at > > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85 > > > > 0) > > > > at > > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) > > > > > > > > at > > > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep > > > > loyer.java:320) > > > > at > > org.apache.catalina.core.StandardHost.install(StandardHost.java:875) > > > > at > > > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657 > > > > ) > > > > at > > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476 > > > > ) > > > > at > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) > > > > at > > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java > > > > :394) > > > > at > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl > > > > eSupport.java:166) > > > > at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134) > > > > > > > > at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:832) > > > > at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) > > > > > > > > at > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521 > > > > ) > > > > at > > > org.apache.catalina.core.StandardService.start(StandardService.java:5 > > > > 19) > > > > at > > > org.apache.catalina.core.StandardServer.start(StandardServer.java:234 > > > > 5) > > > > at > > org.apache.catalina.startup.Catalina.start(Catalina.java:594) > > > > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > > > java:39) > > > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > > > sorImpl.java:25) > > > > at java.lang.reflect.Method.invoke(Method.java:324) > > > > at > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) > > > > at > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) > > > > Aug 11, 2004 8:25:00 AM > org.apache.catalina.core.StandardHostDeployer > > install > > > > INFO: Installing web application at context path > > /jsp-examples from URL > > file:C:\ > > > > tomcat50\webapps\jsp-examples > > > > > > > > > > > > What might be wrong? Thanks. > > > > > > > > > > > > Ken > > > > > > --------------------------------------------------------------------- > 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]