<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>i chose to install tomcat during the OS install as well as java....however, since I needed to use a different jvm, i used the method described in <A href="http://wiki.centos.org/HowTos/JavaOnCentOS">http://wiki.centos.org/HowTos/JavaOnCentOS</A> for Sun jdk 1.5.0_13 and it worked fine as I can tell, as using the alternatives --config java command, i see both 1.4.2 and 1.5.0 versions and choosing the 1.5.0 version yields the right version when doing a "java -version" command....also doing a "which java" also points to the right location for the java 1.5.0 install...everything appears fine except that tomcat still sees java 1.4.2 as its jvm version...</FONT></DIV>
<DIV><FONT face=Arial size=2>I have tried setting the path to JAVA_HOME in the tomcat5.conf as well as set the JAVA_HOME & JRE_HOME environment variable as a script under /etc/profiles.d....its as if tomcat is ignoring this and still using java 1.4.2!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV># /etc/init.d/tomcat5 version<BR>Server version: Apache Tomcat/5.5.20<BR>Server built: Sep 27 2007 12:16:07<BR>Server number: 5.5.20.0<BR>OS Name: Linux<BR>OS Version: 2.6.18-8.1.15.el5<BR>Architecture: i386<BR>JVM Version: 1.4.2<BR>JVM Vendor: Free Software Foundation, Inc.<BR></DIV>
<DIV> </DIV>
<DIV># java -version<BR>java version "1.5.0_13"<BR>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)<BR>Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode)<BR></DIV>
<DIV> </DIV>
<DIV># alternatives --config java</DIV>
<DIV>There are 2 programs which provide 'java'.</DIV>
<DIV> Selection Command<BR>-----------------------------------------------<BR> 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java<BR>*+ 2 /usr/lib/jvm/jre-1.5.0-sun/bin/java</DIV>
<DIV>Enter to keep the current selection[+], or type selection number:<BR></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># set<BR>BASH=/bin/bash<BR>BASH_ARGC=()<BR>BASH_ARGV=()<BR>BASH_LINENO=()<BR>BASH_SOURCE=()<BR>BASH_VERSINFO=([0]="3" [1]="1" [2]="17" [3]="1" [4]="release" [5]="i686-redhat-linux-gnu")<BR>BASH_VERSION='3.1.17(1)-release'<BR>COLORS=/etc/DIR_COLORS.xterm<BR>COLUMNS=80<BR>CVS_RSH=ssh<BR>DIRSTACK=()<BR>EUID=0<BR>GROUPS=()<BR>G_BROKEN_FILENAMES=1<BR>HISTFILE=/root/.bash_history<BR>HISTFILESIZE=1000<BR>HISTSIZE=1000<BR>HOME=/root<BR>HOSTNAME=app2<BR>HOSTTYPE=i686<BR>IFS=$' \t\n'<BR>INPUTRC=/etc/inputrc<BR><FONT color=#ff0000>JRE_HOME</FONT><FONT color=#000000>=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT color=#ff0000>JAVA_HOME</FONT>=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre<BR>LANG=en_US.UTF-8<BR>LESSOPEN='|/usr/bin/lesspipe.sh %s'<BR>LINES=24<BR>LOGNAME=root<BR>LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'<BR>MACHTYPE=i686-redhat-linux-gnu<BR>MAIL=/var/spool/mail/root<BR>MAILCHECK=60<BR>OPTERR=1<BR>OPTIND=1<BR>OSTYPE=linux-gnu<BR>PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin<BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i have tried restarting tomcat many times to no avail and there isn't anything that useful in its logs besides the info about tomcat native library....what gives here?:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>---------------------tomcat log----------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>Using CATALINA_BASE: /usr/share/tomcat5<BR>Using CATALINA_HOME: /usr/share/tomcat5<BR>Using CATALINA_TMPDIR: /usr/share/tomcat5/temp<BR>Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre<BR>Created MBeanServer with ID: -9skw1s:fb3cloan.0:app2:1<BR>6-Jan-08 12:53:52 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent<BR>INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/gcj-4.1.2<BR>6-Jan-08 12:53:52 AM org.apache.coyote.http11.Http11BaseProtocol init<BR>INFO: Initializing Coyote HTTP/1.1 on http-172.16.85.33-8080<BR>6-Jan-08 12:53:52 AM org.apache.catalina.startup.Catalina load<BR>INFO: Initialization processed in 403 ms<BR>6-Jan-08 12:53:52 AM org.apache.catalina.core.StandardService start<BR>INFO: Starting service Catalina<BR>6-Jan-08 12:53:52 AM org.apache.catalina.core.StandardEngine start<BR>INFO: Starting Servlet Engine: Apache Tomcat/5.5.20<BR>6-Jan-08 12:53:52 AM org.apache.catalina.core.StandardHost start<BR>INFO: XML validation disabled<BR>6-Jan-08 12:53:53 AM org.apache.catalina.core.ApplicationContext log<BR>INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: <A href="http://www.cnn.com">http://www.cnn.com</A>], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: <A href="http://www.yahoo.com">http://www.yahoo.com</A>], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: <A href="http://jakarta.apache.org">http://jakarta.apache.org</A>]]<BR>6-Jan-08 12:53:53 AM org.apache.coyote.http11.Http11BaseProtocol start<BR>INFO: Starting Coyote HTTP/1.1 on http-172.16.85.33-8080<BR>6-Jan-08 12:53:53 AM org.apache.jk.common.ChannelSocket init<BR>INFO: JK: ajp13 listening on /0.0.0.0:8009<BR>6-Jan-08 12:53:53 AM org.apache.jk.server.JkMain start<BR>INFO: Jk running ID=0 time=0/112 config=null<BR>6-Jan-08 12:53:53 AM org.apache.catalina.storeconfig.StoreLoader load<BR>INFO: Find registry server-registry.xml at classpath resource<BR>6-Jan-08 12:53:53 AM org.apache.catalina.startup.Catalina start<BR>INFO: Server startup in 1057 ms<BR></FONT></DIV></BODY></HTML>