hi Steve, I had a look at your code snipets and they seem right, this can be stupid to mention but just check on your war file to see if the tiles-defs.xml is copied under the WEB-INF/ directory,sometimes this are little mistakes that we make.
On 3/9/06, Hilton, Steve <[EMAIL PROTECTED]> wrote: > > If you look at the last 3 lines below (at the very bottom of this > e-mail)... > It says it can't find file '/WEB-INF/tiles-defs.xml'. I've listed my > tiles-def and struts-config files in here as well. Both of those files > reside under /WEB-INF. I have set this up similar to every example I > have been able to find, and always the same result. Any reference from > the struts-config file to a tiles definition also produces a warning - > "Target page.default cannot be resolved in the context of the following > modules: /". Any ideas? I cannot see what I have set up wrong here? > Thanks. > > > ========== TILES-DEFS.XML =============== > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE tiles-definitions PUBLIC > "-//Apache Software Foundation//DTD Tiles Configuration//EN" > "http://jakarta.apache.org/struts/dtds/tiles-config.dtd"> > > <tiles-definitions> > <definition name="page.default" path="/tiles/myLayout.jsp"> > <put name="title" value ="${title}"/> > <put name="header" value="/tiles/header.jsp"/> > <put name="menu" value="/tiles/menu.jsp"/> > <put name="body" value="${body}"/> > <put name="footer" value="/tiles/footer.jsp"/> > </definition> > </tiles-definitions> > > > > ========== STRUTS-CONFIG.XML =============== > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD > Struts Configuration 1.1//EN" > > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> > > <struts-config> > <!-- Data Sources --> > <data-sources> > </data-sources> > > <!-- Form Beans --> > <form-beans> > </form-beans> > > <!-- Global Exceptions --> > <global-exceptions> > </global-exceptions> > > <!-- Global Forwards --> > <global-forwards> > <forward name="adapters" path="pages.default"/> > </global-forwards> > > <!-- Action Mappings --> > <action-mappings> > </action> > > </action-mappings> > > <controller > processorClass="org.apache.struts.tiles.TilesRequestProcessor" > bufferSize="4096" debug="0"/> > > <!-- Message Resources --> > <message-resources > parameter="com.aegon.learntiles.resources.ApplicationResources"/> > > <plug-in className="org.apache.struts.tiles.TilesPlugin" > > <set-property property="definitions-config" > value="/WEB-INF/tiles-defs.xml" /> > <set-property property="definitions-debug" value="2" /> > <set-property property="definitions-parser-details" value="2" > /> > <set-property property="definitions-parser-validate" > value="true" /> > <set-property property="moduleAware" value="true" /> > </plug-in> > > </struts-config> > > > > *** Starting the server *** > ************ Start Display Current Environment ************ > WebSphere Platform 5.0 [BASE 5.0.2 ptf2M0325.01] running with process > name localhost\localhost\server1 and process id 2348 > Host Operating System is Windows XP, version 5.1 > Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT > enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM > was.install.root = C:\WSAD51\runtimes\base_v5 > user.install.root = C:\WSAD51\runtimes\base_v5 > Java Home = C:\WSAD51\runtimes\base_v5\java\jre > ws.ext.dirs = > C:\WSAD51\runtimes\base_v5/java/lib;C:\WSAD51\runtimes\base_v5/classes;C > :\WSAD51\runtimes\base_v5/classes;C:\WSAD51\runtimes\base_v5/lib;C:\WSAD > 51\runtimes\base_v5/lib/ext;C:\WSAD51\runtimes\base_v5/web/help;C:\WSAD5 > 1\runtimes\base_v5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runti > me;C:/WSAD51/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.0/run > time/worf.jar > Classpath = > C:\WSAD51\runtimes\base_v5/properties;C:\WSAD51\runtimes\base_v5/propert > ies;C:\WSAD51\runtimes\base_v5/lib/bootstrap.jar;C:\WSAD51\runtimes\base > _v5/lib/j2ee.jar;C:\WSAD51\runtimes\base_v5/lib/lmproxy.jar;C:/WSAD51/ws > tools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.0/runtim > e/wteServers.jar;C:/WSAD51/wstools/eclipse/plugins/com.ibm.etools.websph > ere.tools.common_5.1.0/runtime/wasToolsCommon.jar > Java Library path = > C:\WSAD51\runtimes\base_v5/bin;C:\WSAD51\runtimes\base_v5/java/bin;C:\WS > AD51\runtimes\base_v5/java/jre/bin;C:\wsad51\eclipse\jre\bin;.;C:\j2sdk1 > .4.2_03\bin;C:\j2sdk1.4.2_03\bin;C:\WSAD51\runtimes\base_v5\java;C:\PVSW > \BIN;C:\PVSW\Bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbe > m;C:\Program Files\cvsnt;p:\lnrmmisc\lus\dll;C:\Program > Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere > MQ\tools\c\samples\bin;C:\SNA\system;C:\Program > Files\Oracle\ora81\bin\;C:\Program Files\oracle\bin;C:\Program > Files\oracle\jre\1.1.7\bin;C:\Program Files\Microsoft SQL > Server\80\Tools\BINN;C:\Program Files\Microsoft Visual > Studio\Common\Tools\WinNT\;C:\Program Files\Microsoft Visual > Studio\Common\Tools\;C:\Program Files\Microsoft Visual > Studio\VC98\Bin\;C:\Program Files\Microsoft Visual > Studio\Common\MSDev98\Bin > ************* End Display Current Environment ************* > [3/8/06 10:51:45:657 CST] 4c8ff6a5 ManagerAdmin I TRAS0017I: The > startup trace state is *=all=disabled. > [3/8/06 10:51:46:157 CST] 4c8ff6a5 AdminInitiali A ADMN0015I: > AdminService initialized > [3/8/06 10:51:47:142 CST] 4c8ff6a5 Configuration A SECJ0215I: > Successfully set JAAS login provider configuration class to > com.ibm.ws.security.auth.login.Configuration. > [3/8/06 10:51:47:189 CST] 4c8ff6a5 SecurityDM I SECJ0231I: The > Security component's FFDC Diagnostic Module > com.ibm.ws.security.core.SecurityDM registered successfully: true. > [3/8/06 10:51:47:298 CST] 4c8ff6a5 SecurityCompo I SECJ0309I: Java 2 > Security is disabled. > [3/8/06 10:51:47:298 CST] 4c8ff6a5 SecurityCompo I SECJ0212I: WCCM JAAS > configuration information successfully pushed to login provider class. > [3/8/06 10:51:47:314 CST] 4c8ff6a5 SecurityCompo I SECJ0240I: Security > service initialization completed successfully > [3/8/06 10:51:47:314 CST] 4c8ff6a5 JMSRegistrati A MSGS0602I: WebSphere > Embedded Messaging Client only has been installed > [3/8/06 10:51:50:282 CST] 4c8ff6a5 CacheServiceI I DYNA0048I: WebSphere > Dynamic Cache initialized successfully. > [3/8/06 10:51:52:142 CST] 4c8ff6a5 JMXSoapAdapte A ADMC0013I: SOAP > connector available at port 8880 > [3/8/06 10:51:52:157 CST] 4c8ff6a5 SecurityCompo I SECJ0243I: Security > service started successfully > [3/8/06 10:51:52:157 CST] 4c8ff6a5 SecurityCompo I SECJ0210I: Security > enabled false > [3/8/06 10:51:53:126 CST] 4c8ff6a5 ApplicationMg A WSVR0200I: Starting > application: IBMUTC > [3/8/06 10:51:53:673 CST] 4c8ff6a5 WebContainer A SRVE0161I: IBM > WebSphere Application Server - Web Container. Copyright IBM Corp. > 1998-2002 > [3/8/06 10:51:53:704 CST] 4c8ff6a5 WebContainer A SRVE0162I: Servlet > Specification Level: 2.3 > [3/8/06 10:51:53:704 CST] 4c8ff6a5 WebContainer A SRVE0163I: Supported > JSP Specification Level: 1.2 > [3/8/06 10:51:53:767 CST] 4c8ff6a5 WebContainer A SRVE0169I: Loading > Web Module: IBM Universal Test Client. > [3/8/06 10:51:54:048 CST] 4c8ff6a5 WebGroup I SRVE0180I: [IBM > Universal Test Client] [/UTC] [Servlet.LOG]: JSP 1.2 Processor: init > [3/8/06 10:51:54:157 CST] 4c8ff6a5 WebGroup I SRVE0180I: [IBM > Universal Test Client] [/UTC] [Servlet.LOG]: SimpleFileServlet: init > [3/8/06 10:51:54:236 CST] 4c8ff6a5 ApplicationMg A WSVR0221I: > Application started: IBMUTC > [3/8/06 10:51:54:251 CST] 4c8ff6a5 ApplicationMg A WSVR0200I: Starting > application: DefaultEAR > [3/8/06 10:51:54:829 CST] 4c8ff6a5 WebContainer A SRVE0169I: Loading > Web Module: TilesTest. > [3/8/06 10:51:54:970 CST] 4c8ff6a5 WebGroup I SRVE0180I: > [TilesTest] [/TilesTest] [Servlet.LOG]: JSP 1.2 Processor: init > [3/8/06 10:51:56:111 CST] 4c8ff6a5 WebGroup I SRVE0180I: > [TilesTest] [/TilesTest] [Servlet.LOG]: SimpleFileServlet: init > [3/8/06 10:51:56:126 CST] 4c8ff6a5 WebGroup I SRVE0180I: > [TilesTest] [/TilesTest] [Servlet.LOG]: InvokerServlet: init > [3/8/06 10:51:56:173 CST] 4c8ff6a5 WebGroup I SRVE0180I: > [TilesTest] [/TilesTest] [Servlet.LOG]: action: init > [3/8/06 10:51:56:204 CST] 4c8ff6a5 PropertyMessa I > org.apache.struts.util.PropertyMessageResources Initializing, > config='org.apache.struts.util.LocalStrings', returnNull=true > [3/8/06 10:51:56:204 CST] 4c8ff6a5 PropertyMessa I > org.apache.struts.util.PropertyMessageResources Initializing, > config='org.apache.struts.action.ActionResources', returnNull=true > [3/8/06 10:51:56:564 CST] 4c8ff6a5 PropertyMessa I > org.apache.struts.util.PropertyMessageResources Initializing, > config='com.aegon.tilestest.resources.ApplicationResources', > returnNull=true > [3/8/06 10:51:56:673 CST] 4c8ff6a5 I18nFactorySe E > org.apache.struts.tiles.xmlDefinition.I18nFactorySet null : Can't find > file '/WEB-INF/tiles-defs.xml' > [3/8/06 10:51:56:673 CST] 4c8ff6a5 TilesPlugin E > org.apache.struts.tiles.TilesPlugin Can't create Tiles definition > factory for module ''. > [3/8/06 10:51:56:704 CST] 4c8ff6a5 ServletInstan E SRVE0100E: Did not > realize init() exception thrown by servlet action: > javax.servlet.ServletException: null : Can't find file > '/WEB-INF/tiles-defs.xml' > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Regards Name : Oshima Tlholoe Cell No: +2773 342 4393 Tel No : +2712 350 1282(w) E-mail : [EMAIL PROTECTED] simplicity is the ultimate sophistication