struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek Khandelwal <akhan...@spikesource.com>
Subject Re: Struts-examples, struts-example and struts-blank
Date Fri, 18 Jun 2004 22:59:53 GMT
I figured out the reason,
The validation.xml is not conforming to the dtd:
http://jakarta.apache.org/commons/dtds/validator_1_1.dtd

Is there any specific reason to leave all the content/child element
empty in formset and global node?

If not, then may be this is a bug in struts source code distribution.


Abhishek


On Fri, 2004-06-18 at 15:11, Abhishek Khandelwal wrote:
> Hi,
> I am trying to install struts distribution in tomcat container. 
> When I drop the struts-example.war, struts-examples.war and
> struts-blank.war in the webapps directory of tomcat, I get following
> error. Its some kind of problem with validation.xml I am not sure how to
> resolve it.
> Please let me know if anyone has any idea regarding this.
> 
> Also, When I see the source code, validation.xml does not have anything
> except empty tags for global, formset. The content inside the global and
> formset are commented out. Please let me know what needs to be done
> regarding that. Thanks
> 
> Abhishek
> 
> Struts example/examples and struts blank gives this error:
> ---------------------------------------------------------------------------------
> 
> INFO: Loading validation rules file from '/WEB-INF/validation.xml'
> Jun 11, 2004 2:08:16 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
> incomplete, it must match "(constant*,form+)".
>         at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 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
> Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
>         at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 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>(ValidatorResources.java:153)
>         at
> org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:233)
>         at
> org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:164)
>         at
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.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:887)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
>         at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
>         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
>         at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
>         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(LifecycleSupport.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:519)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
>         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(DelegatingMethodAccessorImpl.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)
> Jun 11, 2004 2:08:16 AM org.apache.catalina.core.StandardHostDeployer install
> 
> 
> -----------------------------------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message