source for JDBCRealm?

2005-02-09 Thread Stephen Charles Huey
I've been looking around the Apache/Jakarta site, and I can't find the Realm-related stuff (I understand it's separate from Tomcat). We're running Tomcat 4, and I'd like to hack the query JDBCRealm sends to Oracle so username checks are not case insensitive. Btw, which JAR in my Tomcat

case sensitivity with JDBCRealm

2005-02-08 Thread Stephen Charles Huey
Here's our server.xml's Realm element: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@192.168.1.144:1523:orcl connectionName=scott connectionPassword=tiger userTable=users userNameCol=username

certificate question for 2 domains pointing to same website

2005-02-04 Thread Stephen Charles Huey
Right now, we have one domain that goes to our web application, and we want to another new domain to point to the same web app (it already does). Naturally, if you access the site via the new domain, it tells the browser that the certificate issued by the site doesn't match the name of the site,

Re: AW: certificate question for 2 domains pointing to same website

2005-02-04 Thread Stephen Charles Huey
Wait a second...Tomcat will determine which cert to send down based upon the IP address that the browser went to? I guess that makes sense...so does the web server never get to see what domain the browser was looking up to come to the site, or is that info available? I'm just trying to figure

SocketException: Too many open files

2005-02-01 Thread Stephen Charles Huey
I'm running some simple but fast-pounding test programs against our Tomcat server from a machine on the same network, and we've been tuning our database, etc, based on this. But right now, I'm seeing a new one coming out of our Java code whenever we try to open a URL: java.net.SocketException:

Re: SocketException: Too many open files

2005-02-01 Thread Stephen Charles Huey
List tomcat-user@jakarta.apache.org Date: Wed, 2 Feb 2005 00:52:56 +0100 Subject: Re: SocketException: Too many open files On Tue, 01 Feb 2005 17:29:51 -0600, Stephen Charles Huey [EMAIL PROTECTED] wrote: I'm running some simple but fast-pounding test programs against our Tomcat server from

Emergency: make Tomcat forward

2005-01-24 Thread Stephen Charles Huey
I have Tomcat 4.1.27 on a Linux box at a particular public IP address, and I want to make it forward ALL requests to a Tomcat on a Windows box at another public IP address. Over the weekend, we changed the DNS to the Linux box, but now we need to roll back to the Windows box, and we already

Does JDBCRealm close connections?

2005-01-24 Thread Stephen Charles Huey
Hey there--just wondering if JDBCRealm with Tomcat 4 ever closes connections it opens...I'm assuming it can open up more than one connection to the database if traffic gets heavy (because we think we're seeing that, though it's hard to tell for sure). If so, when does it go about closing those

how many connections can tomcat handle?

2005-01-18 Thread Stephen Charles Huey
We're running Tomcat 4.1.27 on a pretty up-to-date Red Hat 8. I'm wondering what usually determines the number of connections Tomcat can handle. Would it typically be Tomcat breaking first, or just the server itself trying to deal with so many connections? Would it have to do with memory, or

Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread Stephen Charles Huey
We just installed Tomcat 4 on 2 Red Hat servers, and we have a BigIP load balancer in front of them. In troubleshooting an issue, the guy working with our BigIP said that when he was running Apache on either of the Linux servers, the load balancer could tell that the http service was running, but

question on session info in manager webapp

2005-01-17 Thread Stephen Charles Huey
When I go to /manager/html and then click on the session count for one of my webapps, it displays this: OK - Session information for application at context path /testwebapp Default maximum session inactive interval 30 minutes 120 - 130 minutes:4 sessions If the default timeout is set to 30

heap size params on linux

2005-01-03 Thread Stephen Charles Huey
Our script for installing Tomcat as a service on Windows is down below. We're moving to Linux, so I'm wondering where we specify the heap size parameters (-Xmx and -Xms) for the Tomcat on Linux. Would the correct place be in the startup.sh file? Thanks! D:\tomcat\bin\tomcat.exe -install

Re: heap size params on linux

2005-01-03 Thread Stephen Charles Huey
(Optional) Java runtime options used when the start, 23 # stop, or run command is executed. 24 # On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote: Our script for installing Tomcat as a service on Windows is down below. We're moving to Linux, so I'm wondering where we specify

load balance with tomcat

2004-12-29 Thread Stephen Charles Huey
We're trying to install our existing web app on multiple machines and put a BigIP load balancer in front of them. Do we need to do anything different with Tomcat and/or our web app to get this load balancing to work, or should we basically be able to copy the Tomcat directory onto each machine

Where do I specify location of stdout and stderr?

2004-12-28 Thread Stephen Charles Huey
I'm trying to move my Tomcat directory from a Windows machine to a Linux box, and I've already modified the server.xml to take care of path differences, but I've noticed that stdout.log and stderr.log are no longer being generated in the logs directory (I can't find them!). Does anyone have any

