- This topic has 4 replies, 2 voices, and was last updated 19 years, 5 months ago by paulcon.
-
AuthorPosts
-
paulconMemberI’m getting the following error
Catalina.stop: java.io.FileNotFoundException: /usr/local/tomcat5/conf/server.xml (Permission denied)
when I try to stop tomcat from eclipse. Also, I tried to set up a deployment for one of my projects into tomcat’s webapps, and the dialogue box said that it successfully deployed the app, but the app directory did not show up in my webapps directory.
I’m running eclipse as a non-root user, but I have rwx group permission on the entire tomcat directory. (And the user is a member of the appropriate group.)
Any tips?
Versions:
OS: Fedora Core 4
Tomcat: 5.0.28
Apache: 2.0.54
Jk: 1.2.10
Eclipse: 3.1
MyEclipse: 4.0M2
paulconMemberI was told by support
We don’t actually do anything directly with the server.xml file. A Tomcat process is launched which tries to read it to figure out how to shut down the server. It looks like the launched process doesn’t have read permission to me. Although, the process should have the same capabilities as the user running Eclipse wrt the Tomcat directory. In any case, I’d install Eclipse, MyEclipse, and Tomcat from a single user account and then run all on that account to minimize problems.
So my next question is…
Is there a way for me to check the permissions of this process? I have similar trouble running a simple ant ‘copy’ target. Although I have no problem running ‘cp’ from a terminal to get the contents of ‘/home/paulcon/workspace/myApp/WebRoot/’ to ‘/usr/local/tomcat5/webapps/myApp/’.
Scott AndersonParticipantI have similar trouble running a simple ant ‘copy’ target.
Paul,
I don’t know how to check the process and even if we could I think we’d simply find the permissions are wrong. If you want to fix the problem effectively, the reinstall is still the best suggestion.
paulconMemberit took me weeks to install fedora, apache, sun’s jdk, tomcat, eclipse, and myeclipse. i really don’t want to reinstall.
if i knew the owner of the process that eclipse/myeclipse was generating to access or write to /usr/local/tomcat/webapps/, then i could adjust the perimission manually as root.
my workaround for now is just to use a shell script to copy the files from WebRoot to webapps and use tomcat’s manager to redeploy the application. it’s cheap and time consuming, but it works.
paulconMemberi had a heck of a time configuring apache and tomcat with Jk the first time, and i fear that a reinstall in my home directory would cause problems with Jk’s permissions.
-
AuthorPosts