You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2005/09/06 20:28:06 UTC
Exception trying to read tiles definition file in JSF..
I am trying to use tiles with JSF but I just get the following error:
INFO: Initializing TilesServlet
06.sep.2005 14:16:38 org.apache.tiles.servlets.TilesServlet readFactoryConfig
INFO: CONFIG FILES DEFINED IN WEB.XML
06.sep.2005 14:16:38 org.apache.tiles.servlets.TilesServlet initDefinitionsFactory
INFO: initializing definitions factory...
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet saveExceptionMessage
WARNING: Caught exception when initializing definitions factory
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet saveExceptionMessage
WARNING: I/O Error reading definitions.
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet saveExceptionMessage
WARNING: org.apache.tiles.DefinitionsFactoryException: I/O Error reading definitions.
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet saveExceptionMessage
WARNING: Caught exception when initializing definitions factory
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet saveExceptionMessage
WARNING: I/O Error reading definitions.
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet saveExceptionMessage
WARNING: javax.servlet.ServletException: I/O Error reading definitions
Anyone know why or if I should find another way to initialize tiles?
(I am using tiles-core from the sandbox...)
Regards,
BTJ
--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen
btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception trying to read tiles definition file in JSF..
Posted by gr...@intellicare.com.
Wendy Smoak <ja...@wendysmoak.com> wrote on 09/06/2005 03:02:32 PM:
> From: "Greg Reddin" <li...@reddin.org>
>
> >> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>
> > The above is correct except that it appeared from your original post
that
> > you are using Standalone Tiles. So remove "struts" from the package
> > name.
>
> (If we're talking about Standalone Tiles in the Sandbox,) Isn't it
> org.apache.tiles.servlets.TilesServlet now?
You are right, Wendy. This is what my web.xml has and it seems to be
working ok.
>
> --
> Wendy Smoak
>
Geeta
Re: Exception trying to read tiles definition file in JSF..
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Greg Reddin" <li...@reddin.org>
>> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
> The above is correct except that it appeared from your original post that
> you are using Standalone Tiles. So remove "struts" from the package
> name.
(If we're talking about Standalone Tiles in the Sandbox,) Isn't it
org.apache.tiles.servlets.TilesServlet now?
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception trying to read tiles definition file in JSF..
Posted by Bjørn T Johansen <bt...@havleik.no>.
Yes, I am using one of those in my DOCTYPE definition....
BTJ
Greg Reddin wrote:
> If you are using "-//Apache Software Foundation//DTD Tiles
> Configuration 1.1//EN" or "-//Apache Software Foundation//DTD Tiles
> Configuration 1.2//EN" in your DOCTYPE definition and are using the
> latest cut of Standalone Tiles, I can't figure out why you had to
> change the URL to get it to work. Anybody else have any idea?
>
> Greg
> ---------------------------------------------------------------------
> 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: Exception trying to read tiles definition file in JSF..
Posted by Greg Reddin <li...@reddin.org>.
On Sep 7, 2005, at 1:03 AM, Bjørn T Johansen wrote:
> Yes, that did the trick... :)
>
> But isn't there another way setting this up so it's not dependent
> on having an
> internet connection and that the site is actually up??
In the DigesterDefinitionsReader we have the following code:
protected String registrations[] = {
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//
EN",
"/org/apache/tiles/resources/tiles-config_1_1.dtd",
"-//Apache Software Foundation//DTD Tiles Configuration 1.2//
EN",
"/org/apache/tiles/resources/tiles-config_1_2.dtd",
};
and later we have this:
// Register our local copy of the DTDs that we can find
for (int i = 0; i < registrations.length; i += 2) {
URL url = this.getClass().getClassLoader().getResource(
registrations[i+1]);
if (url != null) {
digester.register(registrations[i], url.toString());
}
}
So this basically tells Digester that if we get the DTD reference "-//
Apache Software Foundation//DTD Tiles Configuration 1.1//EN" to look
for it in or/apache/tiles/resources/tiles-config_1_1.dtd, which is
packaged with the tiles jar file. So in these cases it should be
looking in the local jar file instead of going to the URL. In fact,
it seems to be working for me. If I run the tests with my network
disconnected it all still runs fine. At one point I was getting test
failures without connectivity but I think that was before Wendy fixed
the Tiles build to include the resources in the jar file.
If you are using "-//Apache Software Foundation//DTD Tiles
Configuration 1.1//EN" or "-//Apache Software Foundation//DTD Tiles
Configuration 1.2//EN" in your DOCTYPE definition and are using the
latest cut of Standalone Tiles, I can't figure out why you had to
change the URL to get it to work. Anybody else have any idea?
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception trying to read tiles definition file in JSF..
Posted by Bjørn T Johansen <bt...@havleik.no>.
Yes, that did the trick... :)
But isn't there another way setting this up so it's not dependent on having an
internet connection and that the site is actually up??
BTJ
Greg Reddin wrote:
> Does this one work?
>
> http://struts.apache.org/dtds/tiles-config_1_1.dtd
>
> I still don't understand why the registration feature of Digester
> wouldn't get around this issue.
>
> Greg
>
> On Sep 6, 2005, at 3:35 PM, Bjørn T Johansen wrote:
>
>> Or it might....
>> What is the correct uri for the dtd? The one I am using, is not
>> working..
>> (http://apache.org/dtds/tiles-config_1_2.dtd)
>>
>>
>> BTJ
>>
>> Bjørn T Johansen wrote:
>>
>>> Nope, I access the internet without any problems, so that is not the
>>> case here...
>>>
>>> BTJ
>>>
>>> Greg Reddin wrote:
>>>
>>>
>>>> If you are behind a firewall or access the Internet via a proxy
>>>> server
>>>> the problem may be due to Tiles trying to load the DTDs. I've
>>>> found on
>>>> at least one occasion that setting the registrations for Digester
>>>> does
>>>> not seem to prevent Tiles from trying to go to the Internet to
>>>> resolve
>>>> the DTDs. I'm not sure why that is.
>>>>
>>>> The problem surfaced for me when trying to run the unit tests. If I
>>>> was logged in to the office VPN I got the IO exception while Digester
>>>> was trying to resolve DTDs. If I was not logged in to the VPN the
>>>> tests ran just fine. Could that be your problem?
>>>>
>>>> Greg
>>>>
>>>> On Sep 6, 2005, at 1:59 PM, Bjørn T Johansen wrote:
>>>>
>>>>
>>>>
>>>>> Yes, I have the following in my web.xml..:
>>>>>
>>>>> <servlet>
>>>>> <servlet-name>Tiles Servlet</servlet-name>
>>>>> <servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-
>>>>> class>
>>>>> <init-param>
>>>>> <param-name>definitions-config</param-name>
>>>>> <param-value>/WEB-INF/tiles.xml</param-value>
>>>>> </init-param>
>>>>> <load-on-startup>2</load-on-startup>
>>>>> </servlet>
>>>>>
>>>>> and /WEB-INF/tiles.xml exists and contains valid tiles definitions
>>>>> (copied from a working
>>>>> Struts project...)
>>>>>
>>>>>
>>>>> BTJ
>>>>>
>>>>> Greg Reddin wrote:
>>>>>
>>>>>
>>>>>
>>>>>> On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> <web-app>
>>>>>>> <servlet>
>>>>>>> <servlet-name>Tiles Servlet</servlet-name>
>>>>>>> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet- class>
>>>>>>> <init-param>
>>>>>>> <param-name>definitions-config</param-name>
>>>>>>> <param-value>/WEB-INF/tiles.xml</param-value>
>>>>>>> </init-param>
>>>>>>> <load-on-startup>2</load-on-startup>
>>>>>>> </servlet>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> The above is correct except that it appeared from your original post
>>>>>> that you are using Standalone Tiles. So remove "struts" from the
>>>>>> package name.
>>>>>>
>>>>>> Greg
>>>>>>
>>>>>>
>>>>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception trying to read tiles definition file in JSF..
Posted by Greg Reddin <li...@reddin.org>.
Does this one work?
http://struts.apache.org/dtds/tiles-config_1_1.dtd
I still don't understand why the registration feature of Digester
wouldn't get around this issue.
Greg
On Sep 6, 2005, at 3:35 PM, Bjørn T Johansen wrote:
> Or it might....
> What is the correct uri for the dtd? The one I am using, is not
> working..
> (http://apache.org/dtds/tiles-config_1_2.dtd)
>
>
> BTJ
>
> Bjørn T Johansen wrote:
>
>> Nope, I access the internet without any problems, so that is not
>> the case here...
>>
>> BTJ
>>
>> Greg Reddin wrote:
>>
>>
>>> If you are behind a firewall or access the Internet via a proxy
>>> server
>>> the problem may be due to Tiles trying to load the DTDs. I've
>>> found on
>>> at least one occasion that setting the registrations for
>>> Digester does
>>> not seem to prevent Tiles from trying to go to the Internet to
>>> resolve
>>> the DTDs. I'm not sure why that is.
>>>
>>> The problem surfaced for me when trying to run the unit tests. If I
>>> was logged in to the office VPN I got the IO exception while
>>> Digester
>>> was trying to resolve DTDs. If I was not logged in to the VPN the
>>> tests ran just fine. Could that be your problem?
>>>
>>> Greg
>>>
>>> On Sep 6, 2005, at 1:59 PM, Bjørn T Johansen wrote:
>>>
>>>
>>>
>>>> Yes, I have the following in my web.xml..:
>>>>
>>>> <servlet>
>>>> <servlet-name>Tiles Servlet</servlet-name>
>>>> <servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-
>>>> class>
>>>> <init-param>
>>>> <param-name>definitions-config</param-name>
>>>> <param-value>/WEB-INF/tiles.xml</param-value>
>>>> </init-param>
>>>> <load-on-startup>2</load-on-startup>
>>>> </servlet>
>>>>
>>>> and /WEB-INF/tiles.xml exists and contains valid tiles definitions
>>>> (copied from a working
>>>> Struts project...)
>>>>
>>>>
>>>> BTJ
>>>>
>>>> Greg Reddin wrote:
>>>>
>>>>
>>>>
>>>>> On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> <web-app>
>>>>>> <servlet>
>>>>>> <servlet-name>Tiles Servlet</servlet-name>
>>>>>> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-
>>>>>> class>
>>>>>> <init-param>
>>>>>> <param-name>definitions-config</param-name>
>>>>>> <param-value>/WEB-INF/tiles.xml</param-value>
>>>>>> </init-param>
>>>>>> <load-on-startup>2</load-on-startup>
>>>>>> </servlet>
>>>>>>
>>>>>>
>>>>>
>>>>> The above is correct except that it appeared from your original
>>>>> post
>>>>> that you are using Standalone Tiles. So remove "struts" from the
>>>>> package name.
>>>>>
>>>>> Greg
>>>>>
>>>>>
>>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@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: Exception trying to read tiles definition file in JSF..
Posted by Bjørn T Johansen <bt...@havleik.no>.
Or it might....
What is the correct uri for the dtd? The one I am using, is not working..
(http://apache.org/dtds/tiles-config_1_2.dtd)
BTJ
Bjørn T Johansen wrote:
> Nope, I access the internet without any problems, so that is not the case here...
>
> BTJ
>
> Greg Reddin wrote:
>
>>If you are behind a firewall or access the Internet via a proxy server
>>the problem may be due to Tiles trying to load the DTDs. I've found on
>>at least one occasion that setting the registrations for Digester does
>>not seem to prevent Tiles from trying to go to the Internet to resolve
>>the DTDs. I'm not sure why that is.
>>
>>The problem surfaced for me when trying to run the unit tests. If I
>>was logged in to the office VPN I got the IO exception while Digester
>>was trying to resolve DTDs. If I was not logged in to the VPN the
>>tests ran just fine. Could that be your problem?
>>
>>Greg
>>
>>On Sep 6, 2005, at 1:59 PM, Bjørn T Johansen wrote:
>>
>>
>>>Yes, I have the following in my web.xml..:
>>>
>>><servlet>
>>> <servlet-name>Tiles Servlet</servlet-name>
>>> <servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-
>>>class>
>>> <init-param>
>>> <param-name>definitions-config</param-name>
>>> <param-value>/WEB-INF/tiles.xml</param-value>
>>> </init-param>
>>> <load-on-startup>2</load-on-startup>
>>> </servlet>
>>>
>>>and /WEB-INF/tiles.xml exists and contains valid tiles definitions
>>>(copied from a working
>>>Struts project...)
>>>
>>>
>>>BTJ
>>>
>>>Greg Reddin wrote:
>>>
>>>
>>>>On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>>>>
>>>>
>>>>
>>>>><web-app>
>>>>><servlet>
>>>>><servlet-name>Tiles Servlet</servlet-name>
>>>>><servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>>>>><init-param>
>>>>><param-name>definitions-config</param-name>
>>>>><param-value>/WEB-INF/tiles.xml</param-value>
>>>>></init-param>
>>>>><load-on-startup>2</load-on-startup>
>>>>></servlet>
>>>>>
>>>>
>>>>The above is correct except that it appeared from your original post
>>>>that you are using Standalone Tiles. So remove "struts" from the
>>>>package name.
>>>>
>>>>Greg
>>>>
>>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception trying to read tiles definition file in JSF..
Posted by gr...@intellicare.com.
*Sorry!! I wrote on the wrong thread... need a break...
Bjørn T Johansen <bt...@havleik.no> wrote on 09/06/2005 05:25:22 PM:
> I am not sure of the relevance to my question but....
>
> BTJ
>
> gramani@intellicare.com wrote:
> > ..and here's a good explanation of the problem, why it occurs and why
> > setting scope=session works:
> >
> >
http://www.groundside.com/blog/content/DuncanMills/?month=6&day=7&year=2005
> >
> > Geeta
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> CONFIDENTIALITY NOTICE:This email is intended solely for the person
> or entity to which it is addressed and may contain confidential
> and/or protected health information. Any duplication,
> dissemination, action taken in reliance upon, or other use of this
> information by persons or entities other than the intended recipient
> is prohibited and may violate applicable laws. If this email has
> been received in error, please notify the sender and delete the
> information from your system. The views expressed in this email are
> those of the sender and may not necessarily represent the views of
> IntelliCare.
Re: Exception trying to read tiles definition file in JSF..
Posted by Bjørn T Johansen <bt...@havleik.no>.
I am not sure of the relevance to my question but....
BTJ
gramani@intellicare.com wrote:
> ..and here's a good explanation of the problem, why it occurs and why
> setting scope=session works:
>
> http://www.groundside.com/blog/content/DuncanMills/?month=6&day=7&year=2005
>
> Geeta
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception trying to read tiles definition file in JSF..
Posted by gr...@intellicare.com.
..and here's a good explanation of the problem, why it occurs and why
setting scope=session works:
http://www.groundside.com/blog/content/DuncanMills/?month=6&day=7&year=2005
Geeta
Re: Exception trying to read tiles definition file in JSF..
Posted by gr...@intellicare.com.
Bjørn T Johansen <bt...@havleik.no> wrote on 09/06/2005 04:33:40 PM:
> Nope, I access the internet without any problems, so that is not the
> case here...
>
> BTJ
Not sure if this will help, but I have a trivial tiles/jsf war here which
you could download and see if it works for you:
http://www.sightsoftware.com/shale/
Geeta
Re: Exception trying to read tiles definition file in JSF..
Posted by Bjørn T Johansen <bt...@havleik.no>.
Nope, I access the internet without any problems, so that is not the case here...
BTJ
Greg Reddin wrote:
> If you are behind a firewall or access the Internet via a proxy server
> the problem may be due to Tiles trying to load the DTDs. I've found on
> at least one occasion that setting the registrations for Digester does
> not seem to prevent Tiles from trying to go to the Internet to resolve
> the DTDs. I'm not sure why that is.
>
> The problem surfaced for me when trying to run the unit tests. If I
> was logged in to the office VPN I got the IO exception while Digester
> was trying to resolve DTDs. If I was not logged in to the VPN the
> tests ran just fine. Could that be your problem?
>
> Greg
>
> On Sep 6, 2005, at 1:59 PM, Bjørn T Johansen wrote:
>
>> Yes, I have the following in my web.xml..:
>>
>> <servlet>
>> <servlet-name>Tiles Servlet</servlet-name>
>> <servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-
>> class>
>> <init-param>
>> <param-name>definitions-config</param-name>
>> <param-value>/WEB-INF/tiles.xml</param-value>
>> </init-param>
>> <load-on-startup>2</load-on-startup>
>> </servlet>
>>
>> and /WEB-INF/tiles.xml exists and contains valid tiles definitions
>> (copied from a working
>> Struts project...)
>>
>>
>> BTJ
>>
>> Greg Reddin wrote:
>>
>>> On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>>>
>>>
>>>> <web-app>
>>>> <servlet>
>>>> <servlet-name>Tiles Servlet</servlet-name>
>>>> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>>>> <init-param>
>>>> <param-name>definitions-config</param-name>
>>>> <param-value>/WEB-INF/tiles.xml</param-value>
>>>> </init-param>
>>>> <load-on-startup>2</load-on-startup>
>>>> </servlet>
>>>>
>>>
>>>
>>> The above is correct except that it appeared from your original post
>>> that you are using Standalone Tiles. So remove "struts" from the
>>> package name.
>>>
>>> Greg
>>>
>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception trying to read tiles definition file in JSF..
Posted by Greg Reddin <li...@reddin.org>.
If you are behind a firewall or access the Internet via a proxy
server the problem may be due to Tiles trying to load the DTDs. I've
found on at least one occasion that setting the registrations for
Digester does not seem to prevent Tiles from trying to go to the
Internet to resolve the DTDs. I'm not sure why that is.
The problem surfaced for me when trying to run the unit tests. If I
was logged in to the office VPN I got the IO exception while Digester
was trying to resolve DTDs. If I was not logged in to the VPN the
tests ran just fine. Could that be your problem?
Greg
On Sep 6, 2005, at 1:59 PM, Bjørn T Johansen wrote:
> Yes, I have the following in my web.xml..:
>
> <servlet>
> <servlet-name>Tiles Servlet</servlet-name>
> <servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-
> class>
> <init-param>
> <param-name>definitions-config</param-name>
> <param-value>/WEB-INF/tiles.xml</param-value>
> </init-param>
> <load-on-startup>2</load-on-startup>
> </servlet>
>
> and /WEB-INF/tiles.xml exists and contains valid tiles definitions
> (copied from a working
> Struts project...)
>
>
> BTJ
>
> Greg Reddin wrote:
>
>> On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>>
>>
>>> <web-app>
>>> <servlet>
>>> <servlet-name>Tiles Servlet</servlet-name>
>>> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>>> <init-param>
>>> <param-name>definitions-config</param-name>
>>> <param-value>/WEB-INF/tiles.xml</param-value>
>>> </init-param>
>>> <load-on-startup>2</load-on-startup>
>>> </servlet>
>>>
>>
>>
>> The above is correct except that it appeared from your original post
>> that you are using Standalone Tiles. So remove "struts" from the
>> package name.
>>
>> Greg
>>
>>
>> ---------------------------------------------------------------------
>> 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: Exception trying to read tiles definition file in JSF..
Posted by Bjørn T Johansen <bt...@havleik.no>.
Nope.. All files are on my local filesystem...
BTJ
David G. Friedman wrote:
> Okay, since you received an IO error and you are sure the file exists, is it
> (the file) located on some sort of network-shared file system? Ex: NFS,
> SAMBA, etc.
>
> Regards,
> David
>
> -----Original Message-----
> From: Bjørn T Johansen [mailto:btj@havleik.no]
> Sent: Tuesday, September 06, 2005 3:00 PM
> To: Struts Users Mailing List
> Subject: Re: Exception trying to read tiles definition file in JSF..
>
>
> Yes, I have the following in my web.xml..:
>
> <servlet>
> <servlet-name>Tiles Servlet</servlet-name>
> <servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-class>
> <init-param>
> <param-name>definitions-config</param-name>
> <param-value>/WEB-INF/tiles.xml</param-value>
> </init-param>
> <load-on-startup>2</load-on-startup>
> </servlet>
>
> and /WEB-INF/tiles.xml exists and contains valid tiles definitions (copied
> from a working
> Struts project...)
>
>
> BTJ
>
> Greg Reddin wrote:
>
>>On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>>
>>
>>><web-app>
>>><servlet>
>>><servlet-name>Tiles Servlet</servlet-name>
>>><servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>>><init-param>
>>><param-name>definitions-config</param-name>
>>><param-value>/WEB-INF/tiles.xml</param-value>
>>></init-param>
>>><load-on-startup>2</load-on-startup>
>>></servlet>
>>
>>
>>The above is correct except that it appeared from your original post
>>that you are using Standalone Tiles. So remove "struts" from the
>>package name.
>>
>>Greg
>>
>>
>>---------------------------------------------------------------------
>>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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Exception trying to read tiles definition file in JSF..
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Okay, since you received an IO error and you are sure the file exists, is it
(the file) located on some sort of network-shared file system? Ex: NFS,
SAMBA, etc.
Regards,
David
-----Original Message-----
From: Bjørn T Johansen [mailto:btj@havleik.no]
Sent: Tuesday, September 06, 2005 3:00 PM
To: Struts Users Mailing List
Subject: Re: Exception trying to read tiles definition file in JSF..
Yes, I have the following in my web.xml..:
<servlet>
<servlet-name>Tiles Servlet</servlet-name>
<servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
and /WEB-INF/tiles.xml exists and contains valid tiles definitions (copied
from a working
Struts project...)
BTJ
Greg Reddin wrote:
> On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>
>> <web-app>
>> <servlet>
>> <servlet-name>Tiles Servlet</servlet-name>
>> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>> <init-param>
>> <param-name>definitions-config</param-name>
>> <param-value>/WEB-INF/tiles.xml</param-value>
>> </init-param>
>> <load-on-startup>2</load-on-startup>
>> </servlet>
>
>
> The above is correct except that it appeared from your original post
> that you are using Standalone Tiles. So remove "struts" from the
> package name.
>
> Greg
>
>
> ---------------------------------------------------------------------
> 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: Exception trying to read tiles definition file in JSF..
Posted by Bjørn T Johansen <bt...@havleik.no>.
Yes, I have the following in my web.xml..:
<servlet>
<servlet-name>Tiles Servlet</servlet-name>
<servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
and /WEB-INF/tiles.xml exists and contains valid tiles definitions (copied from a working
Struts project...)
BTJ
Greg Reddin wrote:
> On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
>
>> <web-app>
>> <servlet>
>> <servlet-name>Tiles Servlet</servlet-name>
>> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
>> <init-param>
>> <param-name>definitions-config</param-name>
>> <param-value>/WEB-INF/tiles.xml</param-value>
>> </init-param>
>> <load-on-startup>2</load-on-startup>
>> </servlet>
>
>
> The above is correct except that it appeared from your original post
> that you are using Standalone Tiles. So remove "struts" from the
> package name.
>
> Greg
>
>
> ---------------------------------------------------------------------
> 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: Exception trying to read tiles definition file in JSF..
Posted by Greg Reddin <li...@reddin.org>.
On Sep 6, 2005, at 1:40 PM, David G. Friedman wrote:
> <web-app>
> <servlet>
> <servlet-name>Tiles Servlet</servlet-name>
> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
> <init-param>
> <param-name>definitions-config</param-name>
> <param-value>/WEB-INF/tiles.xml</param-value>
> </init-param>
> <load-on-startup>2</load-on-startup>
> </servlet>
The above is correct except that it appeared from your original post
that you are using Standalone Tiles. So remove "struts" from the
package name.
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Exception trying to read tiles definition file in JSF..
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
The error suggests it cannot read your tiles definitions. Did you define
your tile configuration file to be an actual file? It must be defined in
your web.xml like this (looked up the exact syntax via a Google link).
s
<web-app>
<servlet>
<servlet-name>Tiles Servlet</servlet-name>
<servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
Regards,
David
-----Original Message-----
From: Bjørn T Johansen [mailto:btj@havleik.no]
Sent: Tuesday, September 06, 2005 2:28 PM
To: Struts Users Mailing List
Subject: Exception trying to read tiles definition file in JSF..
I am trying to use tiles with JSF but I just get the following error:
INFO: Initializing TilesServlet
06.sep.2005 14:16:38 org.apache.tiles.servlets.TilesServlet
readFactoryConfig
INFO: CONFIG FILES DEFINED IN WEB.XML
06.sep.2005 14:16:38 org.apache.tiles.servlets.TilesServlet
initDefinitionsFactory
INFO: initializing definitions factory...
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet
saveExceptionMessage
WARNING: Caught exception when initializing definitions factory
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet
saveExceptionMessage
WARNING: I/O Error reading definitions.
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet
saveExceptionMessage
WARNING: org.apache.tiles.DefinitionsFactoryException: I/O Error reading
definitions.
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet
saveExceptionMessage
WARNING: Caught exception when initializing definitions factory
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet
saveExceptionMessage
WARNING: I/O Error reading definitions.
06.sep.2005 14:16:39 org.apache.tiles.servlets.TilesServlet
saveExceptionMessage
WARNING: javax.servlet.ServletException: I/O Error reading definitions
Anyone know why or if I should find another way to initialize tiles?
(I am using tiles-core from the sandbox...)
Regards,
BTJ
--
----------------------------------------------------------------------------
-------------------
Bjørn T Johansen
btj@havleik.no
----------------------------------------------------------------------------
-------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange
Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
----------------------------------------------------------------------------
-------------------
---------------------------------------------------------------------
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