RE: PostScript file

2001-11-26 Thread Evan Swanson

You need a postscript view application.

Try ZDNET.com

-Original Message-
From: Sheila Ratnam [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 4:15 PM
To: [EMAIL PROTECTED]
Subject: OT: PostScript file


Hi all,

Sorry for this off-the-topic question. But I desperately need help on this.
How can one read a PostScript file on Windows platform?

TIA,
Sheila



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




J2EE server Datasource - JNDI Resources

2001-11-21 Thread Evan Swanson

I would like to use connection pooling in my Tomcat web application. I have
read the section about JNDI Resources and is seems like the best way to
implement it.
 
I would like to know:

*   Is this a adequate method of implementing connection pooling in a
standard web app?

*   Is there any reason why I should implement my own connection pooling
rather than using this interface?

If anybody has used this setup with Tomcat 4.0, please let me know how it
worked.
 
Thanks in advance!



proxy server time outs

2001-11-13 Thread Evan Swanson

I have an application that queries a very large database. 
It takes a long time but there does not seem to be anyway around that.
This all works fine until I use it with a proxy server. 

The proxy server times out because there is such a slow response.

Is there any way to tell the proxy server "Hold on, its comming"?


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Where to put .properties so web app finds it

2001-11-13 Thread Evan Swanson

CATALINA_HOME is set by the Tomcat4.0 as a property.
Seems to work for me.

-Original Message-
From: MacDonald, Todd [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 3:00 PM
To: Tomcat-User (E-mail)
Subject: Where to put .properties so web app finds it


I've got a .properties file for settings in the web app that might be
configured differently depending on which server the .war might be dropped.

It obviously doesn't belong in the .war itself.  Where is the recommended
place to put such configuration files in Tomcat 4 so that the app will find
it?

I'm trying hard not to modify the default configuration of T4 much until I
know more about it.

-T

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Caching of Classes

2001-11-13 Thread Evan Swanson

If you install set up the manager application you can use it to reload the
app like:
http://localhost:8080/manager/reload?path=/

see jakarta doco...


-Original Message-
From: Ken M. Mevand [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 8:55 PM
To: [EMAIL PROTECTED]
Subject: Caching of Classes


hi,

this question has probably been asked a lot, but i can't seem to find the
answer.

how do i get tomcat to reload the classes without restarting it?my
classes are stored in /WEB-INF/classes and compiled manually by javac.

thanks for the patience, i'm very new to tomcat.


-ken




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




FormAuthenticator calling directly from my code

2001-11-02 Thread Evan Swanson


I am would like to use the FormAuthenticator class directly in some of my
code.

I have some unique requirements that are not met by the context based
authentication.

Are there some examples for using this class for authenticating users?

No sense in writing my own right?

Anyway thanks for any help.


Thanks,
Evan

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Shutdown Tomcat

2001-10-31 Thread Evan Swanson

Yeah, I have been wondering the same thing.

On unix is seems that you have to kill the process. 
Shutdown.bat and shutdown.sh do not seem to stop the Tomcat process.
I am guessing they just log off all of the sessions 'gracefully' 
You then have to manually kill the process? 

I am not sure if this is a problem with tomcat or it is supposed to be that
way.

It seems to be the same effect when you use the manager application to
shutdown tomcat so I am guessing that it was designed to work that way. 

I have been unable to find any doco on the subject.

Does anybody know a better way of shutting down the server than killing the
process?

-Original Message-
From: Bruno Crapart [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 8:35 AM
To: Tomcat Users List
Subject: RE: Shutdown Tomcat


Ctrl + C. :)

-Message d'origine-
De : Fiona [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 30 octobre 2001 17:04
À : [EMAIL PROTECTED]
Objet : Shutdown Tomcat


Hi,

I don't know how to shutdown Tomcat. I have tried to use the
shutdown.bat
but it doesn't seem to work. Do I have to edit it or give it any
parameters?

Regards

Fiona.

___

   Fiona McEvoy, PROSE, 20 Grantham Street, Dublin 8, Ireland.
Email:  [EMAIL PROTECTED]
Tel. (+353 1) 4783511, Fax. (+353 1) 4783937.
 
___


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: File Download - CSV question ****

2001-10-26 Thread Evan Swanson


That was it!


Thank you very much for your help. 
The WEB.XML file seems to be much different on version 4.0

very good help thanks again...


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 10:52 PM
To: '[EMAIL PROTECTED]'
Cc: 'Dmitri Colebatch'
Subject: RE: File Download - CSV question 




On Thu, 25 Oct 2001, Evan Swanson wrote:

> Date: Thu, 25 Oct 2001 13:22:06 -0700
> From: Evan Swanson <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Cc: 'Dmitri Colebatch' <[EMAIL PROTECTED]>
> Subject: RE: File Download - CSV question
>
>
> I order to reduce the variable, I tried installing TC4.0 on the same
> windows based machine. I am using the same client for both( IE5.0 ).
>
> Results:
> TC3.2 will present a popup box for downloading files with .CSV extention.
> TC4.0 throws data directly up on the screen.
>

In a servlet 2.3 environment, the default content type is not allowed to
be set on the download.  You must declare it yourself (see below).

>
> Is there any reason for this? Can I change the configuration?
>

Yes.  Yes.

> Is this a MIME type problem?
>

Yes.  You can declare the appropriate content types for your files by
using the  declaration like this in your web.xml file:

  
csv
application/octet-stream
  

The other important issue is what your *browser* thinks a particular file
type should be.  Netscape Navigator is usually pretty good about
respecting the "Content-Type" header sent by the server, while IE tends to
make its own assumptions about the file type, no matter what yo do on the
server side.


Craig McClanahan




RE: properties file

2001-10-26 Thread Evan Swanson


How do you describe where the properties file is now?

I believe the default directory is the /bin directory.

There is a tomcat property called CATALINA.BASE that is the root directory
of your tomcat4.0 installation( it used to be called TOMCAT.HOME ). 

ie.
String tomcat_home = System.getProperty("tomcat.home", "");
if( tomcat_home.equals(""))
  tomcat_home = System.getProperty("catalina.base", "");

String fileNameFull = tomcat_home + "/" + propFileName;

try{
  FileInputStream propFile=new FileInputStream( fileNameFull );
  Properties p = new Properties(System.getProperties());
.
.
.



-Original Message-
From: Antonio Trigo [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 2:58 AM
To: [EMAIL PROTECTED]
Subject: properties file


My application works fine in Tomcat 3.x.
On Tomcat 4.0.1 it can't load the properties file
that is in the application jar file.

Do I have to tell him in the web.xml where the file is?
Any ideas?

Thanks in advance.



RE: X Windows and Tomcat

2001-10-25 Thread Evan Swanson

when starting tomcat use the start instead of run in the command
i.e catalina.sh start 

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 1:35 AM
To: [EMAIL PROTECTED]
Subject: Re: X Windows and Tomcat


> Krasi, you need to install a dummie Xserver named Xvfb. With this
> Xserver running you can shut your Xwindows without stopping tomcat.

Shouldn't Tomcat keep on running? Or better yet, daemonize itself?

Nix.



RE: File Download - CSV question ****

2001-10-25 Thread Evan Swanson


I order to reduce the variable, I tried installing TC4.0 on the same 
windows based machine. I am using the same client for both( IE5.0 ).

Results:
TC3.2 will present a popup box for downloading files with .CSV extention.
TC4.0 throws data directly up on the screen.


Is there any reason for this? Can I change the configuration? 

Is this a MIME type problem?


-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 10:11 PM
To: Tomcat-User
Subject: Re: File Download - CSV question 


Are you using the same client between the two servers?  IE seems to
consider itself more important than mimetypes, and if it sees a file
extension it recognises it treats it as it deems fit, regardless of the
mimetype.  So one possibility is that you have just installed excel or
something on the client, and IE is redirecting the download there.

another option is that the mimetype being sent in tomcat 4.0 is different
to 3.x, but I'm not sure about this, so will let someone else answer this
option.

if you outline exactly what client/server you were using before, and now,
it will make the question more specific.  for intsance, tc3.2 on windows
with a win98 client with IE4.0 and now using tc4.0 on linux with a win2k
client with IE5.0.

cheers
dim

On Wed, 24 Oct 2001, Evan Swanson wrote:

> 
> I wrote an application that for Tomcat 3.2 running on window. In the HTML
> the is a reference (  ) to the filename. 
> When I run this on windows I get a popup "save as" selection box. 
> When I run this on Tomcat4.0 on Unix it no longer gives me the selection
box
> but instead displays the data on the screen.
> 
> Is this a difference between TC32 adn TC40 or Unix / Windows.
> Is this configurable.
> 
> 
> Thanks in advance.
> 
> 



RE: File Download - CSV question ****

2001-10-25 Thread Evan Swanson

Thanks for answering...

That is the thing, I am using the same client in both situations.

I am using IE5.0 in both situations. The only difference is going from
TC3.2 on windows to TC4.0 on HP Unix. I would think that the IE would be
making the 
decision on how to handle the file by the extension name but it is not.

Is MIME type something you can configure on Tomcat? 


-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 10:11 PM
To: Tomcat-User
Subject: Re: File Download - CSV question 


Are you using the same client between the two servers?  IE seems to
consider itself more important than mimetypes, and if it sees a file
extension it recognises it treats it as it deems fit, regardless of the
mimetype.  So one possibility is that you have just installed excel or
something on the client, and IE is redirecting the download there.

another option is that the mimetype being sent in tomcat 4.0 is different
to 3.x, but I'm not sure about this, so will let someone else answer this
option.

if you outline exactly what client/server you were using before, and now,
it will make the question more specific.  for intsance, tc3.2 on windows
with a win98 client with IE4.0 and now using tc4.0 on linux with a win2k
client with IE5.0.

cheers
dim

On Wed, 24 Oct 2001, Evan Swanson wrote:

> 
> I wrote an application that for Tomcat 3.2 running on window. In the HTML
> the is a reference (  ) to the filename. 
> When I run this on windows I get a popup "save as" selection box. 
> When I run this on Tomcat4.0 on Unix it no longer gives me the selection
box
> but instead displays the data on the screen.
> 
> Is this a difference between TC32 adn TC40 or Unix / Windows.
> Is this configurable.
> 
> 
> Thanks in advance.
> 
> 



File Download - CSV question

2001-10-25 Thread Evan Swanson



I wrote an application that for Tomcat 3.2 running on window. In the HTML
the is a reference (  ) to the filename. 
When I run this on windows I get a popup "save as" selection box. 
When I run this on Tomcat4.0 on Unix it no longer gives me the selection box
but instead displays the data on the screen.

Is this a difference between TC32 adn TC40 or Unix / Windows.
Is this configurable.


Thanks in advance.




File Download - CSV question ****

2001-10-24 Thread Evan Swanson


I wrote an application that for Tomcat 3.2 running on window. In the HTML
the is a reference (  ) to the filename. 
When I run this on windows I get a popup "save as" selection box. 
When I run this on Tomcat4.0 on Unix it no longer gives me the selection box
but instead displays the data on the screen.

Is this a difference between TC32 adn TC40 or Unix / Windows.
Is this configurable.


Thanks in advance.




**** File Download - CSV question ****

2001-10-24 Thread Evan Swanson

I wrote an application that for Tomcat 3.2 running on window. In the HTML
the is a reference (  ) to the filename. 
When I run this on windows I get a popup "save as" selection box. 
When I run this on Tomcat4.0 on Unix it no longer gives me the selection box
but instead displays the data on the screen.

Is this a difference between TC32 adn TC40 or Unix / Windows.
Is this configurable.


Thanks in advance.