struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@octo.com
Subject Re: 1.1 to 1.2.2 migration problem
Date Thu, 02 Sep 2004 11:53:20 GMT
The same file works well with Struts 1.1. I've checked the DOCTYPE definition, 
and even set the Tiles Plugin definitions-parser-validate property to false... 
unsuccessfully :-(

Here is the header of my tiles-def.xml :

<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles 
Configuration//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">

And here is my plugin configuration in struts config file :

<plug-in className="org.apache.struts.tiles.TilesPlugin"><set-property 
property="definitions-config" value="/WEB-INF/tiles-defs.xml" /><set-property 
property="moduleAware" value="true" /><set-property property="definitions-
parser-validate" value="false" /></plug-in>

Sebastien

Selon João Vieira da Luz <Joao.Luz@gmail.com>:

> Maybe you could send your /WEB-INF/tiles-def.xml.
> 
> One possible reason could be the DOCTYPE definition to be wrong.
> 
> On Thu,  2 Sep 2004 12:25:50 +0200, sbr@octo.com <sbr@octo.com> wrote:
> > Hi,
> > 
> > i'ml trying to migrate from Struts 1.1 to struts 1.2.2. I've got the
> following
> > error when using Struts 1.2.2 (tiles plugin) :
> > 
> > org.apache.struts.tiles.DefinitionsFactoryException: IO Error while
> parsing
> > file '/WEB-INF/tiles-defs.xml'. No route to host: connect
> >         at
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile
> > (I18nFactorySet.java:538)
> >         at
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles
> > (I18nFactorySet.java:467)
> >         at
> > org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory
> > (I18nFactorySet.java:271)
> >         at
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory
> > (I18nFactorySet.java:246)
> >         at
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory
> > (I18nFactorySet.java:196)
> >         at
> > org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init
> > (ComponentDefinitionsFactoryWrapper.java:104)
> >         at org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory
> > (TilesUtilImpl.java:138)
> >         at org.apache.struts.tiles.TilesUtil.createDefinitionsFactory
> > (TilesUtil.java:167)
> >         at org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory
> > (TilesPlugin.java:224)
> >         at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:139)
> >         at org.apache.struts.action.ActionServlet.initModulePlugIns
> > (ActionServlet.java:839)
> >         at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
> > [...]
> > 
> > Any idea ?
> > 
> > Sebastien
> > 
> > ---------------------------------------------------------------------
> > 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
> 
> 



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


Mime
View raw message