You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bear <sk...@yahoo.com> on 2005/07/01 22:28:53 UTC
tiles-definitions deploy failed on tomcat 5.5.9
Hi,
I had this error that I could not find reference regarding to it. If
any one knows what happened, please let me know.
My tiles-defs.xml has the following line,
------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<definition name="main.layout" path="/mainLayout.jsp">
<put name="title" value=""/>
<put name="header" value="/jsp/header.jsp"/>
<put name="body" value=""/>
<put name="footer" value="/jsp/footer.jsp" />
</definition>
</tiles-definitions>
----------------------------------------------
I have the following line in my struts-config.xml
----------------------------------------------
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml"/>
</plug-in>
-----------------------------------------------
When I remove the plug-in in struts-config.xml, it deploys ok, but when
I have the above 3 lines right before </struts-config>, I received the
following error while deploying the app.
-------------------------------------------------------
Jun 30, 2005 11:22:18 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 7 column 20: Document root element
"tiles-definitions", must match DOCTYPE root "struts-config".
org.xml.sax.SAXParseException: Document root element
"tiles-definitions", must match DOCTYPE root "struts-config".
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(ErrorHandlerWrapper.java:236)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err
orHandlerWrapper.java:172)
Thanks for your attention and help in advance.
Chungwei
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: tiles-definitions deploy failed on tomcat 5.5.9
Posted by bear <sk...@yahoo.com>.
Thanks for your help. It does work and now I will have to fix my other
issues.
I will check the link you sent. I really appreciate your help.
best,
Chungwei
--- Wendy Smoak <ja...@wendysmoak.com> wrote:
> From: "bear" <sk...@yahoo.com>
> > My tiles-defs.xml has the following line,
> > ------------------------------------------------------
> > <?xml version="1.0"?>
> > <!DOCTYPE struts-config PUBLIC
> > "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
> > "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
>
> Fix your doctype declaration...
>
> <!DOCTYPE tiles-definitions PUBLIC
> "-//Apache Software Foundation//DTD Tiles Configuration
> 1.1//EN"
> "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
>
> See how yours says struts-config before PUBLIC? That's wrong, it
> should say
> tiles-definitions.
>
> Here's a good reference on what all the different pieces of a doctype
> declaration mean:
> http://www.blooberry.com/indexdot/html/tagpages/d/doctype.htm
>
> --
> Wendy Smoak
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: tiles-definitions deploy failed on tomcat 5.5.9
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "bear" <sk...@yahoo.com>
> My tiles-defs.xml has the following line,
> ------------------------------------------------------
> <?xml version="1.0"?>
> <!DOCTYPE struts-config PUBLIC
> "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
> "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
Fix your doctype declaration...
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
See how yours says struts-config before PUBLIC? That's wrong, it should say
tiles-definitions.
Here's a good reference on what all the different pieces of a doctype
declaration mean:
http://www.blooberry.com/indexdot/html/tagpages/d/doctype.htm
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org