LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2007, 10:09 PM   #1
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Rep: Reputation: 30
tomcat + pebble + permissions


Hi all -

Been trying all day to get tomcat + pebble to work on my Slack 10.2 system.

I currently run apache and a cacti server off my box, both of which are configured and working fine out of the /www directory.

If I download tomcat 6, extract it, and place it in /www/htdocs/tomcat then run the startup.sh script, tomcat starts up fine and I can configure a manager user/pass and then deploy my pebble.war file without trouble.

Problem here is that:

One) The tomcat daemon runs as root
Two) When I blog in pebble the blogs go to /root/pebble

Ok, so I scratched the above setup and did the following...

Code:
Tomcat Config

Install Tomcat to /www/htdocs/tomcat

Configure group/user for Tomcat

groupadd tomcat
useradd -g tomcat tomcatuser

Set perms on /www/htdocs/tomcat

chgrp -R tomcat ./tomcat/
chown -R tomcatuser ./tomcat/

Set perms on /www/htdocs/tomcat/conf

chmod 750 ./conf

Add manager account for Tomcat

cd /www/htdocs/tomcat/conf
pico ./tomcat-users.xml

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="manager"/>
  <user username="manager" password="4manage" roles="manager"/>
</tomcat-users>

Compile/Install jsvc
Note: javac compile errors are related to lack of jdk package

cd /www/htdocs/tomcat/bin/
tar xvfz jsvc.tar.gz
cd jsvc-src
autoconf
chmod +x ./configure
./configure --with-java=/usr/lib/java
make
cp jsvc ..
cd ..

To START tomcat

cd /www/htdocs/tomcat

./bin/jsvc -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out \ 
-errfile ./logs/catalina.err -user tomcatuser \
org.apache.catalina.startup.Bootstrap
Alright, so that gets Tomcat running as tomcatuser, a user with much less privaledges then root.

Pebble took some mucking with, mainly with the ApplicationContext-pebble.xml file in the WEB-INF folder of the Pebble folder inside of webapps

Code:
<!-- the location where your Pebble data is stored, default is ${user.home}/pebble -->
    <property name="dataDirectory" value="/www/htdocs/tomcat/webapps/pebble/pebble_data/pebble"/>
After making that change I was able to start the Pebble webapp from within Tomcat and then login to Pebble with the default username/password.

Now heres where the new wierd stuff starts happening. Whenever I click on a link, say to change my user info or password or even logout, the cpu utilization spikes to 100% for about 10 seconds and I am left with a blank browser window.

I cannot find anything in the logs or any debugging info anywhere to lead me in the right direction. I know the issue is with permissions, just cannot figure out where.

Also noticed that my catalina.out file is huge, like 130mb+ and growing. Normal?

Thanks,
Scott
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mini debian-pebble geden Debian 3 02-29-2008 10:01 AM
pyramid (pebble) via-rhine module problem aldar Linux - Hardware 0 11-15-2006 12:07 PM
Pebble Linux install help The Batman Linux - General 1 08-31-2006 05:44 PM
find permissions of users httpd, mysql, tomcat varunbihani Linux - General 3 07-05-2006 03:47 AM
USB Problem in Pebble (Bcan.Pebble) arddhika Linux - Networking 9 10-03-2005 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration