RE: Error finding tiles-defs.xml

2006-03-10 Thread Hilton, Steve
Oshima, thank you VERY VERY much!  That fixed it.  I had looked on
so many web site, and at so many examples, and in so many books, and not
one single resource I looked at EVER said to add that code to web.xml.
Thanks again.  I really appreciate it!

Steve

-Original Message-
From: Oshima Tlholoe [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 4:58 AM
To: Struts Users Mailing List
Subject: Re: Error finding tiles-defs.xml


hi Steve

did you include the your tiles-defs.xml in the web.xml so that its
loaded
when your ActionServlet starts up. asn the following

   definitions-config
   /WEB-INF/tiles-defs.xml



On 3/10/06, Oshima Tlholoe <[EMAIL PROTECTED]> wrote:
>
> 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 ===
> > 
> >  >"-//Apache Software Foundation//DTD Tiles Configuration//EN"
> >"http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>
> >
> > 
> > 
> >   
> >   
> >   
> >   
> >   
> >
> > 
> >
> >
> >
> > == STRUTS-CONFIG.XML ===
> > 
> >  > Struts Configuration 1.1//EN"
> >
> > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd ">
> >
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> >
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> >
> > 
> > 
> >   
> >
> >  
> >
> >  > processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> > bufferSize="4096" debug="0"/>
> >
> > 
> >  > parameter="com.aegon.learntiles.resources.ApplicationResources"/>
> >
> > 
> > > value="/WEB-INF/tiles-defs.xml" />
> >   
> >> />
> >> value="true" />
> >
> > 
> >
> > 
> >
> >
> >
> > *** 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/plu

Error finding tiles-defs.xml

2006-03-09 Thread Hilton, Steve
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 ===

http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>



  
  
  
  
  
   




== STRUTS-CONFIG.XML ===

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>





















  

 







   
   
   
   
   






*** 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 SecurityDMI 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.

RE: Help Needed: Struts-Tiles Configuration and/or Definition Error

2006-03-08 Thread Hilton, Steve
I think maybe we are getting warm here.  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 don't understand because the struts-config file has (by the way, same
error with or without the pathname property being set below)- 


 
  
  


*** 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 SecurityDMI 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
applica

RE: Help Needed: Struts-Tiles Configuration and/or Definition Error

2006-03-08 Thread Hilton, Steve
Sorry, I should have shown that.  I just stripped down the struts-config
file that I pasted in the e-mail.  I do have the following code in the
struts-config file...





-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 10:33 AM
To: Struts Users Mailing List
Subject: Re: Help Needed: Struts-Tiles Configuration and/or Definition
Error



On Mar 8, 2006, at 10:06 AM, Hilton, Steve wrote:

> First of all, I am using Websphere 5.1.0.  The problem is this
> Any time I try to reference a definition name in the tiles-defs.xml
> file, any reference to that definition in the struts-config file  
> always
> produces a warning which states "Target page.default cannot be  
> resolved
> in the context of the following modules: /"



> To make this even more frustrating, I can create a welcome page  
> like the
> index.jsp listed below and that works fine.

Looks like you need to specify the TilesRequestProcessor in your  
struts-config.xml.

Greg


-
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]



Help Needed: Struts-Tiles Configuration and/or Definition Error

2006-03-08 Thread Hilton, Steve
Hello every.  I am new to this e-mail forum, so hopefully I am posting
this question correctly.  I have been pulling my hair out over this
problem.  I have looked in many books and at many examples on websites
and cannot see where I am doing anything wrong.  I have listed the tiles
and struts configuration files for a simple example below.  I can pull
examples, verbatim, off off websites and they get the exact same error
as sample programs I set up myself.

First of all, I am using Websphere 5.1.0.  The problem is this
Any time I try to reference a definition name in the tiles-defs.xml
file, any reference to that definition in the struts-config file always
produces a warning which states "Target page.default cannot be resolved
in the context of the following modules: /"

I have tried everything and cannot figure out why this will not work.
This really doesn't seem like it should be that hard.  It just seems
like the  struts-config file can never find anything in the tiles-defs
file.

To make this even more frustrating, I can create a welcome page like the
index.jsp listed below and that works fine.
index.jsp
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


Any help would be greatly appreciated.  Thanks!  -- Steve


Here's the files for the sample application

tiles-defs.xml


  
  
  
  
   


struts-config.xml




















 
  







 
  
  





-
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]