Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-05-2005, 01:12 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
Angry running tomcat with eclipse as non-root

Hello all,

Having recently switched to Linux OS (Red Hat Linux ws 4), I am finding it extremely confusing to understand how to install and configure stuff as non-root.

I have installed tomcat and eclipse with its tomcat sysdeo plugin as root.
As a non-root user, when I try to start tomcat from within eclipse (i.e usiing the sysdeo plugin) I cannot and its says I do not have permission.

My understanding is that I should not be going around tomcat installation and changing the permissions and giving execute permissions to others and stuff. That will not be the correct way of doing things - right?

Even if I create a "tomcat" user to start tomcat, I will still not be able to start tomcat from eclipse when I am logged on as "myself".

Can anyone give me insight on how do ppl install and configure these applications without runnung into premission problems?
I never thought about these accesibilty/permission issues while working on Windows.


Thanks much in advance !
Old 03-06-2005, 03:56 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
Plase copy the whole error message you get. There may be problem with permissions to different things. Starting from that point will be probably the easiest.
Old 03-11-2005, 10:02 AM   #3
LQ Newbie
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I have installed Tomcat as root at the following place:-
Using CATALINA_BASE: /opt/jakarta-tomcat-5.0.28
Using CATALINA_HOME: /opt/jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: /opt/jakarta-tomcat-5.0.28/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.2_07

I have installed Eclipse in my home folder as myself (non-root)
I have also installed Eclipse Sysdeo Pluin to be able to start stop Tomcat from within eclipse itself.

When I(non-root) start eclipse and then try to start tomcat from witin eclipse, I get the following error
(I think it is beacuse I cannot start Tomcat as non-root)

Can't load server.xml
Can't load server.xml
Mar 11, 2005 10:55:37 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(
at org.apache.catalina.startup.Catalina.start(
... 6 more

My question is :-
How do I configue eclipse to be able to start stop Tomcat when I am logged on as non-root?
Am I doing something worng here in terms of permissions?

Please help !

Old 03-12-2005, 05:13 PM   #4
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
Try this: At the end of the article there's about running tomcat as non-root. It should help.
Old 04-16-2009, 12:09 PM   #5
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Smile Help running tomcat plugin from within Eclipse

For anyone who stumbles upon this page like I did, the solution to running Tomcat as a non-root user is to do:
chmod 755 on com.sysdeo.tomcat

inside the eclipse plugin directory on your system. If you do not have root access, ask someone who does to do it for you. And please make sure that you also have executable permissions on the Tomcat binaries (since the Eclipse plugin would need to do that under your login).



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
error running eclipse rich_montana Linux - Software 1 11-18-2005 03:04 AM
running tomcat with eclipse as non-root user javcerty Linux - Software 1 03-05-2005 07:36 PM
Problem's running eclipse UmneyDurak Linux - Software 2 09-01-2004 09:29 PM
Running Tomcat non-root with MSEC setting of "Higher" twbutler Mandriva 0 03-24-2004 08:26 PM
problem running Eclipse 2.1 on mandrake 9.2 nurien Linux - Software 3 01-08-2004 04:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 PM.

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