| Author |
tomcat and java_home
|
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
hi i use suse 9.3 i start tomcat: linux:/usr/share/hal/fdi/95userpolicy # /usr/share/tomcat5/bin/startup.sh Using CATALINA_BASE: /usr/share/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JAVA_HOME: /usr/lib/jvm/java with konqueror i type: http://localhost:8080 i get: not able to connect to localhost (8080 port) i use java 1.5 the tomcat start.log return: cat /var/log/tomcat5/base/start.log No JAVA_HOME specified in @@@TCCONF@@@/tomcat5.conf and no java found, exiting... JAVA_HOME return me: linux:/usr/share/hal/fdi/95userpolicy # echo $JAVA_HOME /usr/lib/jvm/java any idea? thanks
|
 |
Prem Khan
Ranch Hand
Joined: May 30, 2005
Posts: 189
|
|
One trick that is not documented is ... sometimes you must copy tools.jar from your jdk directory to your common lib directory in tomcat ! Its crazzy, but I was stuck for two days with this frusterating problem
|
 |
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
get the same thing.... linux:/home/collinm # cp /usr/lib/jvm/java-1.5.0-sun-1.5.0_03/lib/tools.jar /usr/share/tomcat5/common linux:/home/collinm/Download/win2k # /usr/share/tomcat5/bin/startup.sh Using CATALINA_BASE: /usr/share/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JAVA_HOME: /usr/lib/jvm/java linux:/home/collinm # cat /var/log/tomcat5/base/start.log No JAVA_HOME specified in @@@TCCONF@@@/tomcat5.conf and no java found, exiting...
|
 |
Craig Jackson
Ranch Hand
Joined: Mar 19, 2002
Posts: 405
|
|
You may have not successfully created the link to your java installation inside the /usr/lib/jvm directory. Based on your "cp" statement, the path of your JDK installation is: and your JAVA_HOME environment variable is set to: . Try the following command, if it does not take you to your JDK installation, then your link is not setup properly:
|
 |
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
ok i tried collinm@linux:~> cd $JAVA_HOME collinm@linux:/usr/lib/jvm/java>
|
 |
Craig Jackson
Ranch Hand
Joined: Mar 19, 2002
Posts: 405
|
|
Ok. Is /usr/lib/jvm/java a symbolic link to /usr/lib/jvm/java-1.5.0-sun-1.5.0_03 ? If not, set your JAVA_HOME environment variable to /usr/lib/jvm/java-1.5.0-sun-1.5.0_03. TOMCAT requires the full JDK installation to run.
|
 |
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 242
|
|
Originally posted by Craig Jackson: Ok. Is /usr/lib/jvm/java a symbolic link to /usr/lib/jvm/java-1.5.0-sun-1.5.0_03 ? If not, set your JAVA_HOME environment variable to /usr/lib/jvm/java-1.5.0-sun-1.5.0_03. TOMCAT requires the full JDK installation to run.
collinm@linux:/usr/lib/jvm/java> ls -ls /usr/lib/jvm/java 0 lrwxrwxrwx 1 root root 26 2005-04-19 19:27 /usr/lib/jvm/java -> /etc/alternatives/java_sdk collinm@linux:/usr/lib/jvm/java> ls -ls /etc/alternatives/java_sdk 0 lrwxrwxrwx 1 root root 27 2005-05-19 23:24 /etc/alternatives/java_sdk -> /usr/lib/jvm/java-1.5.0-sun collinm@linux:/usr/lib/jvm/java> ls -ls /usr/lib/jvm/java-1.5.0-sun 0 lrwxrwxrwx 1 root root 23 2005-05-19 23:24 /usr/lib/jvm/java-1.5.0-sun -> java-1.5.0-sun-1.5.0_03 java-1.5.0-sun-1.5.0_03 seem nothing...
|
 |
Mirai Chelean
Greenhorn
Joined: Jun 27, 2005
Posts: 23
|
|
I facing some problems too when i try to start the tomcat by execute the TOMCAT_HOME/bin/startup.bat. Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: C:\jdk1.3.1_16 Until then, this message shows up: "Windows cannot find '-Djava.endorsed.dirs='. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search" I've set the JAVA_HOME enviroment, can anybody help me on this?
|
The moon light is pouring down on my bedside<br />Like white frost spreading on the ground<br />I look up the bright round moon in the sky<br />And lower my head thinking of my dear hometown
|
 |
 |
|
|
subject: tomcat and java_home
|
|
|