Wes, That was an interesting exercise. I changed my welcome-file to be "index.action", added the zero-byte file "/webapp/index.action", and defined the following action:
<action name="index" > <result>/index.html</result> </action> This worked the same on Tomcat 5.5 as it did when my welcome-file was just "index.html." Unfortunately, on WebSphere I still got the message: "Error 404: There is no Action mapped for namespace / and action name index ." Of course, if I type http://myserver/mycontext/index.action in the browser that works fine. Something is seriously hosed on WAS 6.1. I've asked the WAS Admin to bump us up to 6.1.0.23 and I'll continue testing tomorrow. Thank you for your suggestion. Steve Mitchell http://www.ByteworksInc.com -----Original Message----- From: Mitchell, Steven [mailto:steven.mitch...@umb.com] Sent: Wednesday, June 03, 2009 4:18 PM To: Struts Users Mailing List Subject: RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml Wes, Boy do I wish the client would just use Tomcat! I'll try going down the action route. I'm actually using index.html now, which is a real file that I can access if I type the whole URL: http://myserver/mycontext/index.html. If I understand what you are asking me to try, I will create a zero byte /webapp/index.action, change my Web.xml from: <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> to: <welcome-file-list> <welcome-file>index.action</welcome-file> </welcome-file-list> and add an action named "index". Is that correct? Actually, my index.html redirects to /mynamespace/myaction.action. If I just used that I would need to create a directory named /mynamespace with a zero byte file called myaction.action. Is that correct? Steve Mitchell http://www.ByteworksInc.com -----Original Message----- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, June 03, 2009 4:00 PM To: Struts Users Mailing List Subject: Re: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml On Wed, Jun 3, 2009 at 4:54 PM, Mitchell, Steven <steven.mitch...@umb.com> wrote: [...] > > Error 404: SRVE0190E: File not found: /secure/MySecureAction.action [...] I don't know about all of the problems, but one thing that might help you understand this a little bit... This 404 might not be WAS' fault. In the Spec (can't remember if it was 2.3 / 2.4) it was specified that a file had to exist on the file system for it to be usable as a welcome-file. This is sort of a pain for Struts2. One quick hack that worked in Tomcat is to just create a zero-byte file called index.action. I can't guarantee that WAS will be happy with that, but I have used that before. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org ------------------------------------------------------------------------------ NOTICE: This electronic mail message and any attached files are confidential. The information is exclusively for the use of the individual or entity intended as the recipient. If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited. If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you. ============================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org