What are the effects of keeping large files in the ROOT directory?

2009-05-20 Thread uddav

Hello Everyone,

I have a question about keeping large files in the ROOT directory in Tomcat?

We have an index.html file in the location .../webapps/ROOT directory which
has a link pointed to a PDF file which is almost 10MB in size and is located
in the same directory . Our users click open the link to have the PDF open
in their web browsers. My question is-Is it a good practice to keep that PDF
on the ROOT directory itself? Will it in any case bring down Tomcat, if the
volume of request to view this PDF file is very high? I apologize if my
question is very generic as I am a novice on this area.

We are using Tomcat 5.0.27 and our server O/S is SunOS 5.8.

I would very much appreciate any insight and suggestions regarding this.

Thank you
Uddav
 
-- 
View this message in context: 
http://www.nabble.com/What-are-the-effects-of-keeping-large-files-in-the-ROOT-directory--tp23637359p23637359.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Excel file in Tomcat Virtual Dir has junk data in it.

2009-01-30 Thread uddav

It is Version 5.0.27. 

uddav wrote:
> 
> Hello Everyone,
> 
> I have set up a Virtual Directory (Directory Listing) in Tomcat. We use
> this to distribute documents and reports. The way we do is put the
> documents to be distributed in this directory on the server and all our
> user go to  this virtual directory by accessing a URL and view/get their
> reports. 
> 
> I have put a .xls file in there, and when we open it - it opens in the
> browser itself and what it seems to have is junk data in it. (unreadable).
> However instead of clicking it to open, if we do "Save the target as.."
> and save it in the local machine and change the extension from .htm to
> .xls the report comes to full-life and its all good.
> 
> We used to have similar virtual directory in Apache before. I remember
> that if we clicked on the .xls report, instead of opening it in the
> browser, it would begin downloading it to the local machine as an Excel
> file, so that was very good. 
> 
> Is there any settings in Tomcat which we can set so that instead of
> opening files in the browser itself, it would download it to the users' PC
> with the correct file extensions?
> 
> Any insight and recommendations in this regard would be greatly
> appreciated. 
> 
> Thanks in Advance
> Uddav
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Excel-file-in-Tomcat-Virtual-Dir-has-junk-data-in-it.-tp21737355p21750042.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Excel file in Tomcat Virtual Dir has junk data in it.

2009-01-29 Thread uddav

Hello Everyone,

I have set up a Virtual Directory (Directory Listing) in Tomcat. We use this
to distribute documents and reports. The way we do is put the documents to
be distributed in this directory on the server and all our user go to  this
virtual directory by accessing a URL and view/get their reports. 

I have put a .xls file in there, and when we open it - it opens in the
browser itself and what it seems to have is junk data in it. (unreadable).
However instead of clicking it to open, if we do "Save the target as.." and
save it in the local machine and change the extension from .htm to .xls the
report comes to full-life and its all good.

We used to have similar virtual directory in Apache before. I remember that
if we clicked on the .xls report, instead of opening it in the browser, it
would begin downloading it to the local machine as an Excel file, so that
was very good. 

Is there any settings in Tomcat which we can set so that instead of opening
files in the browser itself, it would download it to the users' PC with the
correct file extensions?

Any insight and recommendations in this regard would be greatly appreciated. 

Thanks in Advance
Uddav


-- 
View this message in context: 
http://www.nabble.com/Excel-file-in-Tomcat-Virtual-Dir-has-junk-data-in-it.-tp21737355p21737355.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: How to know when tomcat was started/stopped?

2009-01-16 Thread uddav

Thank you for pointing it out. 

The logs directory as i see it has two types of file.
One of the types is "localhost_log.-MM-DD.txt" which looks like being
generated one for each day and updated regularly through out the day where
as another one is "catalina.out".

I looked into both the files and wasn't able to tell what wordings were
pointing to shutdown and what to startup. I apologize , i am novice in this
area. 

uddav




Caldarale, Charles R wrote:
> 
>> From: uddav [mailto:adi.upr...@gmail.com]
>> Subject: How to know when tomcat was started/stopped?
>>
>> Is there a way to know when tomcat was started/stopped
>> manually by using the startup and shutdown scripts?
> 
> It's in the Tomcat logs.
> 
>  - 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-know-when-tomcat-was-started-stopped--tp21502265p21502799.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



How to know when tomcat was started/stopped?

2009-01-16 Thread uddav

Hello everyone,

Is there a way to know when tomcat was started/stopped manually by using the
startup and shutdown scripts? 

I suggestions/ideas/recomendations in this direction would be greatly
appreciated.

Thanks in advance
uddav
-- 
View this message in context: 
http://www.nabble.com/How-to-know-when-tomcat-was-started-stopped--tp21502265p21502265.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-14 Thread uddav

Thank you both for those information, they were very helpful. Again, thank
you so much. =)



Caldarale, Charles R wrote:
> 
>> From: uddav [mailto:[EMAIL PROTECTED]
>> Subject: Creating virtual directory in Tomcat - HTTP Status 404 ...
>>
>> docBase="/dirtest/prod_scrpts"
>> URL "http://:8080/test" i get the error:
>> HTTP Status 404 - /test/
> 
> Unless you have a welcome file (e.g., index.html) in /dirtest/prod_scrpts,
> that's exactly the error you should get.  If you want Tomcat to display
> directory listings when no welcome files are present, you'll have to
> enable that for the DefaultServlet in conf/web.xml (or the webapp's
> WEB-INF/web.xml file).
> 
>> Apache Tomcat/5.0.27
> 
> Note that 5.0 is no longer supported.
> 
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Creating-virtual-directory-in-Tomcat---HTTP-Status-404-...-tp19887681p19976883.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-08 Thread uddav

hello everyone,

i am a novice in this field. I was trying to create a virtual directory
(alias directory) in Tomcat in Solaris box. Following is what i did.

1. stopped tomcat 

2. located the "server.xml" file under /tomcat/conf 

2. edited it to add 
   


3. added the above between the host tags such that
 
 ... ... ... ...
  

  

4. started tomcat 

Now when i try to access the newly create virtual directory by going to the
URL "http://:8080/test" i get the error:

HTTP Status 404 - /test/

type Status report
message /test/
description The requested resource (/test/) is not available.

Apache Tomcat/5.0.27

Any suggestions and recommendation will be greatly appreciated.

Thankyou
uddav 

-- 
View this message in context: 
http://www.nabble.com/Creating-virtual-directory-in-Tomcat---HTTP-Status-404-...-tp19887681p19887681.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]