LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running tomcat with eclipse as non-root (https://www.linuxquestions.org/questions/linux-newbie-8/running-tomcat-with-eclipse-as-non-root-298018/)

javcerty 03-05-2005 01:12 PM

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 !

Mara 03-06-2005 03:56 PM

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.

javcerty 03-11-2005 10:02 AM

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

Mara 03-12-2005 05:13 PM

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.

Sankha 04-16-2009 12:09 PM

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.


All times are GMT -5. The time now is 10:49 PM.