LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-05-2005, 02:12 PM   #1
javcerty
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.

PLEASE HELP !

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

Rep: Reputation: 164Reputation: 164
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, 11:02 AM   #3
javcerty
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
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
... 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 !

Thanks
 
Old 03-12-2005, 06:13 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Try this: http://www.linux-sxs.org/internet_serving/c140.html At the end of the article there's about running tomcat as non-root. It should help.
 
Old 04-16-2009, 01:09 PM   #5
Sankha
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).

Cheers,
SSD.
 
  


Reply


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


All times are GMT -5. The time now is 11:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration