Context redploying

2005-03-06 Thread jesper
Host name=foo appBase=/home/foo autoDeploy=true/ in CATALINA_HOME/conf/Catalina/foo/context.xml.default Context docBase=/home/foo reloadable=true / /home/foo/WEB_INF/web.xml /home/foo/META-INF/context.xml Does not reload context after changes made to web.xml I can only make tomcat reload

Mime-mapping to trigger e-mail client

2005-03-06 Thread Rob Hunt
I've got RFC822 e-mail messages stored in a database. I'd prefer *not* to write (or rely on) an email-to-HTML converter. Instead, I'd like to serve the content as-is and have the client's browser recognize the mime type and trigger an e-mail client. My question is, what mime-mapping will

load-on-startup servlet needs access

2005-03-06 Thread Darren Govoni
Hi, I wasn't able to do a full text search of archive message bodies on this, so pardons if its old problem. I have a servlet that I designate to load-on-startup, but that servlet calls a class that needs to access the tomcat server to get resources. It just hangs because the server is not ready

Re: load-on-startup servlet needs access

2005-03-06 Thread Tim Funk
If you are performing a http request during init() - you are out of luck. If you need to load resources (plain old files) - you can use ServletContext.getResourceAsStream() -Tim Darren Govoni wrote: Hi, I wasn't able to do a full text search of archive message bodies on this, so pardons if its

Re: load-on-startup servlet needs access

2005-03-06 Thread Darren Govoni
Darn it. Thanks anyway. Well, I think it makes a lot of sense to delay loading some servlets until AFTER the server is up and running. Maybe soon we will see such an operation. maybe? load-on-startup-100/load-on-startup On Sun, 2005-03-06 at 10:00 -0500, Tim Funk wrote: If you are

application can not reconnect when database restarts

2005-03-06 Thread Bhavesh Kumar
Hi, I am using Apache Tomcat/4.1.27. Problem: when datbase restarts connection is not established. Connection pool is done by Tomcat using DBCP. Context congiguration under server.xml file is as Context path=/MyWebApp docBase=MyWebApp debug=0 reloadable=true Logger

error-page help on 5.5.7

2005-03-06 Thread Darren Govoni
Hi, I tried adding. error-page error-code401/error-code location/error.jsp?type=401/location /error-page to my web.xml page (it was in the proper location, etc.) but my server still produces the default error page. When I tried on my earlier 5.0.25 tomcat, it wouldn't even bring up my

Re: error-page help on 5.5.7

2005-03-06 Thread Chuck Williams
Darren Govoni writes (3/6/2005 7:16 AM): Hi, I tried adding. error-page error-code401/error-code location/error.jsp?type=401/location /error-page to my web.xml page (it was in the proper location, etc.) but my server still produces the default error page. When I tried on my earlier 5.0.25

RE: Tomcat on Cygwin

