Hi Antonio,
That's the part I'm struggling with. It says it cannot find the file,
however it had no problem finding the file using Struts 2.0.11 and Tiles
2.0.4. Here is a list of my directory structure, the section of the
web.xml that should be pointing to my tiles-def.xml, and the path that
tiles is using to find the file.
I'll roll back to the previous versions of these libraries and debug the
same section to see if I notice a difference. If anyone has any ideas,
let me know.
jndi:/localhost/sfe/WEB-INF/tiles-def.xml
<directory snip>
sfe=:
META-INF
WEB-INF
documents
images
index.jsp
scripts
sql
styles
sfe\WEB-INF=:
applicationContext-security.xml
applicationContext.xml
classes
lib
pages
tags
tiles-def.xml
web.xml
</directory snip>
<web xml snip>
<!-- Context Configuration for tiles -->
<context-param>
<param-name>
org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
</param-name>
<param-value>/WEB-INF/tiles-def.xml</param-value>
</context-param>
<listener>
<listener-class>
org.apache.struts2.tiles.StrutsTilesListener
</listener-class>
</listener>
</web xml snip>
Antonio wrote:
2009/1/17 Timothy Astle <[email protected]>:
16 [main] DEBUG org.apache.tiles.impl.BasicTilesContainer - Adding resource
'jndi:/localhost/sfe/WEB-INF/tiles-def.xml' to definitions factory.
...
Caused by: java.io.FileNotFoundException
The tiles-def.xml does not exist.
Antonio
--
_________________________________________________________
Timothy Astle - Development Manager
Web Development Group
CARIS
115 Waggoners Lane, Fredericton, New Brunswick, Canada, E3B 2L4
Tel: +1-506-458-8533 Fax: +1-506-459-3849
_________________________________________________________________________
Join us for CARIS 2010 in Miami, Florida, United States
Email [email protected] for details today
_________________________________________________________________________
This email and any files transmitted with it are confidential and intended
only for the addressee(s). If you are not the intended recipient(s) please
notify us by email reply. You should not use, disclose, distribute or copy
this communication if received in error.
Any views or opinions expressed in this email are solely those of the
author and do not necessarily represent those of the company. No binding
contract will result from this email until such time as a written document
is signed on behalf of the company.