LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-12-2007, 11:03 AM   #1
dianelane
Registered User
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
Tomcat5.5 installation problem


On a Suse 10.1 I am trying to install Tomcat.

After several trials, now I have a fresh installation of Tomcat5.5, after uninstalling java, jakarta, tomcat, and deleting dirs and conf files.
The installation comes from openSUSE download repositories, java included.
I install all packages via YAST.

Enabling tomcat in YAST fails with error 7

Log files
start.log
(empty)

catalina.out
/usr/share/tomcat55/bin/catalina.sh: line 321: /usr/share/java/bin/java:
No such file or directory


java seems to be in /usr/share/java
 
Old 04-13-2007, 01:57 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Make sure that /usr/share/java/bin/java exists and is executable. If it doesn't exist run
Code:
which java
to find out where the java executable is located and create a symlink in the required place:
Code:
ln -s /path/to/java /usr/share/java/bin/java
 
Old 04-13-2007, 07:26 AM   #3
dianelane
Registered User
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
Make sure that /usr/share/java/bin/java exists and is executable. If it doesn't exist run
Code:
which java
to find out where the java executable is located and create a symlink in the required place:
Code:
ln -s /path/to/java /usr/share/java/bin/java

JAVA_HOME is now set to blank (as it was from installation), and I start Tomcat55 from Yast.

start.log
No JAVA_HOME specified in @@@TCCONF@@@/tomcat55.conf and no java found

If I exec
cichis:/usr/share # which java
/usr/bin/java
cichis:/usr/share # ln -s /usr/bin/java /usr/share/java/bin/java
ln: creating symbolic link `/usr/share/java/bin/java' to `/usr/bin/java': No such file or directory

In /usr/bin/ there if already a file java
 
Old 04-13-2007, 07:48 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
ln: creating symbolic link `/usr/share/java/bin/java' to `/usr/bin/java': No such file or directory
That means that the path /usr/share/java/bin/ does not exist.
I think that the best thing you can do is to install jdk, or jre using yast, so it creates the paths and sets symlinks and env. variables accordingly.
 
Old 04-13-2007, 11:01 AM   #5
dianelane
Registered User
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
That means that the path /usr/share/java/bin/ does not exist.
I think that the best thing you can do is to install jdk, or jre using yast, so it creates the paths and sets symlinks and env. variables accordingly.
Installed (in the order, and tried to start T55):
- jre
- jvm (by error)
- jdk

Always the same error, and really /usr/share/java/bin/ does not exist.
Under /usr/share/java I have:
/ant
/axis
/mx4j
/tomcat55
... and files
 
Old 04-13-2007, 01:20 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
I've never been too fond of the tomcat packages supplied by Suse or Fedora, they seem to bring more trouble than convenience. Instead I download tomcat from apache.org and unzip the files to wherever I prefer (usually /usr/local). To get it running, I need to make sure that JAVA_HOME exists, which I do like this from the command line:
echo JAVA_HOME=/path/to/jdk-directory >> /etc/profile (if you installed jre instead of jdk, you'd need jre-directory)
echo export JAVA_HOME >> /etc/profile

Then I can simply cd into tomcat/bin and start Tomcat by doing:
sh startup.sh

To shut it down:
sh shutdown.sh
 
Old 08-29-2007, 01:05 AM   #7
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Quote:
catalina.out
/usr/share/tomcat55/bin/catalina.sh: line 321:/usr/share/java/bin/java:
No such file or directory

java seems to be in /usr/share/java

Quote:
Under /usr/share/java I have:
/ant
/axis
/mx4j
/tomcat55
... and files
Where are your java tools? like java, javac, javah....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in loading mod_jk & connectivety of tomcat5 and apache server for FC_5 ankitbansal Linux - General 1 02-11-2007 01:24 PM
cannot connect to tomcat5.5 jay73 Debian 2 02-01-2007 08:09 AM
Why is tomcat5 still unstable?!!!!! Mathsniper Debian 1 08-28-2005 05:04 AM
Installing Tomcat5 Randvegeta Linux - Software 1 05-07-2005 05:32 AM
Problem in Apache2 + Tomcat5 Dexter2004 Linux - Networking 1 08-06-2004 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration