You are not logged in.
Hello there,
I wanted to install Apache Tomcat on my Webserver, but was not able to follow the wiki entry in http://wiki.archlinux.org/index.php/Tomcat_and_Apache.
Installing Tomcat via pacman was not a problem. Then, the first problem came up:
Edit /etc/conf.d/tomcat. Change CATALINA_USER to some user that suites your system (like "nobody")
.
My default /etc/conf.d/tomcat looks like this:
# Arguments for catalina
#CATALINA_OPTS=There is no CATALINA_USER entry. Adding one didn't help anything.
modprobe capability gives me
FATAL: Module capability not found.and trying to start tomcat with /etc/rc.d/tomcat start tells me
:: Starting Tomcat [BUSY] 06/03/2010 14:04:13 31786 jsvc error: Cannot locate Java Home
[FAIL]Ok. Adding JAVA_HOME to /etc/conf.d/tomcat and setting it to /opt/java (which is my Java home) did even take no effect.
What am I doing wrong, how can I get it to run?
Thanks in Advance,
beachcoder
Offline
The package 'openjdk' installs to /usr/lib/jvm/java-6-openjdk
but the package 'jdk' installs to /opt/java
This is a problem, as the wiki is written assuming jdk (rather than openjdk) really, they should install to the same place to avoid confusion (and both openjdk and jdk conflict, so you can't install them both at the same time)
If you're using openjdk, replace $JAVA_HOME in /etc/rc.d/tomcat with /usr/lib/jvm/java-6-openjdk
if you're using jdk, it should be /opt/java
hope that helps
Last edited by SyXbiT (2010-03-10 07:05:30)
Offline
I also had some problems running Tomcat. You can probably just use /opt/tomcat/bin/startup.sh and /opt/tomcat/bin/shutdown.sh to start it up and play around with it even if you can't get /etc/rc.d/tomcat to work.
If you have some programming skills, you can get /etc/rc.d/tomcat to work by looking at /opt/tomcat/bin/catalina.sh and doing the same thing it is doing.
Offline
Hello,
I revamped the wiki page for Tomcat. You might want to have a look at if to check whether you can find answers.
As said SyXbiT, I would also advise you to specify the correct TOMCAT_JAVA_HOME in /etc/conf.d/tomcat. This is a way for you to specify the JVM you want tomcat to use.
Offline