You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rémy Giard <rg...@cogiscan.com> on 2002/12/09 22:03:51 UTC
Problem with plug-in tag for tiles in struts-config.xml. Wrong version of struts-config_1_X.dtd ??
Hello,
When i query a page for the first time since the server started, i got two
errors :
9-Dec-2002 1:44:29 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 60 column 60: Element type "plug-in" must be
declared.
... and ...
9-Dec-2002 1:44:29 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 66 column 17: The content of element type
"struts-config" must match "(data-sources?,form-
beans?,global-forwards?,action-mappings?)".
It seems that the struts-config is not linking to the appropriate
struts-config_1_X.dtd file. I looked in the struts-config_1_1.dtd file
(which i specified in the struts-config.xml header) and it tells i can set a
plug-in tag for the struts-config tag of the struts-config.xml, so the file
should be ok. There is the header of my struts-config.xml file :
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
The plug-in tag :
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<set-property property="definitions-parser-validate" value="true" />
<set-property property="moduleAware" value="true" />
</plug-in>
Do you have any clue ?
Can you see anything wrong ??
Is there an order for specifying the plug-in tag in struts-config.xml ??
Thanks for your help !
Rémy
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Problem with plug-in tag for tiles in struts-config.xml. Wrong
version of struts-config_1_X.dtd ??
Posted by Justin Ashworth <ju...@ashworth.org>.
Hi Remy,
> <!DOCTYPE struts-config PUBLIC
> "-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN"
>
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
>
> Do you have any clue ?
> Can you see anything wrong ??
> Is there an order for specifying the plug-in tag in struts-config.xml
??
In your DOCTYPE tag you have the text "DTD Struts Configuration 1.0" -
you will need to change this to "DTD Struts Configuration 1.1" (note 1.1
instead of 1.0).
HTH,
Justin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>