You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sb...@octo.com on 2004/09/02 12:25:50 UTC

1.1 to 1.2.2 migration problem

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


Re: 1.1 to 1.2.2 migration problem

Posted by sb...@octo.com.
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 <Jo...@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 <sb...@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


Re: 1.1 to 1.2.2 migration problem

Posted by João Vieira da Luz <Jo...@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 <sb...@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


Re: 1.1 to 1.2.2 migration problem

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
There are problems with 1.2.2 - you would be better off trying the 1.2.3
version, available here:

    http://cvs.apache.org/dist/struts/v1.2.3/

Upgrade Notes:

    http://wiki.apache.org/struts/Struts1_2e1to1_2e2_2e1UpgradeNotes

Niall

----- Original Message ----- 
From: <sb...@octo.com>
To: <us...@struts.apache.org>
Sent: Thursday, September 02, 2004 11:25 AM
Subject: 1.1 to 1.2.2 migration problem


> 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