2005-03-06 Thread Benson Margulies
You aren't going to accomplish this by 'running tomcat under Cygwin'. The Java VM is not a cygwin application, it's a Win32 application. What you need to do is build a JNI library that links to the cygwin DLL and is callable from Java. -Original Message- From: Rahul Joshi [mailto:[EMAIL

setting download file name

2005-03-06 Thread Dr NoName
Hi all, I am trying to make link to a dynamically generated zip file which the user can download. It links to a jsp page like so: a href=audio_download.jspDownload Audio/a In audio_download.jsp, I have the following code to generate the zip: jsp:useBean scope=session id=myLatestAudioFiles

Re: setting download file name

2005-03-06 Thread Darren Govoni
Try this. I used it for JNLP, but it should work for zip. Just replace .jnlp with .zip String fileName = request.getServletPath(); fileName = fileName.substring(fileName.lastIndexOf(/) + 1); fileName = fileName.substring(0, fileName.indexOf(.)) + .jnlp; response.addHeader(Content-Disposition,

Re: error-page help on 5.5.7

2005-03-06 Thread Darren Govoni
Thanks for the response. I tried many variations. Nothing works for me (running linux, jdk1.5.0_01). I also added an error-page clause to the tomcat web.xml as well as my webapp. It always jumps to the default page. Here's what mine looks like. Wish it worked. :( web-app

Re: setting download file name

2005-03-06 Thread Dr NoName
that works. thanks. Eugene --- Darren Govoni [EMAIL PROTECTED] wrote: Try this. I used it for JNLP, but it should work for zip. Just replace .jnlp with .zip String fileName = request.getServletPath(); fileName = fileName.substring(fileName.lastIndexOf(/) + 1); fileName =

Re: error-page help on 5.5.7

2005-03-06 Thread Darren Govoni
I reverted back to 5.0.25 and it sorta works. Using Netscape on linux. 5.5.7 does not work for me. Now, however, when I attempt to access a resource protected by BASIC HTTP authentication. It DOES NOT prompt me for credentials, but rather forwards to my error-page regardless. Yuck! That's not

Re: error-page help on 5.5.7

2005-03-06 Thread Chuck Williams
Darren Govoni writes (3/6/2005 3:27 PM): I only want it to forward to error-page on a code 401 _when the login attempt fails_ and it should prompt the user for that, which it doesn't. Oh, this is for a login error? I use FORM authentication which provides a form-error-page in the

RealmBase Unix Script

2005-03-06 Thread Ole Ersoy
Hey everybody, I'm trying to get the following script to digest a password for me using SHA: #!/bin/sh _CLASSPATH=$CATALINA_HOME/server/lib/catalina.jar _CLASSPATH=$_CLASSPATH:$CATALINA_HOME/common/lib/jmx.jar _CLASSPATH=$_CLASSPATH:$CATALINA_HOME/bin/commons-logging-api.jar java -classpath

Re: error-page help on 5.5.7

2005-03-06 Thread Darren Govoni
Thanks Chuck. This approach works better, although I would think regardless of the auth form, the redirect to error page would be independent. Any idea how to do FORM based auth from a Java client? I was using Basic like this: On Sun, 2005-03-06 at 17:04 -0800, Chuck Williams wrote: Darren

Re: error-page help on 5.5.7

2005-03-06 Thread Darren Govoni
On Sun, 2005-03-06 at 20:47 -0500, Darren Govoni wrote: Thanks Chuck. This approach works better, although I would think regardless of the auth form, the redirect to error page would be independent. Any idea how to do FORM based auth from a Java client? I was using Basic like this:

-Dcatalina.base not working

2005-03-06 Thread Karsten Ohme
Hello, I tried to set the the CATALINA_BASE directory so that multiple user can use their own configuration. I set the environment variable e.g.: set CATALINA_BASE=C:\user1\tomcat then like mentioned in the documentation: catalina.bat start -Dcatalina.base=%CATALINA_BASE% But still all logs are

Re: error-page help on 5.5.7

2005-03-06 Thread Chuck Williams
Darren Govoni writes (3/6/2005 5:48 PM): On Sun, 2005-03-06 at 20:47 -0500, Darren Govoni wrote: Thanks Chuck. This approach works better, although I would think regardless of the auth form, the redirect to error page would be independent. I would think so to, but it seems that

Re: Tomcat 5.5.4: Define a default application w/ Context Descriptors?

2005-03-06 Thread Chad Darby
Hi All, Thanks to info from Jake Kjome, I can define a default application by naming the context descriptor file ROOT.xml. Hope this is useful to another developer since it is not listed in the Tomcat 5.5 documentation. Cheers! // Darby --- Chad Darby [EMAIL PROTECTED] wrote: Hi All, I

Re: Keep Alive

2005-03-06 Thread Joel
On Wed, 02 Mar 2005 16:55:48 -0800 Alex Chen [EMAIL PROTECTED] wrote I am using Tomcat as my web server. I am using AXIS for SOAP. I notice via ethereal that the are a lot of port opening from the client side for the HTTP (SOAP) requests. I would like to keep the socket

Re: load-on-startup servlet needs access

2005-03-06 Thread Shankar Unni
Darren Govoni wrote: How can I have my servlet loaded on startup, but after the web server is up and running? Not possible? Well, you can always start a thread that does this initialization, and return. Then, when the full Tomcat initialization is complete, your thread will run to completion

HTTPS, port 443 firewall

2005-03-06 Thread Paul Wallace
Hi, For HTTPS must port 443 be open on a firewall, or is traffic sent/received on port 80 (or defined HTTP port) and redirected internally? Do 'standard' firewalls leave open this port by default? Thanks Paul. - To