You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dave Filchak <su...@zuka.net> on 2009/05/14 20:02:14 UTC

Basic Java questions

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?

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Basic Java questions

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dave Filchak [mailto:submit@zuka.net]
> Subject: Re: Basic Java questions
> 
> the path is actually /opt/java/bin as java is a symlink to
> /opt/jdk1.6.0_13

I'm not following that; please restate.  Also, what directory were you in when you did the ls:

> -rwxr-xr-x  1 root root  52331 Mar  9 15:37 appletviewer
> -rwxr-xr-x  1 root root  52216 Mar  9 15:37 apt
> lrwxrwxrwx  1 root root     10 May  5 15:36 ControlPanel -> ./jcontrol
> -rwxr-xr-x  1 root root  51963 Mar  9 15:37 extcheck
> -rwxr-xr-x  1 root root   1080 Mar  9 15:41 HtmlConverter
> -rwxr-xr-x  1 root root  51963 Mar  9 15:37 idlj

<snip>

Whatever it was does look like the bin directory of a JDK.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by Dave Filchak <su...@zuka.net>.
Ken Bowen wrote:
> Hard to say about everything.  But
>
> /opt/java/bin/java
>
> in your path is very suspicious.  Check whether that is in fact the 
> executable itself by just trying to execute
>
> /opt/java/bin/java
>
> It might be that you need /opt/java/bin in the path instead. 
This has been fixed.
> I also would cd to /opt/java/jdk1.6.0_13/bin and do an ls to see 
> what's there.

the path is actually /opt/java/bin as java is a symlink to /opt/jdk1.6.0_13

-rwxr-xr-x  1 root root  52331 Mar  9 15:37 appletviewer
-rwxr-xr-x  1 root root  52216 Mar  9 15:37 apt
lrwxrwxrwx  1 root root     10 May  5 15:36 ControlPanel -> ./jcontrol
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 extcheck
-rwxr-xr-x  1 root root   1080 Mar  9 15:41 HtmlConverter
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 idlj
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jar
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jarsigner
-rwxr-xr-x  1 root root  50810 Mar  9 15:37 java
-rwxr-xr-x  1 root root  52280 Mar  9 15:37 javac
-rwxr-xr-x  1 root root  52216 Mar  9 15:37 javadoc
-rwxr-xr-x  1 root root  52280 Mar  9 15:37 javah
-rwxr-xr-x  1 root root  52312 Mar  9 15:37 javap
-rwxr-xr-x  1 root root 104769 Mar  9 15:41 javaws
-rwxr-xr-x  1 root root  51971 Mar  9 15:37 jconsole
-rwxr-xr-x  1 root root   6347 Mar  9 15:41 jcontrol
-rwxr-xr-x  1 root root  52003 Mar  9 15:37 jdb
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jhat
-rwxr-xr-x  1 root root  52115 Mar  9 15:37 jinfo
-rwxr-xr-x  1 root root  52115 Mar  9 15:37 jmap
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jps
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jrunscript
-rwxr-xr-x  1 root root  52003 Mar  9 15:37 jsadebugd
-rwxr-xr-x  1 root root  52115 Mar  9 15:37 jstack
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jstat
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jstatd
-rwxr-xr-x  1 root root   2551 Dec 11 14:14 jvisualvm
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 keytool
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 native2ascii
-rwxr-xr-x  1 root root  52219 Mar  9 15:37 orbd
-rwxr-xr-x  1 root root  52043 Mar  9 15:37 pack200
-rwxr-xr-x  1 root root  52363 Mar  9 15:37 policytool
-rwxr-xr-x  1 root root  52312 Mar  9 15:37 rmic
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 rmid
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 rmiregistry
-rwxr-xr-x  1 root root  51995 Mar  9 15:37 schemagen
-rwxr-xr-x  1 root root  52312 Mar  9 15:37 serialver
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 servertool
-rwxr-xr-x  1 root root  52219 Mar  9 15:37 tnameserv
-rwxr-xr-x  1 root root 186301 Mar  9 15:37 unpack200
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 wsgen
-rwxr-xr-x  1 root root  51995 Mar  9 15:37 wsimport
-rwxr-xr-x  1 root root  51995 Mar  9 15:37 xjc

Dave
>
> <snip<
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by Ken Bowen <kb...@als.com>.
Hard to say about everything.  But

/opt/java/bin/java

in your path is very suspicious.  Check whether that is in fact the  
executable itself by just trying to execute

/opt/java/bin/java

It might be that you need /opt/java/bin in the path instead.   I also  
would cd to /opt/java/jdk1.6.0_13/bin and do an ls to see what's there.

On May 14, 2009, at 2:02 PM, 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?
>
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by Ken Bowen <kb...@als.com>.
Well, sometimes things hang around.  Maybe a conservative start would  
be to reboot your system and then examine things.  If everything looks  
quiescent, then try to start your exodus app and see what happens.

On May 14, 2009, at 4:26 PM, Dave Filchak wrote:

