Re: Static files not being displayed

2011-10-28 Thread André Warnier

Rajkumar Singh wrote:

Hello guys,

I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux.

I created a war file named ROOT.war and dropped it under the tomcat 
webapps folder. The WAR consists of JSP, JAR, XML and static files like 
images, javascript and CSS.


The tomcat expanded the WAR file properly and I was able to get to the 
dynamic files of my application through the URL. However what I noticed 
was that all the static files are not fetched from the server. I get 404 
error in my firebug (Using firefox as my browser).


And the dynamic files are shown correctly, no problem with that. Even my 
application is making the database call and making right transaction with 
it


Can someone please help me in resolving the issue? Is there any 
configuration that needs to be done on the tomcat server. To let you all 
know, this is the first time I am working on the tomcat 6 version.




To my knowledge, there is nothing special in terms of configuration required to allow 
Tomcat to serve static files, if they are in the right place.
(Of course, this applies to a standard Tomcat downloaded from tomcat.apache.org; things 
may be different for pre-packaged Tomcat's from other sources).


To get more help, you will need to provide some additional information.
Since you are using firebug, you should be able to see which exact URL the browser 
requests for one of these static elements.

Give us an example, and also tell us the path of this same element on disk.
What may also help is the content of the ./WEB-INF/web.xml file of your application, and 
the ./META-INF/context.xml if there is one (all comments and passwords removed).


And also tell us where you got your Tomcat from, and where you find Tomcat's server.xml 
file.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Static files not being displayed

2011-10-28 Thread Francis GALIEGUE
On Fri, Oct 28, 2011 at 21:08, André Warnier a...@ice-sa.com wrote:
 Rajkumar Singh wrote:

 Hello guys,

 I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux.

 I created a war file named ROOT.war and dropped it under the tomcat
 webapps folder. The WAR consists of JSP, JAR, XML and static files like
 images, javascript and CSS.

 The tomcat expanded the WAR file properly and I was able to get to the
 dynamic files of my application through the URL. However what I noticed was
 that all the static files are not fetched from the server. I get 404 error
 in my firebug (Using firefox as my browser).

 And the dynamic files are shown correctly, no problem with that. Even my
 application is making the database call and making right transaction with it

 Can someone please help me in resolving the issue? Is there any
 configuration that needs to be done on the tomcat server. To let you all
 know, this is the first time I am working on the tomcat 6 version.


 To my knowledge, there is nothing special in terms of configuration
 required to allow Tomcat to serve static files, if they are in the right
 place.
 (Of course, this applies to a standard Tomcat downloaded from
 tomcat.apache.org; things may be different for pre-packaged Tomcat's from
 other sources).

 To get more help, you will need to provide some additional information.
 Since you are using firebug, you should be able to see which exact URL the
 browser requests for one of these static elements.
 Give us an example, and also tell us the path of this same element on disk.
 What may also help is the content of the ./WEB-INF/web.xml file of your
 application, and the ./META-INF/context.xml if there is one (all comments
 and passwords removed).

 And also tell us where you got your Tomcat from, and where you find Tomcat's
 server.xml file.



I'd say, first, configure an AccessLogValve and give the output of it.
Tomcat definitely cannot find the requested files and there has to be
a reason for it.


-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Static files not being displayed

2011-10-28 Thread Rajkumar Singh
Hi Andre

Please find the files as an attachment.



Thanks
Raj



From:
André Warnier a...@ice-sa.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:10 PM
Subject:
Re: Static files not being displayed



Rajkumar Singh wrote:
 Hello guys,
 
 I am using tomcat version 6.0.29. The tomcat is deployed on the OS 
Linux.
 
 I created a war file named ROOT.war and dropped it under the tomcat 
 webapps folder. The WAR consists of JSP, JAR, XML and static files 
like 
 images, javascript and CSS.
 
 The tomcat expanded the WAR file properly and I was able to get to the 
 dynamic files of my application through the URL. However what I noticed 
 was that all the static files are not fetched from the server. I get 404 

 error in my firebug (Using firefox as my browser).
 
 And the dynamic files are shown correctly, no problem with that. Even my 

 application is making the database call and making right transaction 
with 
 it
 
 Can someone please help me in resolving the issue? Is there any 
 configuration that needs to be done on the tomcat server. To let you all 

 know, this is the first time I am working on the tomcat 6 version.
 

To my knowledge, there is nothing special in terms of configuration 
required to allow 
Tomcat to serve static files, if they are in the right place.
(Of course, this applies to a standard Tomcat downloaded from 
tomcat.apache.org; things 
may be different for pre-packaged Tomcat's from other sources).

To get more help, you will need to provide some additional information.
Since you are using firebug, you should be able to see which exact URL the 
browser 
requests for one of these static elements.
Give us an example, and also tell us the path of this same element on 
disk.
What may also help is the content of the ./WEB-INF/web.xml file of your 
application, and 
the ./META-INF/context.xml if there is one (all comments and passwords 
removed).

And also tell us where you got your Tomcat from, and where you find 
Tomcat's server.xml 
file.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Disclaimer 
The information in this email and any attachments may contain proprietary and 
confidential information that is intended for the addressee(s) only. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, retention or use of the contents of this information is 
prohibited.  When addressed to our clients or vendors, any information 
contained in this e-mail or any attachments is subject to the terms and 
conditions in any governing contract. If you have received this e-mail in 
error, please immediately contact the sender and delete the e-mail.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Static files not being displayed

2011-10-28 Thread André Warnier

Rajkumar Singh wrote:

Hi Andre

Please find the files as an attachment.


You have to paste the content in the text of your message. The list strips most 
attachments.






Thanks
Raj



From:
André Warnier a...@ice-sa.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:10 PM
Subject:
Re: Static files not being displayed



Rajkumar Singh wrote:

Hello guys,

I am using tomcat version 6.0.29. The tomcat is deployed on the OS 

Linux.
I created a war file named ROOT.war and dropped it under the tomcat 
webapps folder. The WAR consists of JSP, JAR, XML and static files 
like 

images, javascript and CSS.

The tomcat expanded the WAR file properly and I was able to get to the 
dynamic files of my application through the URL. However what I noticed 
was that all the static files are not fetched from the server. I get 404 



error in my firebug (Using firefox as my browser).

And the dynamic files are shown correctly, no problem with that. Even my 


application is making the database call and making right transaction 
with 

it

Can someone please help me in resolving the issue? Is there any 
configuration that needs to be done on the tomcat server. To let you all 



know, this is the first time I am working on the tomcat 6 version.



To my knowledge, there is nothing special in terms of configuration 
required to allow 
Tomcat to serve static files, if they are in the right place.
(Of course, this applies to a standard Tomcat downloaded from 
tomcat.apache.org; things 
may be different for pre-packaged Tomcat's from other sources).


To get more help, you will need to provide some additional information.
Since you are using firebug, you should be able to see which exact URL the 
browser 
requests for one of these static elements.
Give us an example, and also tell us the path of this same element on 
disk.
What may also help is the content of the ./WEB-INF/web.xml file of your 
application, and 
the ./META-INF/context.xml if there is one (all comments and passwords 
removed).


And also tell us where you got your Tomcat from, and where you find 
Tomcat's server.xml 
file.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Disclaimer 
The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited.  When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Static files not being displayed

2011-10-28 Thread Caldarale, Charles R
 From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] 
 Subject: Re: Static files not being displayed

 Please find the files as an attachment.

The list strips attachments; paste the information inline.

And the answers to the rest of André's questions?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Static files not being displayed

2011-10-28 Thread Rajkumar Singh
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
!-- Remove comments if require mail functionality --
!-- resource-ref
res-ref-namemail/test/res-ref-name
res-typejavax.mail.Session/res-type
res-authContainer/res-auth
/resource-ref--
env-entry
env-entry-nameserverURLPrefix/env-entry-name
env-entry-typejava.lang.String/env-entry-type
/env-entry
env-entry
env-entry-namemediaServerUrlPrefix/env-entry-name
env-entry-typejava.lang.String/env-entry-type
/env-entry
env-entry
env-entry-namelogLocation/env-entry-name
env-entry-typejava.lang.String/env-entry-type
/env-entry
jsp-config
taglib
taglib-urihttp://java.sun.com/jstl/core
/taglib-uri
 taglib-location/WEB-INF/tld/c.tld/taglib-location
/taglib
taglib
taglib-urihttp://java.sun.com/jstl/fn
/taglib-uri
 taglib-location/WEB-INF/tld/fn.tld/taglib-location
/taglib
taglib
taglib-urihttp://java.sun.com/jstl/fmt
/taglib-uri
 taglib-location/WEB-INF/tld/fmt.tld/taglib-location
/taglib
taglib
  taglib-urihttp://jsptags.com/tags/navigation/pager
/taglib-uri
 taglib-location/WEB-INF/tld/pager-taglib.tld/taglib-location
/taglib
taglib
  taglib-urihttp://framework.company.com/framework
/taglib-uri
 taglib-location/WEB-INF/tld/framework.tld/taglib-location
/taglib
/jsp-config

!-- Admin section authentication handled via Tomcat --
!-- START - Admin Authentication --
!-- security-constraint
web-resource-collection
web-resource-nameAdmin 
Application/web-resource-name
url-pattern/admin/*/url-pattern
/web-resource-collection
auth-constraint
role-nameproject-admin/role-name
/auth-constraint
/security-constraint
 
login-config
auth-methodBASIC/auth-method
realm-nameAdministration/realm-name
/login-config
 
security-role
descriptionThe role that is required to log in to the 
Manager Application/description
role-nameproject-admin/role-name
/security-role
 --
!-- END - Admin Authentication --

/web-app

WEB-INF/web.xml 
ends



From:
André Warnier a...@ice-sa.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:28 PM
Subject:
Re: Static files not being displayed



Rajkumar Singh wrote:
 Hi Andre
 
 Please find the files as an attachment.

You have to paste the content in the text of your message. The list strips 
most attachments.


 
 
 
 Thanks
 Raj
 
 
 
 From:
 André Warnier a...@ice-sa.com
 To:
 Tomcat Users List users@tomcat.apache.org
 Date:
 10/28/2011 03:10 PM
 Subject:
 Re: Static files not being displayed
 
 
 
 Rajkumar Singh wrote:
 Hello guys,

 I am using tomcat version 6.0.29. The tomcat is deployed on the OS 
 Linux.
 I created a war file named ROOT.war and dropped it under the tomcat 
 webapps folder. The WAR consists of JSP, JAR, XML and static files 
 like 
 images, javascript and CSS.

 The tomcat expanded the WAR file properly and I was able to get to the 
 dynamic files of my application through the URL. However what I noticed 

 was that all the static files are not fetched from the server. I get 
404 
 
 error in my firebug (Using firefox as my browser).

 And the dynamic files are shown correctly, no problem with that. Even 
my 
 
 application is making the database call and making right transaction 
 with 
 it

 Can someone please help me in resolving the issue? Is there any 
 configuration that needs to be done on the tomcat server. To let you 
all 
 
 know, this is the first time I am working on the tomcat 6 version.

 
 To my knowledge, there is nothing special in terms of configuration 
 required to allow 
 Tomcat to serve static files, if they are in the right place.
 (Of course, this applies to a standard Tomcat downloaded from 
 tomcat.apache.org; things 
 may be different for pre-packaged Tomcat's from other sources).
 
 To get more help, you will need to provide some additional information.
 Since you are using firebug, you should be able to see which exact URL 
the 
 browser 
 requests for one of these static elements.
 Give us an example, and also tell us the path of this same element on 
 disk.
 What may also help is the content of the ./WEB-INF/web.xml file of your 
 application, and 
 the ./META-INF/context.xml if there is one (all

Re: Static files not being displayed

2011-10-28 Thread André Warnier

Francis GALIEGUE wrote:

On Fri, Oct 28, 2011 at 21:08, André Warnier a...@ice-sa.com wrote:

Rajkumar Singh wrote:

Hello guys,

I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux.

I created a war file named ROOT.war and dropped it under the tomcat
webapps folder. The WAR consists of JSP, JAR, XML and static files like
images, javascript and CSS.

The tomcat expanded the WAR file properly and I was able to get to the
dynamic files of my application through the URL. However what I noticed was
that all the static files are not fetched from the server. I get 404 error
in my firebug (Using firefox as my browser).

And the dynamic files are shown correctly, no problem with that. Even my
application is making the database call and making right transaction with it

Can someone please help me in resolving the issue? Is there any
configuration that needs to be done on the tomcat server. To let you all
know, this is the first time I am working on the tomcat 6 version.


To my knowledge, there is nothing special in terms of configuration
required to allow Tomcat to serve static files, if they are in the right
place.
(Of course, this applies to a standard Tomcat downloaded from
tomcat.apache.org; things may be different for pre-packaged Tomcat's from
other sources).

To get more help, you will need to provide some additional information.
Since you are using firebug, you should be able to see which exact URL the
browser requests for one of these static elements.
Give us an example, and also tell us the path of this same element on disk.
What may also help is the content of the ./WEB-INF/web.xml file of your
application, and the ./META-INF/context.xml if there is one (all comments
and passwords removed).

And also tell us where you got your Tomcat from, and where you find Tomcat's
server.xml file.




I'd say, first, configure an AccessLogValve and give the output of it.
Tomcat definitely cannot find the requested files and there has to be
a reason for it.

There is certainly a reason, but we don't know yet if it is really Tomcat sending the 404 
replies.

The access log would help, presuming the requests really go to that same Tomcat.
But the firebug data should tell us that.





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Static files not being displayed

2011-10-28 Thread Rajkumar Singh
The tomcat was installed by one of our system administrator. I am not sure 
from where he got it from but most likely it is not from the third party.



From:
Caldarale, Charles R chuck.caldar...@unisys.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:28 PM
Subject:
RE: Static files not being displayed



 From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] 
 Subject: Re: Static files not being displayed

 Please find the files as an attachment.

The list strips attachments; paste the information inline.

And the answers to the rest of André's questions?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you 
received this in error, please contact the sender and delete the e-mail 
and its attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Disclaimer 
The information in this email and any attachments may contain proprietary and 
confidential information that is intended for the addressee(s) only. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, retention or use of the contents of this information is 
prohibited.  When addressed to our clients or vendors, any information 
contained in this e-mail or any attachments is subject to the terms and 
conditions in any governing contract. If you have received this e-mail in 
error, please immediately contact the sender and delete the e-mail.


Re: Static files not being displayed

2011-10-28 Thread André Warnier

Rajkumar Singh wrote:

Oops, sorry, I am new to the list :


Let me nitpick a bit more then, by way of greeting :

2) you forgot to remove the comments.
XML files are already pretty hard to read when wrapped by the email programs.
Having a lot of not-used lines doesn't make it any easier.

1) preferably, do not top-post.  Write your answer below the question, it makes it easier 
to follow the flow of the conversation.


Try again.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Static files not being displayed

2011-10-28 Thread Rajkumar Singh
I am sure all the request are going to the tomcat server since firebug 
clearly shows the same domain name for the file that are retrieved and 
those that are not.



From:
André Warnier a...@ice-sa.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:35 PM
Subject:
Re: Static files not being displayed



Francis GALIEGUE wrote:
 On Fri, Oct 28, 2011 at 21:08, André Warnier a...@ice-sa.com wrote:
 Rajkumar Singh wrote:
 Hello guys,

 I am using tomcat version 6.0.29. The tomcat is deployed on the OS 
Linux.

 I created a war file named ROOT.war and dropped it under the tomcat
 webapps folder. The WAR consists of JSP, JAR, XML and static files 
like
 images, javascript and CSS.

 The tomcat expanded the WAR file properly and I was able to get to the
 dynamic files of my application through the URL. However what I 
noticed was
 that all the static files are not fetched from the server. I get 404 
error
 in my firebug (Using firefox as my browser).

 And the dynamic files are shown correctly, no problem with that. Even 
my
 application is making the database call and making right transaction 
with it

 Can someone please help me in resolving the issue? Is there any
 configuration that needs to be done on the tomcat server. To let you 
all
 know, this is the first time I am working on the tomcat 6 version.

 To my knowledge, there is nothing special in terms of configuration
 required to allow Tomcat to serve static files, if they are in the 
right
 place.
 (Of course, this applies to a standard Tomcat downloaded from
 tomcat.apache.org; things may be different for pre-packaged Tomcat's 
from
 other sources).

 To get more help, you will need to provide some additional information.
 Since you are using firebug, you should be able to see which exact URL 
the
 browser requests for one of these static elements.
 Give us an example, and also tell us the path of this same element on 
disk.
 What may also help is the content of the ./WEB-INF/web.xml file of your
 application, and the ./META-INF/context.xml if there is one (all 
comments
 and passwords removed).

 And also tell us where you got your Tomcat from, and where you find 
Tomcat's
 server.xml file.


 
 I'd say, first, configure an AccessLogValve and give the output of it.
 Tomcat definitely cannot find the requested files and there has to be
 a reason for it.
 
There is certainly a reason, but we don't know yet if it is really Tomcat 
sending the 404 
replies.
The access log would help, presuming the requests really go to that same 
Tomcat.
But the firebug data should tell us that.





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Disclaimer 
The information in this email and any attachments may contain proprietary and 
confidential information that is intended for the addressee(s) only. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, retention or use of the contents of this information is 
prohibited.  When addressed to our clients or vendors, any information 
contained in this e-mail or any attachments is subject to the terms and 
conditions in any governing contract. If you have received this e-mail in 
error, please immediately contact the sender and delete the e-mail.


Re: Static files not being displayed

2011-10-28 Thread Francis GALIEGUE
On Fri, Oct 28, 2011 at 21:34, André Warnier a...@ice-sa.com wrote:
[...]

 I'd say, first, configure an AccessLogValve and give the output of it.
 Tomcat definitely cannot find the requested files and there has to be
 a reason for it.

 There is certainly a reason, but we don't know yet if it is really Tomcat
 sending the 404 replies.

Which is exactly why I suggested that ;) If 404 is not seen in the
Tomcat access log file, then we know Tomcat isn't the culprit ;)

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Static files not being displayed

2011-10-28 Thread Caldarale, Charles R
 From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] 
 Subject: Re: Static files not being displayed

 I am sure all the request are going to the tomcat server since firebug 
 clearly shows the same domain name for the file that are retrieved and 
 those that are not.

That means almost nothing, since Tomcat may be front-ended by something else.  
Turn on the access log.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Static files not being displayed

2011-10-28 Thread André Warnier



From:
André Warnier a...@ice-sa.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:35 PM
Subject:
Re: Static files not being displayed



Francis GALIEGUE wrote:

On Fri, Oct 28, 2011 at 21:08, André Warnier a...@ice-sa.com wrote:

Rajkumar Singh wrote:

Hello guys,

I am using tomcat version 6.0.29. The tomcat is deployed on the OS 

Linux.

I created a war file named ROOT.war and dropped it under the tomcat
webapps folder. The WAR consists of JSP, JAR, XML and static files 

like

images, javascript and CSS.

The tomcat expanded the WAR file properly and I was able to get to the
dynamic files of my application through the URL. However what I 

noticed was
that all the static files are not fetched from the server. I get 404 

error

in my firebug (Using firefox as my browser).

And the dynamic files are shown correctly, no problem with that. Even 

my
application is making the database call and making right transaction 

with it

Can someone please help me in resolving the issue? Is there any
configuration that needs to be done on the tomcat server. To let you 

all

know, this is the first time I am working on the tomcat 6 version.


To my knowledge, there is nothing special in terms of configuration
required to allow Tomcat to serve static files, if they are in the 

right

place.
(Of course, this applies to a standard Tomcat downloaded from
tomcat.apache.org; things may be different for pre-packaged Tomcat's 

from

other sources).

To get more help, you will need to provide some additional information.
Since you are using firebug, you should be able to see which exact URL 

the

browser requests for one of these static elements.
Give us an example, and also tell us the path of this same element on 

disk.

What may also help is the content of the ./WEB-INF/web.xml file of your
application, and the ./META-INF/context.xml if there is one (all 

comments

and passwords removed).

And also tell us where you got your Tomcat from, and where you find 

Tomcat's

server.xml file.



I'd say, first, configure an AccessLogValve and give the output of it.
Tomcat definitely cannot find the requested files and there has to be
a reason for it.

There is certainly a reason, but we don't know yet if it is really Tomcat 
sending the 404 
replies.
The access log would help, presuming the requests really go to that same 
Tomcat.

But the firebug data should tell us that.



Rajkumar, this way :

Rajkumar Singh wrote:
 I am sure all the request are going to the tomcat server since firebug
 clearly shows the same domain name for the file that are retrieved and
 those that are not.

(reply at the end, not at the beginning)

Then, in your server.xml, uncomment this section :

 !--Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=tomcat_access. suffix=.log pattern=common
resolveHosts=false/--

That will make Francis happy. :-)

Then, answer ny other questions :
- what is a request URL for one of these static files, as firebug clearly shows it for the 
request line ? (I mean, paste that URL here please)

- what is the path on disk of that same file ?


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Static files not being displayed

2011-10-28 Thread Rajkumar Singh
Hi Guys,

Please ignore this. My system admin asked me to run some freakin SUDO 
command and that helped to retrieve all the images. I am sorry If I wasted 
your time but this email exchanged has helped to understand how to send 
XML files to the tomcat user group and most importantly it has helped me 
to dig deeper into the AccessLogValve.

I will try to get more from my system admin as what SUDO did exactly. I 
have worked on tomcat before but never encountered such problems.

Thanks once again for replying to my mail. Have a nice weekend. And please 
support Patriots against the Steelers:)

Thanks
Raj



From:
André Warnier a...@ice-sa.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:47 PM
Subject:
Re: Static files not being displayed



 
 
 From:
 André Warnier a...@ice-sa.com
 To:
 Tomcat Users List users@tomcat.apache.org
 Date:
 10/28/2011 03:35 PM
 Subject:
 Re: Static files not being displayed
 
 
 
 Francis GALIEGUE wrote:
 On Fri, Oct 28, 2011 at 21:08, André Warnier a...@ice-sa.com wrote:
 Rajkumar Singh wrote:
 Hello guys,

 I am using tomcat version 6.0.29. The tomcat is deployed on the OS 
 Linux.
 I created a war file named ROOT.war and dropped it under the tomcat
 webapps folder. The WAR consists of JSP, JAR, XML and static files 
 like
 images, javascript and CSS.

 The tomcat expanded the WAR file properly and I was able to get to 
the
 dynamic files of my application through the URL. However what I 
 noticed was
 that all the static files are not fetched from the server. I get 404 
 error
 in my firebug (Using firefox as my browser).

 And the dynamic files are shown correctly, no problem with that. Even 

 my
 application is making the database call and making right transaction 
 with it
 Can someone please help me in resolving the issue? Is there any
 configuration that needs to be done on the tomcat server. To let you 
 all
 know, this is the first time I am working on the tomcat 6 version.

 To my knowledge, there is nothing special in terms of configuration
 required to allow Tomcat to serve static files, if they are in the 
 right
 place.
 (Of course, this applies to a standard Tomcat downloaded from
 tomcat.apache.org; things may be different for pre-packaged Tomcat's 
 from
 other sources).

 To get more help, you will need to provide some additional 
information.
 Since you are using firebug, you should be able to see which exact URL 

 the
 browser requests for one of these static elements.
 Give us an example, and also tell us the path of this same element on 
 disk.
 What may also help is the content of the ./WEB-INF/web.xml file of 
your
 application, and the ./META-INF/context.xml if there is one (all 
 comments
 and passwords removed).

 And also tell us where you got your Tomcat from, and where you find 
 Tomcat's
 server.xml file.


 I'd say, first, configure an AccessLogValve and give the output of it.
 Tomcat definitely cannot find the requested files and there has to be
 a reason for it.

 There is certainly a reason, but we don't know yet if it is really 
Tomcat 
 sending the 404 
 replies.
 The access log would help, presuming the requests really go to that same 

 Tomcat.
 But the firebug data should tell us that.
 

Rajkumar, this way :

Rajkumar Singh wrote:
  I am sure all the request are going to the tomcat server since firebug
  clearly shows the same domain name for the file that are retrieved and
  those that are not.
 
(reply at the end, not at the beginning)

Then, in your server.xml, uncomment this section :

  !--Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
 prefix=tomcat_access. suffix=.log pattern=common
resolveHosts=false/--

That will make Francis happy. :-)

Then, answer ny other questions :
- what is a request URL for one of these static files, as firebug clearly 
shows it for the 
request line ? (I mean, paste that URL here please)
- what is the path on disk of that same file ?


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Disclaimer 
The information in this email and any attachments may contain proprietary and 
confidential information that is intended for the addressee(s) only. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, retention or use of the contents of this information is 
prohibited.  When addressed to our clients or vendors, any information 
contained in this e-mail or any attachments is subject to the terms and 
conditions in any governing contract. If you have received this e-mail in 
error, please immediately contact the sender and delete the e-mail.


Re: Static files not being displayed

2011-10-28 Thread André Warnier
Ok, had a closer look at the application's web.xml, and I feel incompetent to help for 
that problem.
There are a lot of filters there, and some dispatching going on, and I don't know a thing 
about Spring.

I am now wondering if this issue would not better be asked on the Spring user's 
list.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Static files not being displayed

2011-10-28 Thread Rajkumar Singh
From:
André Warnier a...@ice-sa.com
To:
Tomcat Users List users@tomcat.apache.org
Date:
10/28/2011 03:57 PM
Subject:
Re: Static files not being displayed



Ok, had a closer look at the application's web.xml, and I feel incompetent 
to help for 
that problem.
There are a lot of filters there, and some dispatching going on, and I 
don't know a thing 
about Spring.
I am now wondering if this issue would not better be asked on the Spring 
user's list.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


Hi Andre,

Please ignore this. I have already sent a mail a short while ago.

Thanks
Raj

Disclaimer 
The information in this email and any attachments may contain proprietary and 
confidential information that is intended for the addressee(s) only. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, retention or use of the contents of this information is 
prohibited.  When addressed to our clients or vendors, any information 
contained in this e-mail or any attachments is subject to the terms and 
conditions in any governing contract. If you have received this e-mail in 
error, please immediately contact the sender and delete the e-mail.


Re: Static files not being displayed

2011-10-28 Thread André Warnier

Rajkumar Singh wrote:

Hi Guys,

Please ignore this. My system admin asked me to run some freakin SUDO 
command and that helped to retrieve all the images. I am sorry If I wasted 
your time but this email exchanged has helped to understand how to send 
XML files to the tomcat user group 


.. but still not how to not top-post

and most importantly it has helped me

to dig deeper into the AccessLogValve.

I will try to get more from my system admin as what SUDO did exactly. I 
have worked on tomcat before but never encountered such problems.




But now we are also curious, as to what sudo command could help solve a problem of static 
files not found.

Come on, tell us.

Thanks once again for replying to my mail. Have a nice weekend. And please 
support Patriots against the Steelers:)


No political comments are allowed on the list.
;-)



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org