I have a model B Raspberry Pi running ArchLinux. I want to run tomcat on it but so far haven't found a package anywhere. (There is a tomcat-natives package, but no tomcat6 or 7.)

Google search shows a few people have done it, but none explain where they got it or how to install.

4 Answers 4


Find the solution here

If the package can't be found don't forget to use

apt-get update
  • Add a user to the authorization file

directly below "< tomcat-users>" add

< user username="system" password="raspberry" roles="manager-gui"/>
  • And now run tomcat

    cd ../bin sudo sh startup.sh

  • he is running Arch. why are you guys give him the instruction on Ubuntu? Nov 6, 2013 at 15:38
  • If your governance allows; I would strongly advise using the Oracle JDK with Tomcat, and not Open JDK. With due respect to the Open JDK, I've observed that performance is better on Oracle JDK in general, and especially so with Tomcat. Sep 4, 2014 at 2:12

first you will need java

sudo apt-get install openjdk-7-jre -y


sudo apt-get install wget -y

wget http://mirror.olnevhost.net/pub/apache/tomcat/tomcat-7/v7.0.37/bin/apache-tomcat-7.0.37.tar.gz

tar -zvxf apache-tomcat-7.0.37.tar.gz

mv apache-tomcat-7.0.37 tomcat

cd tomcat/bin




Installing and configuring tomcat from the tomcat site isnt much harder than installing a packaged version, and will be newer. Just read the docs, run the scripts, and dont forget to make a user in the XML file. P.S it may run slow. Last time I used Tomcat was v6 and it struggled on machines with not much RAM.


Try with stock Tomcat first.

Packaged tomcat (e.g. on Debian) may have some file permissions problems. If your app creates database in default folder you need to check permissions before you start the app.

With stock Tomcat you don't have that problem as you may run everything from your folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.