Re: Where do I specify location of stdout and stderr?

2004-12-28 Thread Stephen Charles Huey
and stderr should go into some particular log files instead of getting lost into thin air? We need those log files, particularly when we're troubleshooting! Thanks... - Original message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat User tomcat-user@jakarta.apache.org Date: Tue

maxActive in server.xml's ResourceParams

2004-12-13 Thread Stephen Charles Huey
In Tomcat 4's server.xml, one of the ResourceParams elements is maxActive (set to 20 by default). I'm wondering if there's any reason why I wouldn't set this very high if I have a virtually unlimited number of users for our Oracle database...I'm not sure how much this applies to us since I don't

what to do about port for Tomcat 4 on Linux?

2004-12-08 Thread Stephen Charles Huey
I want to move to Tomcat 5 right now, but can't yet, and for the time being we need to move from Tomcat 4.1.23 on Windows to 4.1.31 on Red Hat, so I'm now facing a question of what to do about the port Tomcat runs on. I've read stuff online that suggests it's best to leave it at 8080 since 80 is

load balance standalone tomcat 4

2004-12-08 Thread Stephen Charles Huey
Is it actually possible to use a load balancing appliance (Big IP) with a couple of web servers running standalone Tomcat 4? Actually, I know it's possible...what I mean is, do I have to do anything special with Tomcat, or can I set each Tomcat up as if it was the only server, and then just put

help with out of memory error

2004-11-22 Thread Stephen Charles Huey
Is this just a really ambiguous error message, or are there some specific places I can be hunting for an issue: Nov 22, 2004 3:53:42 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread

RE: help with out of memory error

2004-11-22 Thread Stephen Charles Huey
-0500 Subject: RE: help with out of memory error Have you looked at this page? http://jakarta.apache.org/tomcat/faq/memory.html -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 4:50 PM To: Tomcat User Subject: help with out of memory error

problem - BindException: JVM_Bind: 80

2004-11-10 Thread Stephen Charles Huey
I'm seeing a strange error message. We only run Tomcat as a service on Windows 2000, and no IIS or anything else, so I can't see anything else holding onto port 80. Any idea what would be causing this? Would it be something as simple as choosing to Start or Restart the service when it's already

The CreateThread function failed for the following reason: Not enough storage is available to process this command.

2004-10-27 Thread Stephen Charles Huey
In the Event log on Windows 2000 Server, we're occasionally seeing a weird error showing up for Apache Tomcat 4.27: The CreateThread function failed for the following reason: Not enough storage is available to process this command. . We really don't know what's causing this. Is Tomcat (or

memory problem?

