We are running Tomcat as a standalone server on Linux. We aren't using
Apache for a front-end b/c we feel we don't need it. One nice thing that
Apache did offer was that it would start as root, bind to port 80 and then
drop privileges. Is this possible with Tomcat as well?
Thanks,
Matt
What kind of errors are you having? I was able to configure 2.0.47 with
Tomcat 4.1.24 and 5.0.6 (load-balanced) on Win2K with no problems. I don't
have a WinXP box to try this on, but I'm fairly confident it would work (I
have 2.0.47 with 4.1.27 working at home on XP).
Here's the doc I used to
to secure the entire Tomcat server with
Apache? I tried using .htaccess files, but I'm sending all (/*) requests to
Tomcat, so I'm guessing I have to a Tomcat Realm. Is it possible to change
something in server.xml to secure all apps?
Thanks,
Matt
-Original Message-
From: Raible, Matt
Anyone know where I can download mod_jk-2.0.47.so for Apache 2.0.47 on RH 9?
The closest I could find was 2.0.46 for RH 7.2 at: http://tinyurl.com/j6hf
Thanks,
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I have the following in my web.xml and it works fine for me on 5.0.4:
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/login.jsp?error=true/form-error-page
/form-login-config
Maybe this will help:
tags:xhtmlbasic xmlns:tags=urn:jsptagdir:/WEB-INF/tags
xmlns:jsp=http://java.sun.com/JSP/Page;
xmlns:fmt=http://java.sun.com/jstl/fmt_rt;
xmlns=http://www.w3.org/1999/xhtml;
jsp:directive.page contentType=text/html /
http://raibledesigns.com/tomcat/ssl-howto.html
HTH,
Matt
-Original Message-
From: Sudhir Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 6:46 AM
To: [EMAIL PROTECTED]
Subject: SSL configuration for Apache HTTP server
hello,
How to configure SSL in apache HTTP
It's my understanding that JSTL is an integral part of any JSP 2.0-compliant
container. To me, this means that I shouldn't have to include
jstl.jar/standard.jar in my app's WEB-INF/lib folder. I would also assume
that I don't need to declare the JSTL tags as a directive:
%@ taglib
for the JSTL core taglib in the examples in the spec.
-Tim
Raible, Matt wrote:
It's my understanding that JSTL is an integral part of any JSP
2.0-compliant
container. To me, this means that I shouldn't have to include
jstl.jar/standard.jar in my app's WEB-INF/lib folder. I would also assume
that I
I meant clear and to the point *answer* not error. ;-)
-Original Message-
From: Raible, Matt
Sent: Thursday, July 17, 2003 7:52 AM
To: 'Tomcat Users List'
Subject: RE: JSP 2.0 in Tomcat 5.0.4
Understood - thanks for the clear, and to the point error.
Doesn't that mean
I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:
java.sql.SQLException: Cannot load JDBC driver class 'null'
This app works beautifully in Tomcat 4.1.24 and I can put the exact same
directory, app.xml and jdbc driver in common/lib and it works. Has
the log4j system properly.
Any help is appreciated.
Matt
-Original Message-
From: Raible, Matt
Sent: Tuesday, July 15, 2003 2:53 PM
To: '[EMAIL PROTECTED]'
Subject: cannot load db driver in Tomcat 5.0.4
I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so
=infoCopying ${webapp.name}.xml to
${tomcat.home}/webapps/echo
copy tofile=${tomcat.home}/webapps/${webapp.name}.xml
file=metadata/web/tomcat-context.xml /
Matt
-Original Message-
From: Raible, Matt
Sent: Tuesday, July 15, 2003 3:17 PM
To: '[EMAIL PROTECTED]'
Subject
Try adding a validation query, for example:
parameter
namevalidationQuery/name
valueSELECT * FROM USER_TABLE/value
/parameter
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 6:46 AM
To: [EMAIL
you think the validation query wille re initialize my
pool ?
Raible, Matt [EMAIL PROTECTED]
09/07/2003 14:49
Veuillez répondre à Tomcat Users List
Pour : 'Tomcat Users List' [EMAIL PROTECTED]
cc :
Objet : RE: dbcp connection and database restart
Try adding
As part of the servlet 2.2/2.3 spec, you are not allowed to use a
servlet/action as a welcome-file - only .html or .jsp (I think). This is
changing in the servlet 2.4 spec.
Matt
-Original Message-
From: Jeroen Breedveld [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 8:28 AM
You have 2.2 in the first part of your DTD:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
Change it to:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
I'm having trouble using Tomcat's Ant Tasks. I've written up a wiki page on
how I'm using them and the problems I'm experiencing. Any help is
appreciated.
http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks
Thanks,
Matt
Here's my realm from Tomcat 4.1.x
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://localhost:3306/appfuse?autoReconnect=true
connectionName=test connectionPassword=test
userTable=app_user
All you can get is their username - using request.getRemoteUser(). To get
the rest of their information, you'll have to query the database with
handwritten code.
Matt
-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 3:06 PM
To: Tomcat Users List
Try this:
requestURI='%= request.getContextPath() + /results.do%'
You should probably ask these display tag related questions on the display
tag user list:
http://lists.sourceforge.net/lists/listinfo/displaytag-user
Matt
-Original Message-
From: Mark F [mailto:[EMAIL PROTECTED]
Sent:
I attempted to upgrade my Tomcat 4.1.24-based application to Tomcat 5.0.2
this morning and found a few issues:
1. I had to put mail.jar and activation.jar into common/lib so my log4j's
SMTPAppender would work.
2. I had to copy log4-*.jar into common/lib to workaround this error:
Caused by:
You can stop contexts in the manager app (/manager/html) with Tomcat 4.1.x.
-Original Message-
From: BOULAY Arnaud [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: webapps stopped à startup
small tip please :
How can I tell Tomcat that I
Here's how to setup Tomcat with a JAASRealm to talk to an NT Domain - maybe
this will help:
http://tinyurl.com/e5tp
Matt
-Original Message-
From: Loyd Bacani [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:50 AM
To: Tomcat Users List
Subject: Re: How to setup JAASRealm in
How about a code sample:
http://tinyurl.com/e61q
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:49 PM
To: Tomcat Users List
Subject: RE: can i send emails using servlets to yahoo or hotmail
addresses
Howdy,
See the JavaMail Sessions
1) Your Filter will not get called, since authentication happens before
Filters (you'd need to use a Valve, but then you are locked into Tomcat).
In my experience, and my current working app, this is not the case. The
following code works for me in a filter (mapped to /*) to auto-login a
Here's what I do as a workaround for this. I'm sure you could easily
enhance this to convert all your request parameters into a URL with
name/value pairs.
%@ include file=/common/taglibs.jsp%
%@ page import=org.apache.struts.util.MessageResources,
org.apache.struts.Globals%
%
You could put a filter on /* in your app, and if the user is routed to the
login page (check the URL for an indexOf(login.jsp)) - then set a request
variable containing the parameter you want to save.
Matt
-Original Message-
From: Val T. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10,
Ever heard of Google?
http://www.google.com/search?q=struts
-Original Message-
From: Anitha K Rao [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 4:12 AM
To: Tomcat Users List
Subject: Struts Framework
Hi,
Whats This Struts Framework?Kindly give me info in this domain.
Ciao
I have a way that's been working for me - see it at:
http://raibledesigns.com/training/index.jsp?topic=rememberMe
HTH,
Matt
-Original Message-
From: Joël Wijngaarde [Us Media] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 6:14 AM
To: Tomcat Users List
Subject: Re: Auto login
form ... method=post ...
-Original Message-
From: Vinh Tran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:04 PM
To: [EMAIL PROTECTED]
Subject: Container Managed Authentication
All:
I am using CMA with Tomcat4/Apache1.3. I have a form-based login page
pointed at
A while back, I e-mailed this list regarding Tomcat - Oracle connectivity
issues across a firewall. Basically, the firewall would kill connection
pool-based connections after 90 minutes. We finally figured out a solution
(rather than workarounds) - and the best news is - it's from the Oracle
It's all relative to CPU and RAM IMO.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 9:19 AM
To: [EMAIL PROTECTED]
Subject: What is the maximum session handling capability
In the past, I've used Tomcat for very small projects. But, now
Here's how I do it - and I generally use SHA as my algorithm:
/**
* Encode a string using algorithm specified in web.xml and return the
* resulting encrypted password. If exception, the plain credentials
* string is returned
*
* @param password Password or other
I'd recommend WEB-INF/classes - then it's in the classpath.
-Original Message-
From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 6:57 AM
To: 'Tomcat Users List'
Subject: RE: placement of properties files
I think web-inf folder - since tomcat wont serve
We've recently tried moving our home directories from each individual Unix
(Solaris) server to a netfiler that we can map as an NT drive. It emulates
NTFS (so we can map drives from our Win2K machines), and also behaves just
like a Unix home directory. I have tomcat installed in my home
The 4.1.x version of Tomcat has an Administration app that's written using
Struts.
-Original Message-
From: Chin, Ed [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:29 PM
To: 'Tomcat Users List'
Subject: STRUTS in Tomcat?
Is STRUTS included in the distribution of
I experienced lots of OutOfMemoryError's with 4.1.18. I don't think I've
seen any since upgrading to 4.1.24.
HTH,
Matt
-Original Message-
From: Galbayar Dorjgotov [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 6:26 PM
To: Tomcat Users List
Subject: URGENT:
To: Raible, Matt
Subject: RE: Tomcat 4.1.24- do not follow symbolic link- works fine
in4.0 .6
Hi Matt,
I tried your suggestion as follows but still symbolic link is
not working.
!-- Tomcat Examples Context --
Context path=/examples docBase=examples debug=0
I have an issue where my db connection (to Oracle 9i) times out after 90
minutes of inactivity due to a firewall. I've found a workaround by
scheduling a cron job that pings my datasource. However, it only pings my
connection pool, but my JDBCRealm. For my connection pool, my JDBC Driver
is:
I've seen this same issue and I'm interested in a solution as well.
Thanks,
Matt
-Original Message-
From: Salina Cheung [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 9:00 AM
To: [EMAIL PROTECTED]
Subject: connection pool
Hi,
When tomcat reloads class files, it
http://raibledesigns.com/tomcat/index.html
Step 6: Configuring Private JVMs.
HTH,
Matt
-Original Message-
From: Richie Chauhan [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 10:31 AM
To: Tomcat
Subject: Anygood Howto on Multiple Virtual Hosts Apache, mod_jk and
Tomcat
Context path= docBase=ROOT debug=0
Resources
className=org.apache.naming.resources.FileDirContext
allowLinking=true caseSensitive=true /
...
-Original Message-
From: Ajay Agrawal [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:38 PM
To: Tomcat Users List
In server.xml - where you define the context for your application or at the
global level next to similar Resources entries.
HTH,
Matt
-Original Message-
From: Ajay Agrawal [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 3:16 PM
To: Raible, Matt
Subject: RE: Tomcat 4.1.24- do
Just so 4.1.24 doesn't get a bad rap - I'm having awesome success with it
over 4.1.18. I'm not using the LE version, but I am running it on JDK
1.4.1. I used to get OutOfMemory errors all the time with 4.1.18, but
haven't had any since the upgrade.
The admin app doesn't work (details at
In this economy, I usually ask the client how much they're willing to spend.
Usually they will fess up and then you can decide from there. Telling them
how much you (truly) want will usually result in yeah, right.
Matt
-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]
Sent:
Most clients seem to want to pay b/w 30 and 50, from what I've seen. When
I've asked for more than that - I don't get any returned e-mails or phone
calls.
In Florida, where I've been hoping to find my next job, it's more like
20-40/hour. :(
Matt
-Original Message-
From: Micael
Currently, I live in Denver, Colorado and hope to be living in West Palm
Beach in the next 6 months.
-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 4:32 PM
To: Tomcat Users List
Subject: RE: [OT] Contract Work Hourly Rates
Where are you
I've upgraded this morning to Tomcat 4.1.24 from 4.1.18. On 4.1.18, I was
connecting to Apache using the following configuration in server.xml:
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
acceptCount=10 bufferSize=2048 connectionLinger=-1
connectionTimeout=-1
Why not just add a filter that has the same url-pattern as your protected
resource. I do this, and if there's not a user object in the session, I
populate it from a database.
Example at http://tinyurl.com/7xb1
HTH,
Matt
-Original Message-
From: awc [mailto:[EMAIL PROTECTED]
Sent:
);
session.setAttribute(Constants.USER_KEY, user);
Raible, Matt wrote:
Why not just add a filter that has the same url-pattern
as your protected
resource. I do this, and if there's not a user object in
the session, I
populate it from a database.
Example
a
Tomcat class and create your own authenticator - you'll have to add tomcat
jars to your project.
HTH,
Matt
-Original Message-
From: Raible, Matt
Sent: Friday, March 21, 2003 4:12 PM
To: 'Tomcat Users List'
Subject: RE: Custom JDBCRealm
Nope, I just use form-based authentication
You have to configure form-based authentication and try to access a
protected resource for this to work.
Matt
-Original Message-
From: Lanto Randriamiharisoa
[mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 1:34 AM
To: [EMAIL PROTECTED]
Subject: configuring j_security_check
I've been able to implement Remember Me functionality using form-based
authentication and cookies on Tomcat 4.1.18.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg86636.html
An example app (requires Ant 1.5.1 to build and J2EE_HOME to be set) is
available at:
: Will Hartung
To: Tomcat Users List
Sent: 3/5/2003 4:11 PM
Subject: Re: remember password HOW-TO?
From: Raible, Matt [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 2:36 PM
Subject: RE: remember password HOW-TO?
I've been able to implement Remember Me functionality using
form-based
authentication
-Original Message-
From: Will Hartung
To: Tomcat Users List
Sent: 3/5/2003 6:56 PM
Subject: Re: remember password HOW-TO?
From: Raible, Matt [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 4:36 PM
Subject: RE: remember password HOW-TO?
Actually, it *is* using form-based security. I just do
I attempted to migrate my application to 5.0.1 today for kicks. I know that
c:out value=${...}/ has been replaced by ${...}, but what about
c:forEach .. - how do I use this with JSP 2.0? Isn't it the same as using
JSTL?
Thanks,
Matt
-Original Message-
From: Remy Maucherat
request.isUserInRole(rolename) ??
-Original Message-
From: laurent marot [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 9:02 AM
To: Tomcat Users List
Subject: realm getRole() method ?
hi all,
using realm authentication is there a method to get
remoteUser role
web.xml - an example:
error-page
error-code500/error-code
location/error.jsp?code=500/location
/error-page
-Original Message-
From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 1:24 PM
To: Tomcat Users List
Subject: HTTP Status
Here's what I have in my context to make it work:
Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionName=cn=Manager,dc=raibledesigns,dc=com
connectionPassword=secret
connectionURL=ldap://drevil:389;
userPassword=userPassword
I have the following security role in my web.xml file:
security-role
descriptionRole to allow authentication/description
role-nameAdministrator/role-name
/security-role
In my JDBCRealm, I have role_name defined for the user as:
USERID ROLENAME
Tomcat is case sensitive everywhere except where the servlet
spec says it
is explicitly not case sensitive (such as request.getHeader()). That
includes things like matching role names.
So you're saying that matching role names is NOT case sensitive. I'm
guessing this from my own
Here's how I've done it -
First of all, I don't use j_security_check as my action, but rather
auth/ which maps to a LoginServlet. That servlet does some other things,
but here's the relevant code. The StringUtil.encodeString(password) method
changes to cookie to be base64 encrypted. Not a very
request.getRequestURL() if you're using Servlet 2.3.
-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 2:21 AM
To: Tomcat List
Subject: How do i get the URL ... ?
Hi,
Lets say I have a Welcome.jsp page. How can i get the
for the tasks defined in catalina-ant.jar. Does anyone know
where they are?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/sample/build.xml
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Servlets.com has user-submitted reviews on their ISP Reviews page:
http://www.servlets.com/isps/servlet/ISPViewAll
I use www.kgbinternet.com and it's worked great for me, cheap too!
Matt
-Original Message-
From: Steven J. Owens [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18,
Here's how I solved your issue:
http://tinyurl.com/5s4e
HTH,
Matt
-Original Message-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 8:32 AM
To: Tomcat Users List
Subject: Re: Form based security
Ok, I figured most of the things out.
My
Here's how I've done it:
http://tinyurl.com/5s4x
HTH,
Matt
-Original Message-
From: Jon Roberts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 8:55 AM
To: Tomcat Users
Subject: startup script
Does anybody have an /etc/init.d style startup script for tomcat?
Struts can hook into container-managed security - it has support for roles
in it's logic:present ... tag, in a roles attribute on it's action
mappings, and also in Tiles for displaying different pages based on roles.
It really does nothing special - just hooks into what's already there. If
you're
I've never used a log4j.xml file, just a log4j.properties file. If your
log4.xml file is in WEB-INF/classes and log4j.jar in WEB-INF/lib - I
wouldn't know how to help you. I'd venture a guess that it has something to
do with your logging configuration in your .xml file.
HTH,
Matt
parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
/parameter
-Original Message-
From: Tom O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 2:25 PM
To: [EMAIL PROTECTED]
Subject: MySql connection pool
I filed a bug on this, but the error only occurs when I try to set my app as
the root context (path=).
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16762
BTW, my app and db connection still works, just errors in the log. This bug
includes a workaround - placing my app in the webapps/ROOT
Yes. When it was in webapps/cct with a path of , it appeared that Tomcat
was trying to load it twice. Once I configured 2 cct.xml files in webapps,
one with path=/cct and one with path=, the problem went away.
Matt
-Original Message-
From: Sean Dockery [mailto:[EMAIL PROTECTED]]
Eclipse has a nice tomcat plugin that you can set breakpoints in servlets...
works awesome for me.
-Original Message-
From: chris schild [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 5:38 PM
To: tomcat
Subject: SendMailServlet - problem, debugging tips
Would
If you map the filter to the same url-pattern as your protected resource, it
will be called immediately after someone authenticates.
HTH,
Matt
-Original Message-
From: Ralf Lorenz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 6:59 AM
To: Tomcat Users List
Subject: Re:
Users List
Cc: Raible, Matt
Subject: RE: [BUG?] Can't set my app as root app without errors
looks like this conflicts with the ROOT context.
hence it will get loaded twice. There are a couple of ways around it.
I believe the path ROOT is hardcoded in the Tomcat code base.
1. Put your
Here's an Ant task that can be very helpful in these situations:
target name=start.tomcat
java classname=org.apache.catalina.startup.Bootstrap fork=yes
jvmarg value=-Dcatalina.home=${tomcat.home}/
arg value=start/
classpath
fileset
manager
stop Stop Catalina
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 8:58 AM
To: 'Tomcat Users List'
Subject: RE: debugging help
Here's an Ant task that can be very helpful in these situations:
target
JSTL only works with JSP 1.2 - Tomcat 3.x only supports JSP 1.1.
HTH,
Matt
-Original Message-
From: Chad Pettit [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 9:00 AM
To: [EMAIL PROTECTED]
Subject: Backward migration from Tomcat 4.1.18 to Tomcat 3.2.4
I developed an
Try using an amp; in place of the ; in your connectionURL:
connectionURL=jdbc:mysql://javadev.logic.bm/steve?user=useramp;password=pa
ssword
-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 11:08 AM
To: [EMAIL PROTECTED]
Subject:
I can't seem to set my application (cct) as the root application for Tomcat.
If I use Context path= ..., my app appears to load fine, but then Tomcat
seems to attempt to load it a second time, and I get the following error:
WARN [main] JDBCExceptionReporter.logExceptions(35) | SQL Error: 0,
?] Can't set my app as root app without errors
are you sure this has to do with your ROOT context?
This looks like an error with your JDBC driver. It tries to
load a class that isn't defined.
why don't you post your server.xml
Filip
-Original Message-
From: Raible, Matt
The problem is that your initial request is to the same page as your
form-login-page. The initial request should be do a protected resource,
then the user will be prompted for the login page, and then upon successful
authentication - they will be routed to the initial request.
I usually have an
I've discovered that this problem is related to a 90-minute timeout on our
firewall. Tomcat sits outside of the firewall, and Oracle resides inside.
Since there's no activity for 90 minutes, it closes the connection. Anyone
know of a workaround (+ sample code) for this? I'm assuming a ping of
I've tried adding the following and I still have the same problem as Ryan.
parameter
namevalidationQuery/name
valueSELECT 1 FROM DUAL/value
/parameter
When I check my 4.1.18 Tomcat server every morning I get:
WARN [Ajp13Processor[11009][7]]
Will it work for 24 hours is the question... ;) If it does, maybe I should
change to a different Oracle JDBC Driver. Do you have any timeout
limitations set on the connecting user? We do, and I'm wondering if that's
causing my problems.
Thanks,
Matt
-Original Message-
From: Ryan
We also use this setup so that we can run multiple instances of Tomcat
behind one Apache server - we just setup different virtual hosts in Apache.
I agree that Apache isn't doing much in this case, but it is helping us...
Matt
-Original Message-
From: Pascal Forget [mailto:[EMAIL
I keep getting the following error in my catalina.out file. This same
application starts up just fine when it has a context path of /cct, but I
get the errors when I use path=.
Any ideas?
WARN [main] JDBCExceptionReporter.logExceptions(35) | SQL Error: 0,
SQLState: null
ERROR [main]
I don't believe this is possible in 4.x as the 2.3 Servlet Spec does not
allow specifing a welcome-file as a servlet. With 2.4 and Tomcat 5.x, you
should be able to do this.
HTH,
Matt
-Original Message-
From: Liq Wnq [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 11:40
Since it's only a client-side variable - the only way I know of is to use
Javascript and write a hidden field.
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=get+timezone+javascri
pt
-Original Message-
From: Jason Pyeron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21,
I am using Tomcat's JDBCRealm as well as a DBCP Connection pool. I am
connecting to Oracle 9, and everything works fine - for about 24 hours.
I've experienced this with MySQL and adding autoReconnect=true to the
connectionURL fixed the problem. However, adding this to Oracle's
connectionURL
jdbc:oracle:thin:username/password@host:1521:sid
is an invalid URL. password doesn't belong in the url
at least I don't think so :)
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
www.filip.net
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent
Use Ant to build everything - and tell it where you want your compiled
classes to end up.
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 10:07 AM
To: Tomcat Users List
Subject: Re: Classes not being found in app's WEB-INF directory.
Lior
I don't believe Tomcat 4.1.x supports servlets as the welcome page - you
could, however, put an index.jsp into your webapp that does a
response.redirect to your servlet.
The Servlet 2.4 spec supports servlets as welcome files. Can you hit your
servlet if you type it in the URL?
Matt
I am using DBCP and a JDBCRealm with Tomcat 4.1.18. Everytime I re-deploy
my application (using Ant), Tomcat restarts because it detects that classes
have been refreshed. However, it also created two additional database
connections - so after re-deploying for a long time (an hour) - I get up to
96 matches
Mail list logo