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
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
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
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
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
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
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
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
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
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
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,
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
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 =
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
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
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
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
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:
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
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
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
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
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
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
24 matches
Mail list logo