WARNING: invalid welcome file

2003-07-16 Thread sriram
Hi,

This may be slightly out of topic..but I need some suggestions in this regard. 
Probably someone has encountered this problem before.

In my struts application's web.xml, I've defined welcome page as follows:

welcome-file-list
welcome-file/jsp/Login.jsp/welcome-file
/welcome-file-list

When I deploy it on JBoss Windows environment, it's working fine.

When I deploy it on JBoss Linux environment, it's showing a msg:
WARNING: invalid welcome file: /jsp/Login.jsp

And in the browser, when I try to view
http://servername:8080/appName
(where appName is the name of .ear file I've deployed),
It's displaying /jsp/Login.jsp, but none of the style sheets and images are obtained.

When I type the entire path in the browser (as below)
http://servername:8080/appName/jsp/Login.jsp, then everything is perfect.

Any clue why this is happening?

Sriram


RE: WARNING: invalid welcome file

2003-07-16 Thread Chen, Gin
Try without leading /

-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 9:42 AM
To: 'Struts Users Mailing List'
Subject: WARNING: invalid welcome file


Hi,

This may be slightly out of topic..but I need some suggestions in this
regard. Probably someone has encountered this problem before.

In my struts application's web.xml, I've defined welcome page as follows:

welcome-file-list
welcome-file/jsp/Login.jsp/welcome-file
/welcome-file-list

When I deploy it on JBoss Windows environment, it's working fine.

When I deploy it on JBoss Linux environment, it's showing a msg:
WARNING: invalid welcome file: /jsp/Login.jsp

And in the browser, when I try to view
http://servername:8080/appName
(where appName is the name of .ear file I've deployed),
It's displaying /jsp/Login.jsp, but none of the style sheets and images are
obtained.

When I type the entire path in the browser (as below)
http://servername:8080/appName/jsp/Login.jsp, then everything is perfect.

Any clue why this is happening?

Sriram

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



Re: WARNING: invalid welcome file

2003-07-16 Thread Micael
The leading / tells the app that this file is in the root app, and 
apparently it is not.

At 07:11 PM 7/16/03 +0530, you wrote:
Hi,

This may be slightly out of topic..but I need some suggestions in this 
regard. Probably someone has encountered this problem before.

In my struts application's web.xml, I've defined welcome page as follows:

welcome-file-list
welcome-file/jsp/Login.jsp/welcome-file
/welcome-file-list
When I deploy it on JBoss Windows environment, it's working fine.

When I deploy it on JBoss Linux environment, it's showing a msg:
WARNING: invalid welcome file: /jsp/Login.jsp
And in the browser, when I try to view
http://servername:8080/appName
(where appName is the name of .ear file I've deployed),
It's displaying /jsp/Login.jsp, but none of the style sheets and images 
are obtained.

When I type the entire path in the browser (as below)
http://servername:8080/appName/jsp/Login.jsp, then everything is perfect.
Any clue why this is happening?

Sriram


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: WARNING: invalid welcome file

2003-07-16 Thread Max Cooper
I believe that the welcome file list is just a list of filenames to look for
in any directory if the user makes a request for a directory name without a
filename. So, they should not start with leading slashes. Some containers
are more tolerant of this than others, but it seems clear to me now that the
welcome file entries should not have slashes in their names.

To get the behavior you want, you probably want to change your welcome file
to just index.jsp (no slashes) and then make an index.jsp file that
redirects to your login page and put it in the root directory of your app.

web.xml:
welcome-file-list
   welcome-fileindex.jsp/welcome-file
/welcome-file-list

index.jsp:
% response.sendRedirect(request.getContextPath() + /jsp/Login.jsp); %

-Max

- Original Message - 
From: Micael [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 8:18 AM
Subject: Re: WARNING: invalid welcome file


 The leading / tells the app that this file is in the root app, and
 apparently it is not.

 At 07:11 PM 7/16/03 +0530, you wrote:
 Hi,
 
 This may be slightly out of topic..but I need some suggestions in this
 regard. Probably someone has encountered this problem before.
 
 In my struts application's web.xml, I've defined welcome page as follows:
 
 welcome-file-list
  welcome-file/jsp/Login.jsp/welcome-file
 /welcome-file-list
 
 When I deploy it on JBoss Windows environment, it's working fine.
 
 When I deploy it on JBoss Linux environment, it's showing a msg:
 WARNING: invalid welcome file: /jsp/Login.jsp
 
 And in the browser, when I try to view
 http://servername:8080/appName
 (where appName is the name of .ear file I've deployed),
 It's displaying /jsp/Login.jsp, but none of the style sheets and images
 are obtained.
 
 When I type the entire path in the browser (as below)
 http://servername:8080/appName/jsp/Login.jsp, then everything is
perfect.
 
 Any clue why this is happening?
 
 Sriram



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If you
 have received this transmission in error, please delete the message.
Thank
 you



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



Re: WARNING: invalid welcome file

2003-07-16 Thread Kris Schneider
The only formal restriction is that they can't begin or end with a /. A
container is supposed to append the content of each welcome-file element to
the requested URI and see whether a resource is mapped to the resulting URI. So,
while it's unusual, embedded / characters should be supported.

Quoting Max Cooper [EMAIL PROTECTED]:

 I believe that the welcome file list is just a list of filenames to look
 for
 in any directory if the user makes a request for a directory name without a
 filename. So, they should not start with leading slashes. Some containers
 are more tolerant of this than others, but it seems clear to me now that
 the
 welcome file entries should not have slashes in their names.
 
 To get the behavior you want, you probably want to change your welcome file
 to just index.jsp (no slashes) and then make an index.jsp file that
 redirects to your login page and put it in the root directory of your app.
 
 web.xml:
 welcome-file-list
welcome-fileindex.jsp/welcome-file
 /welcome-file-list
 
 index.jsp:
 % response.sendRedirect(request.getContextPath() + /jsp/Login.jsp); %
 
 -Max
 
 - Original Message - 
 From: Micael [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, July 16, 2003 8:18 AM
 Subject: Re: WARNING: invalid welcome file
 
 
  The leading / tells the app that this file is in the root app, and
  apparently it is not.
 
  At 07:11 PM 7/16/03 +0530, you wrote:
  Hi,
  
  This may be slightly out of topic..but I need some suggestions in this
  regard. Probably someone has encountered this problem before.
  
  In my struts application's web.xml, I've defined welcome page as
 follows:
  
  welcome-file-list
   welcome-file/jsp/Login.jsp/welcome-file
  /welcome-file-list
  
  When I deploy it on JBoss Windows environment, it's working fine.
  
  When I deploy it on JBoss Linux environment, it's showing a msg:
  WARNING: invalid welcome file: /jsp/Login.jsp
  
  And in the browser, when I try to view
  http://servername:8080/appName
  (where appName is the name of .ear file I've deployed),
  It's displaying /jsp/Login.jsp, but none of the style sheets and images
  are obtained.
  
  When I type the entire path in the browser (as below)
  http://servername:8080/appName/jsp/Login.jsp, then everything is
 perfect.
  
  Any clue why this is happening?
  
  Sriram

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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