You are not logged in.

#1 2010-03-06 13:15:09

beachcoder
Member
Registered: 2009-10-08
Posts: 130

Setting up Apache Tomcat - information in Wiki do not work!

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

#2 2010-03-10 06:35:03

SyXbiT
Member
From: Seattle, WA
Registered: 2008-06-28
Posts: 179
Website

Re: Setting up Apache Tomcat - information in Wiki do not work!

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

#3 2010-03-12 15:16:14

partner55083777
Member
Registered: 2010-02-02
Posts: 10

Re: Setting up Apache Tomcat - information in Wiki do not work!

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

#4 2011-10-03 13:13:30

Wikimig
Developer
From: France
Registered: 2004-12-10
Posts: 77
Website

Re: Setting up Apache Tomcat - information in Wiki do not work!

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

Board footer

Powered by FluxBB