Win a copy of Terraform in Action this week in the Cloud forum!

Chase Bonham

Ranch Hand
+ Follow
since Jul 15, 2006
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chase Bonham

Unfortunately, this is not a programmatic call. I'm trying to configure Tomcat 5.5 to use an Oracle RAC database for session replication and the configuration tags provide only one attribute on the tag. That attribute is

<Store connectionURL="">


I need to be able to specify everything about that database in that one URL.
I know I can specify the long winded RAC url, but not sure how to fit in the username and password.

Apparently, in the mysql, postgress world putting username, passwords in JDBC urls is very common, probably why Tomcat developers didn't see the need to provide username/password.
If you have to connect to oracle RAC (Real Application Cluster) using JDBC with thin driver, the classic url:


doesn�t work and you get the error ORA � 12505.
Instead, you must use this url:


How do I pass the username/password in this RAC url?
Seeing a lot of fragmented code bits, articles with no code about doing clustering with database session replication in Tomcat.

Does anyone have a complete server.xml or relevant pieces of it. I just need to look at the tags & configuration for configuring Tomcat to store sessions in the database with clustering.
14 years ago
We have a Linux box and Tomcat is installed on

/usr/local/apache-tomcat-5.5.23 ==> $CATALINA_HOME

I have noticed that Tomcat writes to $CATALINA_HOME/work and $CATALINA_HOME/logs directory.

This is an issue for my IT dept, because we don't
monitor those directories for "size". It seems like if left unchecked these could grow unbounded.

I would like to have Tomcat do its stuff in a seperate IT monitored dir on the same box.

Is this possible? or does TomCat code hardcode to base everything off
14 years ago
Getting /servlet/* to work in Tomcat without explicitly putting invoker
in web.xml

I looked around on the web for the answer to this question. Other than the option of enumerating each and every servlet in the web.xml, I haven't seen
any solution.
14 years ago
The self executing Windows install of 5.5.23 (the distro) does not ship with a start.bat.

Here's what I have in my "C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin"

14 years ago
Some of the JVM arguments I pass is

I have noticed that the

org.apache.catalina.startup.Bootstrap gives this error consistently when these args are passed.

"Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 7813; nested exception is: Address already in use"

Is there a know bug about Tomcat not able to close JMX ports on shutdown?
14 years ago
Tomcat 5.5.23.

<Host appBase="/mydir">

By default, when myapp.war gets deployed, Tomcat creates a myapp directory in the mydir (appBase) directory and expands the war there.

Is it possible to specify a different directory for that expansion to take place?
14 years ago
I downloaded Tomcat 5.5.23.

Started tomcat by clicking on the $CATALINA_HOME/bin/tomcat5.exe.

Trying to hit the following URLs just to see if Tomcat works as a web server


I'm getting 404 no matter what I hit..

Am I missing something.. is downloading Tomcat, starting Tomcat exe (without changing anyhting) and then hitting the example webapps should work right?

Do I need to modify an XML file somewhere?
14 years ago
Thats where the confusion is for me. In the Javadoc for the lang API, is it safe to assume that if nothing is mentioned about synchronization then it is probably thread safe??..

Look at .. java.text.SimpleDateFormat, java.util.HashMap there is specific
mention of synchronization.
14 years ago
Are instance methods on threadsafe?
14 years ago
Passing JVM -XMs and -XMx arguments to Maven at the time of doign a release erform

How do I do it?
14 years ago
Are the methods digest() and reset() threadsafe?
14 years ago
Is there an Apache Commons Library for md5sum?
How do I increase heap size when doing release perform in Maven
14 years ago