Hi all,
I have downloaded the apache-tomcat-6.0.26-src and unzip into my directory.
Directory:/home/prem/Download/tomcat/apache-tomcat-6.0.26-src.
I am using Red hat machine.
To find where my java installed i use the following command:
which java;
Output:
/usr/bin/java
Environment Variables:
export JAVA_HOME=usr/bin/java
export CATALINA_HOME=/home/prem/Download/tomacat/apache-tomcat-6.0.26-src
When i run the version.sh file in tomcat i received the following error.
[root@localhost bin]# sh version.sh
Using CATALINA_BASE: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src
Using CATALINA_HOME: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src
Using CATALINA_TMPDIR: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src/temp
Using JRE_HOME: /usr/bin/java
Using CLASSPATH: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src/bin/bootstrap.jar
/home/prem/Download/tomcat/apache-tomcat-6.0.26-src/bin/catalina.sh: line 421: /usr/bin/java/bin/java: Not a directory
When i execute the startup.sh i got the below message and tomcat did not started .
[root@localhost bin]# sh startup.sh
Using CATALINA_BASE: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src
Using CATALINA_HOME: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src
Using CATALINA_TMPDIR: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src/temp
Using JRE_HOME: /usr/bin/
Using CLASSPATH: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src/bin/bootstrap.jar
touch: cannot touch `/home/prem/Download/tomcat/apache-tomcat-6.0.26-src/logs/catalina.out': No such file or directory
/home/prem/Download/tomcat/apache-tomcat-6.0.26-src/bin/catalina.sh: line 332: /home/prem/Download/tomcat/apache-tomcat-6.0.26-src/logs/catalina.out: No such file or directory
If any one familliar with tomcat please help me out and solve this problem earlier i am working for past one days to solve this one..
Thank you,
With Regards,
Prem.M