2004-10-27 Thread Stephen Charles Huey
We often have to restart Tomcat because of an ODBC issue (yes, we're switching databases as soon as we can). However, I've noticed this error occuring in the Windows 2000 Event Log in association with Apache Tomcat: The CreateThread function failed for the following reason: Not enough storage is

is tomcat failing?

2004-10-06 Thread Stephen Charles Huey
We're using Tomcat 4.1.27 and we have a main database that the web app uses most of the time, and then a small MySQL database that Tomcat is configured to use for basic authentication. We used to have trouble with the main db hanging up on us, so we had a little watch program running to restart

basic authentication

2004-10-04 Thread Stephen Charles Huey
Anybody have a clue as to why my basic authentication box would keep coming back at me 2-6 times before letting me in, even though I'm typing the correct username and password every single time? This is Tomcat 4.1.27 - To

RE: type in twice for basic authentication???

2004-10-03 Thread Stephen Charles Huey
: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 11:38 PM To: Tomcat Users List Subject: Re: type in twice for basic authentication??? Yeah, I need some major help on this to figure out what's going on! We have a Windows version and a Linux version of the database

type in twice for basic authentication???

2004-10-01 Thread Stephen Charles Huey
When my web app pops up a basic authentication box, I type in the username and password, and then it bounces back with blank text boxes asking for it again. Every time when I type them in a second time it then lets me in! What's going on? Here's what I have in my server.xml: Realm

Re: type in twice for basic authentication???

2004-10-01 Thread Stephen Charles Huey
- From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Date: Fri, 01 Oct 2004 17:10:32 -0500 Subject: type in twice for basic authentication??? When my web app pops up a basic authentication box, I type in the username and password, and then it bounces back with blank text

website going down

2004-08-31 Thread Stephen Charles Huey
We had a problem where our website would hang because Tomcat couldn't access the main database over DSN (on another machine), and it was a problem with our vendor's ODBC driver, so we moved to the Linux version (which was more stable). We had created a Watchdog program that would call a JSP with

DBCP connection pooling by default?

2004-08-16 Thread Stephen Charles Huey
The 8th post in this Javaranch.com thread suggests that Tomcat uses DBCP connection pooling by default: http://www.midrangeserver.com/mpo/mpo081502-story04.html That feature to indicate connection leaks sounds intriguing. I found the following in our server.xml and am wondering if this means we

Re: DBCP connection pooling by default?

2004-08-16 Thread Stephen Charles Huey
Whoops...I need an addendum. The post can be found here: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=13t=001073 - Original message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Date: Mon, 16 Aug 2004 13:06:13 -0500 Subject

installing tomcat 4.1.27 on linux

2004-08-12 Thread Stephen Charles Huey
We're moving Tomcat over to a Linux box, and we're under pressure to get it done as quickly as possible and put it into production right away even though none of us knows Linux all that well beyond me using Solaris back in my school days! So, I'm looking for Tomcat 4.1.27 for Linux, and I don't

Re: installing tomcat 4.1.27 on linux

2004-08-12 Thread Stephen Charles Huey
specific install. We have the same Tomcat install running on Solaris, Linux, and Windoze. -Robert Stephen Charles Huey wrote: We're moving Tomcat over to a Linux box, and we're under pressure to get it done as quickly as possible and put it into production right away even though none of us

RE: 1067 error when starting service after allocating more memory to JVM

2004-08-08 Thread Stephen Charles Huey
: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Sat, 7 Aug 2004 13:31:29 -0500 Subject: RE: 1067 error when starting service after allocating more memory to JVM From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Subject: 1067 error when starting service

RE: 1067 error when starting service after allocating more memory to JVM

2004-08-08 Thread Stephen Charles Huey
to the machine? - Original message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 8 Aug 2004 02:15:03 -0500 Subject: RE: 1067 error when starting service after allocating more memory to JVM From: Stephen Charles Huey [mailto:[EMAIL

1067 error when starting service after allocating more memory to JVM

2004-08-07 Thread Stephen Charles Huey
Hey, we've been running Tomcat 4.1.27 for a couple of years on our webserver, and we just upgraded the server from 2GB of memory to 3GB. We've been allocating 1GB to the JVM when installing Tomcat as a service, but now we'd like to do 2GB, so I just changed the two instances of 1024 to 2048 in

RE: session listener not listening

2004-07-16 Thread Stephen Charles Huey
Shapira Millennium Research Informatics -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 7:06 PM To: Tomcat User Subject: session listener not listening My session listener doesn't seem to be listening. At the top of my web.xml (before

RE: session listener not listening

2004-07-16 Thread Stephen Charles Huey
). - Original message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Fri, 16 Jul 2004 11:41:53 -0500 Subject: RE: session listener not listening I'm trying to add this session listener to a production site that often has over 2,000 concurrent users (according

session timeout: web.xml and setMaxInactiveInterval(int)

2004-07-15 Thread Stephen Charles Huey
My web.xml has the following: session-config session-timeout30/session-timeout /session-config However, when a user logs in, the following code in our app gets executed: HttpSession session = request.getSession(false); session.setMaxInactiveInterval(7200); I've

session listener not listening

2004-07-15 Thread Stephen Charles Huey
My session listener doesn't seem to be listening. At the top of my web.xml (before any servlet elements, and I have nothing like a filter or anything else before it), I have this: listener listener-classcentral.OurSessionListener/listener-class /listener Here is my listener

manager app: sessions

2004-07-14 Thread Stephen Charles Huey
I have read the Manager App HOW-TO at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html So, I'm accessing the following URL just like the example shows: https://www.(mydomain).com/manager/sessions?path=/ristmain I'm trying to interpret these results: OK - Session information

Re: manager app: sessions

2004-07-14 Thread Stephen Charles Huey
lower limit for the stats one line 1. Bob On Wednesday 14 July 2004 12:28 pm, Stephen Charles Huey wrote: I have read the Manager App HOW-TO at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html So, I'm accessing the following URL just like the example shows: https://www

session and connection timeouts

2004-07-06 Thread Stephen Charles Huey
Hello everyone, we're running Tomcat 4.1.27 and my conf/web.xml has a session-timeout of 30, which I understand should override the default 20 minutes. I'm wondering if it actually does, because I see here that someone is saying there's a bug in Tomcat 4 so that sessions always time out after 20

how many sessions in use?

2004-07-06 Thread Stephen Charles Huey
Is there any way to find out how many sessions are currently in use? I'm ultimately trying to get at how much memory is being used per session...if there's no way to really get at this without a profiler tool, do any of you use a particular one with Tomcat applications? JFluid, JProbe, etc?

basic authentication or not?

2004-06-17 Thread Stephen Charles Huey
In a nutshell, I'm wondering if it's better NOT to use basic authentication. We have over 10,000 regular users, and I think it would be good for us to move to a more standard login page instead of that authentication box that pops up. My question is, would we have to change a lot to do this? At

Re: basic authentication or not?

2004-06-17 Thread Stephen Charles Huey
Duh. I was looking in the general Tomcat web.xml--yes, in my app-specific one, we're using BASIC authentication. Ok, so Tomcat knows to use the additional MySQL database for authentication. Right now, if you go to www.ourDomain.com it'll make you authenticate and then it will forward you to

how to show System Unavailable page when Tomcat is down

2004-06-14 Thread Stephen Charles Huey
Though I'm capable of adding to the JSPs and servlets on an existing site, I'm no web server guru, so I'm having a hard time with this problem. Our database vendor's ODBC driver has issues, so occasionally we have to restart Tomcat (and maybe the driver) to get the website running again, and

Re: how to show System Unavailable page when Tomcat is down

2004-06-14 Thread Stephen Charles Huey
If we currently have Tomcat 4 running on Win 2000, would there be significant overhead to run Apache as well just so that we can put up an error page when Tomcat has to be restarted? Some of you mentioned I should try using a type 4 driver, and I Googled around to brush up on different types, and

emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
We reloaded the drives on our web server yesterday, but Tomcat keeps choking, and we think it's because not enough memory is allocated, and we're trying to get into the admin web application, but it keeps saying our password isn't correct. Even though I set a password during the install, there

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
. This is just my best guess, not a definitive fact. Good luck. Cheers, Rob Stephen Charles Huey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] We reloaded the drives on our web server yesterday, but Tomcat keeps choking, and we think it's because not enough memory is allocated

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
web.xml to allow no authentication. DO NOT LEAVE IT THIS WAY. What do you logs say? What does the server.xml look like? Please post it. Doug - Original Message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 19, 2004 1:48 PM Subject

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
? - Original message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Mon, 19 Apr 2004 13:06:46 -0500 Subject: Re: emergency - need to get into admin app Thanks, but we are restarting after every modification. And this is Tomcat 4, by the way. Our

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
environment/os etc. Hope that helps. Pete. Quoting Stephen Charles Huey [EMAIL PROTECTED]: Ok, I took out the security tags and I can get in there. Is the admin app where I set memory allocations in Tomcat??? I'm looking at adding an Environment Entry or something, but I don't know what to do

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
it defined, plus it may mess you up when running java apps other than tomcat. -Steve Stephen Charles Huey wrote: I see something in catalina.bat about a JAVA_OPTS environment variable. Do I need to set this in Windows? When I run java -X on the command line, I see something about a -Xms

quick question when getting started

2004-04-15 Thread Stephen Charles Huey
I'm upgrading from Tomcat 4 to 5 and I just installed Tomcat 5 on a dev machine to play with it, and I know a couple things are organized a bit differently, but the provided index page is weirding me out. I tried to add a line of text to the index.jsp in webapps\ROOT and when I reload the page

ZipFileException: can't access localhost anymore

2004-04-05 Thread Stephen Charles Huey
Our small company has been using Tomcat 4 for over a year to run our web app, and on 8/15/2003 I downloaded Tomcat 4.1.27 to install on this development machine, and I haven't had to think much about it since, and I'm not super familiar with Tomcat. About all I do with it is stop and restart the

Re: ZipFileException: can't access localhost anymore

2004-04-05 Thread Stephen Charles Huey
I've resolved this issue. We build a JAR file in JBuilder that contains all the JavaBeans, etc, and we stick that in Tomcat's common\lib, and I checked it and somehow it had 0 KB! Weird. So I just copied it over again and I no longer get that ZipException when starting up Tomcat. It was like

refreshing what tomcat has in memory

2004-01-05 Thread Stephen Charles Huey
I have a copy of Tomcat both on my dev machine and my production machine. I have some code that looks for an image in a given location, and on the dev machine (which I set up), the code was working fine (the code takes that image and inserts it in the middle of a larger one that I'm drawing). I

RE: Tomcat exception report I don't understand

2003-09-09 Thread Stephen Charles Huey
I'm not entirely sure my JDK is the exact same, so I guess that could be the problem. Anyway, those two extra JAR files in my Tomcat common lib have been copied to the production server's Tomcat's common lib, and now the site works without any such exception. So is that the most likely

Tomcat exception report I don't understand

2003-09-08 Thread Stephen Charles Huey
We have a web app on a server that a contractor developed remotely using JBuilder 7 Enterprise, and I'm a new guy in the office who's trying to modify some of our site code on a dev laptop using JBuilder 9 Personal and Tomcat 4, version 1.1 (the same as what's on the server). I took great pains

Tomcat exception report I don't understand

2003-09-08 Thread Stephen Charles Huey
We have a web app on a server that a contractor developed remotely using JBuilder 7 Enterprise, and I'm a new guy in the office who's trying to modify some of our site code on a dev laptop using JBuilder 9 Personal and Tomcat 4, version 1.1 (the same as what's on the server). I took great pains