You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kohanm <ko...@gmail.com> on 2008/06/09 21:32:02 UTC
Tomcat-5.5 run error on red hat
Hi,
I downloaded and installed apache-tomcat-5.5.26.tar.gz on
/usr/local/apache-tomcat-5.5.26
And I set up PATH and JAVA_HOME on* .bash_profile*:
PATH=$PATH:$HOME/bin
export PATH=$PATH:/usr/java/jdk1.6.0_02/bin
export JAVA_HOME=/usr/java/jdk1.6.0_02
--
when i run startup.sh get:
Using CATALINA_BASE: /usr/local/jakarta-tomcat
Using CATALINA_HOME: /usr/local/jakarta-tomcat
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp
Using JRE_HOME: /usr/java/jdk1.6.0_02
In *catalina.ou*t get error:
/usr/local/jakarta-tomcat/bin/catalina.sh:
line 275: /usr/java/jdk1.6.0_02/bin*/java*: *No such file or directory*
My question is, why tomcat searchs for the JAVA directory after bin ?
Thanks,
mk
Re: Tomcat-5.5 run error on red hat
Posted by kohanm <ko...@gmail.com>.
Thanks Juha,
The windows version was the problem.
I forgat to download the linux version.
Thanks for your help.
mk
On 6/10/08, Juha Laiho <Ju...@iki.fi> wrote:
>
> kohanm wrote:
>
>> here they are:
>>
>> [root@archive usr]# cd java
>> [root@archive java]# cd jdk*
>> [root@archive jdk1.6.0_02]# cd bin
>> [root@archive bin]# ls -l
>>
>
> ...
>
>> -rwxr-xr-x 1 root root 135168 Jun 14 2007 java.exe
>>
> ...
>
> I have no way to find out how you have managed that, but whatever
> you have there is a Windows version of JDK, as opposed to Linux one.
>
> Please get a Linux JDK distribution from
> http://java.sun.com/javase
>
> --
> ..Juha
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Massoud
Re: Tomcat-5.5 run error on red hat
Posted by Juha Laiho <Ju...@iki.fi>.
kohanm wrote:
> here they are:
>
> [root@archive usr]# cd java
> [root@archive java]# cd jdk*
> [root@archive jdk1.6.0_02]# cd bin
> [root@archive bin]# ls -l
...
> -rwxr-xr-x 1 root root 135168 Jun 14 2007 java.exe
...
I have no way to find out how you have managed that, but whatever
you have there is a Windows version of JDK, as opposed to Linux one.
Please get a Linux JDK distribution from
http://java.sun.com/javase
--
..Juha
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat-5.5 run error on red hat
Posted by kohanm <ko...@gmail.com>.
here they are:
[root@archive usr]# cd java
[root@archive java]# ls
[root@archive java]# ls -ls
total 19328
8 drwxr-xr-x 9 root root 4096 Mar 6 10:57 jdk1.6.0_02
8 drwxr-xr-x 8 root root 4096 Mar 6 12:58 jre1.6.0_05
19312 -rwxr-xr-x 1 root root 19745768 Mar 6 12:51 jre-6u5-linux-i586.bin
[root@archive java]# cd jdk*
[root@archive jdk1.6.0_02]# ls
bin demo lib README.html sample
COPYRIGHT include LICENSE README_ja.html src.zip
db jre LICENSE.rtf README_zh_CN.html
THIRDPARTYLICENSEREADME.txt
[root@archive jdk1.6.0_02]# ls -l
total 19220
drwxr-xr-x 2 root root 4096 Mar 6 10:54 bin
-rwxr-xr-x 1 root root 2539 Jun 22 2007 COPYRIGHT
drwxr-xr-x 5 root root 4096 Mar 6 10:54 db
drwxr-xr-x 10 root root 4096 Mar 6 10:55 demo
drwxr-xr-x 3 root root 4096 Mar 6 10:55 include
drwxr-xr-x 4 root root 4096 Mar 6 10:56 jre
drwxr-xr-x 2 root root 4096 Mar 6 10:56 lib
-rwxr-xr-x 1 root root 13471 Jul 9 2007 LICENSE
-rwxr-xr-x 1 root root 19780 Jul 9 2007 LICENSE.rtf
-rwxr-xr-x 1 root root 25379 Jun 14 2007 README.html
-rwxr-xr-x 1 root root 23521 Jun 14 2007 README_ja.html
-rwxr-xr-x 1 root root 18329 Jun 14 2007 README_zh_CN.html
drwxr-xr-x 9 root root 4096 Mar 6 10:57 sample
-rwxr-xr-x 1 root root 19264985 Jun 14 2007 src.zip
-rwxr-xr-x 1 root root 178596 Jun 14 2007 THIRDPARTYLICENSEREADME.txt
[root@archive jdk1.6.0_02]# cd bin
[root@archive bin]# ls -l
total 2396
-rwxr-xr-x 1 root root 25600 Jun 14 2007 appletviewer.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 apt.exe
-rwxr-xr-x 1 root root 29184 Jun 14 2007 beanreg.dll
-rwxr-xr-x 1 root root 25600 Jun 14 2007 extcheck.exe
-rwxr-xr-x 1 root root 45056 Jun 14 2007 HtmlConverter.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 idlj.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jar.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jarsigner.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 javac.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 javadoc.exe
-rwxr-xr-x 1 root root 135168 Jun 14 2007 java.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 javah.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 javap.exe
-rwxr-xr-x 1 root root 25088 Jun 14 2007 java-rmi.exe
-rwxr-xr-x 1 root root 135168 Jun 14 2007 javaw.exe
-rwxr-xr-x 1 root root 139264 Jun 14 2007 javaws.exe
-rwxr-xr-x 1 root root 26112 Jun 14 2007 jconsole.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jdb.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jhat.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jinfo.exe
-rwxr-xr-x 1 root root 77824 Jun 14 2007 jli.dll
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jmap.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jps.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jrunscript.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jstack.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jstatd.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 jstat.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 keytool.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 kinit.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 klist.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 ktab.exe
-rwxr-xr-x 1 root root 348160 Jun 22 2007 msvcr71.dll
-rwxr-xr-x 1 root root 25600 Jun 14 2007 native2ascii.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 orbd.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 pack200.exe
-rwxr-xr-x 1 root root 73728 Jun 14 2007 packager.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 policytool.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 rmic.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 rmid.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 rmiregistry.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 schemagen.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 serialver.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 servertool.exe
-rwxr-xr-x 1 root root 26112 Jun 14 2007 tnameserv.exe
-rwxr-xr-x 1 root root 122880 Jun 14 2007 unpack200.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 wsgen.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 wsimport.exe
-rwxr-xr-x 1 root root 25600 Jun 14 2007 xjc.exe
[root@archive bin]#
Thanks,
mk
On 6/9/08, Caldarale, Charles R <Ch...@unisys.com> wrote:
>
> > From: kohanm [mailto:kohan.massoud@gmail.com]
> > Subject: Re: Tomcat-5.5 run error on red hat
> >
> > I changed all files owner and grp to the root
>
> Not a particularly good idea.
>
> > this is what i have:
>
> But you didn't show us what's in /usr/java/jdk1.6.0_02/bin - which appears
> to be where the problem lies.
>
> - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Massoud
RE: Tomcat-5.5 run error on red hat
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: kohanm [mailto:kohan.massoud@gmail.com]
> Subject: Re: Tomcat-5.5 run error on red hat
>
> I changed all files owner and grp to the root
Not a particularly good idea.
> this is what i have:
But you didn't show us what's in /usr/java/jdk1.6.0_02/bin - which appears to be where the problem lies.
- 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat-5.5 run error on red hat
Posted by kohanm <ko...@gmail.com>.
Thanks Charles,
I am new to linux.
I changed all files owner and grp to the root but still I get the same
error.
this is what i have:
[root@archive usr]# cd java
[root@archive java]# ls -l
total 19328
drwxr-xr-x 9 root root 4096 Mar 6 10:57 jdk1.6.0_02
drwxr-xr-x 8 root root 4096 Mar 6 12:58 jre1.6.0_05
-rwxr-xr-x 1 root root 19745768 Mar 6 12:51 jre-6u5-linux-i586.bin
[root@archive java]# cd jdk*
[root@archive jdk1.6.0_02]# ls -l
total 19220
drwxr-xr-x 2 root root 4096 Mar 6 10:54 bin
-rwxr-xr-x 1 root root 2539 Jun 22 2007 COPYRIGHT
drwxr-xr-x 5 root root 4096 Mar 6 10:54 db
drwxr-xr-x 10 root root 4096 Mar 6 10:55 demo
drwxr-xr-x 3 root root 4096 Mar 6 10:55 include
drwxr-xr-x 4 root root 4096 Mar 6 10:56 jre
drwxr-xr-x 2 root root 4096 Mar 6 10:56 lib
-rwxr-xr-x 1 root root 13471 Jul 9 2007 LICENSE
-rwxr-xr-x 1 root root 19780 Jul 9 2007 LICENSE.rtf
-rwxr-xr-x 1 root root 25379 Jun 14 2007 README.html
-rwxr-xr-x 1 root root 23521 Jun 14 2007 README_ja.html
-rwxr-xr-x 1 root root 18329 Jun 14 2007 README_zh_CN.html
drwxr-xr-x 9 root root 4096 Mar 6 10:57 sample
-rwxr-xr-x 1 root root 19264985 Jun 14 2007 src.zip
-rwxr-xr-x 1 root root 178596 Jun 14 2007 THIRDPARTYLICENSEREADME.txt
[root@archive local]# ls -l
total 6400
-rw------- 1 root root 1253 May 29 15:44 1212100216273-integrated.jnlp
drwxr-xr-x 3 root root 4096 Jun 27 2007 adm
drwxrwxrwx 16 root root 4096 May 28 09:03 apache2
drwx------ 11 root root 4096 May 29 15:10 apache-tomcat-5.5.26
-rw------- 1 root root 6372195 May 29 15:10 apache-tomcat-5.5.26.tar.gz
drwxr-xr-x 2 root root 4096 Aug 12 2004 bin
lrwxrwxrwx 1 root root 10 Jun 27 2007 etc -> /local/etc
drwxr-xr-x 2 root root 4096 Aug 12 2004 games
lrwxrwxrwx 1 root root 10 Jun 27 2007 home -> ./var/home
drwxr-xr-x 2 root root 4096 Aug 12 2004 include
lrwxrwxrwx 1 root root 20 May 29 15:17 jakarta-tomcat ->
apache-tomcat-5.5.26
drwxrwxrwx 2 root root 4096 May 29 10:16 java
drwxr-xr-x 2 root root 4096 Aug 12 2004 lib
drwxr-xr-x 2 root root 4096 Aug 12 2004 libexec
drwxrwxrwx 2 root root 4096 Mar 6 13:34 mysql
drwxr-xr-x 2 root root 4096 Aug 12 2004 sbin
drwxr-xr-x 4 root root 4096 Jun 27 2007 share
drwxr-xr-x 2 root root 4096 Aug 12 2004 src
drwx-----T 2 root root 4096 May 29 15:00 tmp
lrwxrwxrwx 1 root root 10 Jun 27 2007 var -> /local/var
-rw------- 1 root root 5530 May 26 13:10 wget-log
-rw------- 1 root root 5075 May 27 10:16 wget-log.1
[root@archive local]# cd ja*
[root@archive jakarta-tomcat]# cd bin
[root@archive bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/jakarta-tomcat
Using CATALINA_HOME: /usr/local/jakarta-tomcat
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp
Using JRE_HOME: /usr/java/jdk1.6.0_02
[root@archive bin]#
I get the same error on catalina.out.
I appreciate your help.
mk
On 6/9/08, Caldarale, Charles R <Ch...@unisys.com> wrote:
>
> > From: kohanm [mailto:kohan.massoud@gmail.com]
> > Subject: Tomcat-5.5 run error on red hat
> >
> > And I set up PATH and JAVA_HOME on* .bash_profile*:
> > In *catalina.ou*t get error:
> > line 275: /usr/java/jdk1.6.0_02/bin*/java*: *No such file or
> > directory*
>
> Why does your e-mail have so many apparently spurious asterisks in it?
>
> > My question is, why tomcat searchs for the
> > JAVA directory after bin ?
>
> It's not looking for the java directory, it's looking for the java
> executable. It's either not there or has incorrect permissions (e.g., no
> execute access).
>
> - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Massoud
RE: Tomcat-5.5 run error on red hat
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: kohanm [mailto:kohan.massoud@gmail.com]
> Subject: Tomcat-5.5 run error on red hat
>
> And I set up PATH and JAVA_HOME on* .bash_profile*:
> In *catalina.ou*t get error:
> line 275: /usr/java/jdk1.6.0_02/bin*/java*: *No such file or
> directory*
Why does your e-mail have so many apparently spurious asterisks in it?
> My question is, why tomcat searchs for the
> JAVA directory after bin ?
It's not looking for the java directory, it's looking for the java executable. It's either not there or has incorrect permissions (e.g., no execute access).
- 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org