problem starting tomcat

Hi,

This is the first time I’m working on Tomcat. (I am a novice Linux user as well…using Open Suse 11.0).

I downloaded tomcat-5.5.26. Then I followed the online documentation which asked me to follow the steps:

cd $CATALINA_HOME/bin
tar xvfz jsvc.tar.gz
cd jsvc-src
autoconf
./configure
make
cp jsvc …
cd …

After this:
cd $CATALINA_HOME
./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile $CATALINA_HOME/temp/jsvc.pid org.apache.catalina.startup.Bootstrap

This generates the following error in the catalina.err file:
jsvc.exec error: syscall failed in set_caps
jsvc.exec error: syscall failed in set_caps
jsvc.exec error: syscall failed in set_caps
jsvc.exec error: Service exit with a return value of 4

I’ve tried running this command as a root user (su). And the same error with an additional message:

jsvc.exec error: syscall failed in set_caps
jsvc.exec error: set_caps(CAPS) failed
jsvc.exec error: Service exit with a return value of 4

The documentation says something about inserting module “capability” for such errors. I tried using the command:
modprobe capability in a terminal (as su) and got the following output:

FATAL: Module capability not found

I can not run the ‘sample.war’ file in the tomcat documentation. Whenever I try to access ‘http://localhost:8080/sample’, it generates a url not found error.

Please help.

Thanks,

Soubhik

PS: I don’t know if this info helps. But Yast2 shows tomcat6 as installed. But I don’t know how to start it either. The $CATALINA_HOME/bin/startup.sh script is missing for tomcat6

Oh dear…

Well first of all SuSE (11.0, 10.3 has 5.5) ships with Tomcat6 as part of the operating system which you can install from YAST (in your case it was already installed).

You start it with rctomcat6 start or /etc/init.d/tomcat6 start

However, if you went and edited $CATALINA_HOME files (as it was declared in the system already) which would have pointed to the SuSE installation of Tomcat, I have no idea how much damage you were able to do to the already present installation of Tomcat.

If I were you, I’d remove all traces of the downloaded tomcat and it’s directory and go to YAST then search for Tomcat and re-install everything related to it (in order to repair any changed files) and then start it.

The SuSE provided Tomcat directory is in /usr/share/tomcat6 and webapps etc. directories are located there.

But I’d like to use tomcat5.5

On Mon, 18 Aug 2008 16:23:46 GMT
effikc <effikc@no-mx.forums.opensuse.org> wrote:

>
> But I’d like to use tomcat5.5
>
>

WHY? What’s 5.5 got that 6.0 doesn’t? Well, bugs probably… that’s usually
the reason a new version comes out.

Loni


L R Nix
lornix@lornix.com