• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat and java_home

 
mark smith
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i tried

collinm@linux:~> cd $JAVA_HOME
collinm@linux:/usr/lib/jvm/java>
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic