Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.