André Warnier wrote:
Dave Filchak wrote:
In trying to troubleshoot my ongoing issues with deploying a Tomcat
app, I have been trying to track down any duplicate java/tomcat
installs. I made some changes I thought would work and now when I
issue the command:
which java, I get:
/usr/bin/which: no java in
(/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin)
So my next questions are going to be dumb I am sure but please bear
with me as I try to learn this stuff:
Here is my environment:
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/opt/jdk1.6.0_13
Server version: Apache Tomcat/6.0.18
Server built: Jul 22 2008 02:00:36
Server number: 6.0.18.0
OS Name: Linux
OS Version: 2.6.9-34.ELsmp
Architecture: amd64
JVM Version: 1.6.0_13-b03
JVM Vendor: Sun Microsystems Inc.
My $PATH is:
/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin
But I get the error when I run which java.
I guess what I am asking is if the jdk I have installed the only java
install I need and if so, why does which not find java at all?
I don't know, but the more you tell us, the more I believe that this
is one screwed-up system.. ;-)
It is either the system .... or me ;-) This was administered by someone
else originally and he did not follow the templates for where things go.
Try these 3 commands :
id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
echo $PATH
/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin
and
find / -name java
/home/jason/Dolphin/java
/home/jason/old/Dolphin/java
/home/jason/old/busted/java
/home/jason/old/busted/devel.old/java
/home/webadmin/work/java
/usr/opt/jdk1.6.0_13/jre/bin/java
/usr/opt/jdk1.6.0_13/bin/java
/usr/opt/jdk1.6.0_13/db/demo/programs/scores/java
/usr/opt/jdk1.6.0_13/db/demo/programs/vtis/java
/usr/opt/java (this is a symlink to /usr/opt/jdk1.6.0_13)
/usr/opt/jdk1.5.0_05/jre/bin/java
/usr/opt/jdk1.5.0_05/bin/java
/usr/lib64/swig1.3/java
/usr/local/BerkeleyDB.4.4/docs/ref/java
/usr/local/BerkeleyDB.4.4/docs/java
/usr/java (this is a symlink to /opt/java)
/usr/share/javadoc/java
/usr/share/java
/usr/share/doc/libidn-devel-0.5.6/contrib/java
/usr/share/doc/db4-devel-4.2.52/ref/java
/usr/lib/java
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/include/gnu/java
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/include/java
/usr/java.old/jdk1.6.0_01/jre/bin/java
/usr/java.old/jdk1.6.0_01/bin/java
/usr/bin/java
/etc/java
/var/cvs/Dolphin/java
and let us see the output
and then, just by curiosity, do
ls -l /opt/java/bin/java
ls -l /opt/java/bin/java
-rwxr-xr-x 1 root root 50810 Mar 9 15:37 /opt/java/bin/java
and let us see that too
and, just for fun, try
java -version
and ditto
java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org