> Ken Bowen wrote:
>> Below...
>>
>> On May 14, 2009, at 2:49 PM, Dave Filchak wrote:
>>
>>> ls -l /opt/java/bin/java
>>> -rwxr-xr-x  1 root root 50810 Mar  9 15:37 /opt/java/bin/java
>>
>> Per my earlier message, this is (part of) your problem.  /opt/java/ 
>> bin/java is an executable, but what should be on your path is a  
>> directory where the executable can be found.  So /opt/java/bin/java  
>> should be shortened to /opt/java/bin on your path.
> OK, my path now reads:
>
> /opt/java/bin/:/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 still, when I run the exodus app, I get a Server unavailable  
> error. Then, when I run netstat -o, it shows nothing of the ports I  
> had set up previously (changed tomcat port to 8081 and the connector  
> port to 8010). I still show a huge amount of connections on 8009,  
> which is not even in the tomcat configuration anymore.
>
> When I look at catalina.out it shows:
>
> May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol  
> handler start failed: java.net.BindException: Address already in  
> use<null>:8081
>   at org.apache.catalina.connector.Connector.start(Connector.java: 
> 1138)
>   at  
> org.apache.catalina.core.StandardService.start(StandardService.java: 
> 531)
>   at  
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2124 ms
>
>
> So, I think I want to remove all instances on java and tomcat and re- 
> install.
>
> Any suggestions about how to remove all of this stuff cleanly?
>
> Dave
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by André Warnier <aw...@ice-sa.com>.
Dave Filchak wrote:
> 
> So, I think I want to remove all instances on java and tomcat and 
> re-install.
> 
> Any suggestions about how to remove all of this stuff cleanly?
> 
I'm sorry to say, but I think that system is way past any attempt at 
doing things cleanly.

It looks like you have at least 3 versions of java on there, and who 
knows what uses them.

What about using the HP package manager (SAM ?) first, to see what's 
installed and what you can remove ?
And/or getting some expert local help ?

But we're getting a bit far from Tomcat here..

One more tidbit : from you previous post (mainly the "bind" error), it 
looks to me as if you are in fact trying to start *the same* Tomcat two 
times..
But don't ask me where that comes from.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Basic Java questions

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dave Filchak [mailto:submit@zuka.net]
> Subject: Re: Basic Java questions
> 
> OK, my path now reads:
> 
> /opt/java/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/us
> r/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1
> .6.0_13/bin:/root/bin

You shouldn't have a trailing slash on /opt/java/bin, although it probably doesn't hurt too much.

> Then, when I run netstat -o, it shows nothing of the ports I 
> had set up previously (changed tomcat port to 8081 and the 
> connector port to 8010).

Indicative that your Tomcat is not running.

> I still show a huge amount of connections on 8009, which is 
> not even in the tomcat configuration anymore.

Indicative that some *other* Tomcat is running.  What's the pid number for the connections?  Where is that process being executed from?  Kill it and delete the installation.

> start failed: java.net.BindException: Address already in use<null>:8081

Another Tomcat (or some other process) is using that port.  Find it and get rid of it.

> So, I think I want to remove all instances on java and 
> tomcat and re-install.

You don't need to remove all instances of Java; just the ones you don't want to use.

> Any suggestions about how to remove all of this stuff cleanly?

Consult the package manager for your system.  If there isn't one, you're into a lot of find'ing and grep'ing.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by Dave Filchak <su...@zuka.net>.
Ken Bowen wrote:
> Below...
>
> On May 14, 2009, at 2:49 PM, Dave Filchak wrote:
>
>> ls -l /opt/java/bin/java
>> -rwxr-xr-x  1 root root 50810 Mar  9 15:37 /opt/java/bin/java
>
> Per my earlier message, this is (part of) your problem.  
> /opt/java/bin/java is an executable, but what should be on your path 
> is a directory where the executable can be found.  So 
> /opt/java/bin/java should be shortened to /opt/java/bin on your path.
OK, my path now reads:

/opt/java/bin/:/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 still, when I run the exodus app, I get a Server unavailable error. 
Then, when I run netstat -o, it shows nothing of the ports I had set up 
previously (changed tomcat port to 8081 and the connector port to 8010). 
I still show a huge amount of connections on 8009, which is not even in 
the tomcat configuration anymore.

When I look at catalina.out it shows:

May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler 
start failed: java.net.BindException: Address already in use<null>:8081
    at org.apache.catalina.connector.Connector.start(Connector.java:1138)
    at 
org.apache.catalina.core.StandardService.start(StandardService.java:531)
    at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2124 ms


So, I think I want to remove all instances on java and tomcat and 
re-install.

Any suggestions about how to remove all of this stuff cleanly?

Dave






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by Ken Bowen <kb...@als.com>.
Below...

On May 14, 2009, at 2:49 PM, Dave Filchak wrote:

> ls -l /opt/java/bin/java
> -rwxr-xr-x  1 root root 50810 Mar  9 15:37 /opt/java/bin/java

Per my earlier message, this is (part of) your problem.  /opt/java/bin/ 
java is an executable, but what should be on your path is a directory  
where the executable can be found.  So /opt/java/bin/java should be  
shortened to /opt/java/bin on your path.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by Dave Filchak <su...@zuka.net>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Basic Java questions

Posted by André Warnier <aw...@ice-sa.com>.
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.. ;-)

Try these 3 commands :

id

echo $PATH

and

find / -name java

and let us see the output

and then, just by curiosity, do

ls -l /opt/java/bin/java

and let us see that too

and, just for fun, try

java -version

and ditto


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org