Chase Bonham

Ranch Hand
+ Follow
since Jul 15, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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
connectionURL.

<Store connectionURL="">

</Store>

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:

jdbc:oracle:thin:@<HOST>:1521:<SID>

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

jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service)))

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.
16 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
$CATALINA_HOME..
16 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.
16 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"


bootstrap.jar
commons-logging-api.jar
tomcat-juli.jar
tomcat5.exe
tomcat5w.exe
16 years ago
Some of the JVM arguments I pass is

-Dcom.sun.management.jmxremote.port=7813 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

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:
java.net.BindException: Address already in use"

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

<Host appBase="/mydir">
...
</Host>

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?
16 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


http://localhost:8080/index.jsp
http://localhost:8080/tomcat-docs/appdev/index.html

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?
16 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.
16 years ago
Are instance methods on java.security.MessageDigest threadsafe?
16 years ago
Passing JVM -XMs and -XMx arguments to Maven at the time of doign a release erform


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