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:[EMAIL PROTECTED]
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

[EMAIL PROTECTED]
----------------------------------------------------------------------------
-------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to