- Resend: Not sure why the first one didn't show; apologies if this becomes
the second one  -

It could be just what the error says -- <formset> needs a <form>.  Since you
don't have any yet, you can comment out the validator plugin for now by
opening struts-config.xml and commenting out the last very last entry there,
which starts with:

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">

With that uncommented, the app should deploy.  If it doesn't, send another
email.  :)

Once you play around with it and have a form to validate, put that back in,
add your form to the validation.xml file, and it should deploy fine.

hth,
Hubert

--- Kenneth Litwak <[EMAIL PROTECTED]> wrote:

> I used the download I got yesterday:  struts-20040803.zip.  Thakns.
> 
> 
> 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)
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to