I'm setting up my JavaEE environment with IntelliJ Idea 2016.3.5 at my Mac, Sierra. My Tomcat live at /usr/local/3th party app/appache-tomcat-8.0.36./. I'm not able to use another Tomcat, e.g. somewhere at /User folder, where I deploy the webapp.
Error running Tomcat: Cannot run program "/usr/local/app/apache-tomcat-8.0.36/" (in directory "/usr/local/app/apache-tomcat-8.0.36/bin"): error=13, Permission denied
My question:
How can I get the access to this Tomcat folder when I set the path to tool settings for IntelliJ's external tool?
You must ensure that you are able to read your tomcat directory.
Open terminal and locate your tomcat directory. Run this command:
chmod -R 777 usr/local/app/apache-tomcat-8.0.36/
That should allow you to run the tomcat server as an external tool in IntelliJ IDEA.
I installed Sencha successfully. Try to create Sencha application and integrate with Laravel, but on the application creation getting below errors.
$ sencha -sdk /var/www/html/simple-laravel-login-authentication-master/public/myapps/ext-6.0.1 generate app loginapp5 /var/www/html/simple-laravel-login-authentication-master/public/myapps/see/loginapp5
Error:
Sencha Cmd v6.2.0.103
[ERR] Directory /var/www/html/simple-laravel-login-authentication-master/public/myapps/see/loginapp5/packages
creation was not successful for an unknown reason
[ERR]
The application was last modified by an older version of Sencha Cmd (6.0.1.67).
Running "sencha package upgrade" may resolve the error described above.
I am able to create the app in separate folder using above method,
but in above case, what is wrong ?
In my case, if the user do not have write permission it' getting above error.
I changed folder permission
by using
sudo chmod 777 /see
This resolved my issue.
I'm trying to run iRods Rest in Tomcat 7. The only problem is that when I'm in the manager page, I have the list of application. All of them runs exept iRods Rest and if I try to push "start" I get:
FAIL - Application at context path /irods-rest could not be started
This is the steps that I had follow:
Installation of Tomcat 7 (https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get)
Installation of maven 3
git clone https://github.com/DICE-UNC/irods-rest.git
cd irods-rest
mvn package -Dmaven.test.skip=true
Upload of the .war file on the manager page host:8080
Tell me if you need more informations or the question is too specific.
I was getting the same error, but then I looked at the logs contained in /var/log/tomcat/localhost.x-x-x.log (CentOS 7):
java.io.FileNotFoundException: /etc/irods-ext/irods-rest.properties (No such file or directory)
So I created the directory and properties file:
mkdir /etc/irods-ext
vi /etc/irods-ext/irods-rest.properties
And added the following contents (found template in https://github.com/DICE-UNC/irods-rest/blob/master/docs/iRODSRESTAPIDocumentation.pdf):
irods.host=localhost
irods.port=1247
irods.zone=tempZone
utilize.packing.streams=true
auth.type=STANDARD
default.storage.resource=
web.interface.url=
cors.allow=true
Now everything seems to be working after I start the irods-rest application from the Tomcat manager page.
I am trying openshift DIY cartridge. I use a windows system to manage the server from command line. I managed to run a simple html5 website. I have deleted the testrubyserver.ruby file from the webpage folder for test purposed and then added it again to my webfolder. Now i have 503 error. No restart, no stop, no start helps. I am stuck in 503. Does anyone know what to do? How can I make the testrubyserver.ruby run again?
Solved my problem. I checked the log file in the folder: app-root / logs. There I found out that
nohup: failed to run command `/..//testrubyserver.rb': Permission denied
I change in filezilla the permissions for the file from rw to rwx to execute it. Restarted the server and then it worked.
I do not know if this is the right approach. At least it makes my app running again.
I have a freshly installed Tomcat 7 server, and I'm trying to make IntelliJ deploy a HelloWorld Spring MVC app to Tomcat.
My Tomcat home is /usr/share/tomcat7 and Tomcat base is /var/lib/tomcat7
However, when I try to run the project, IntelliJ throws an error saying:
Error running Tomcat : Error copying configuration files from /var/lib/tomcat7/conf to /home/adonis/.IntelliJIdea12/system/tomcat/Tomcat__SpringMVCApp/conf : /var/lib/tomcat7/conf/tomcat-users.xml (Permission denied)
Here is a screenshot - http://i.imgur.com/CQ3z0e1.png
Any permissions I need to set up?
Try chmod -R 777 /var/lib/tomcat7/conf/, it works to me.
Make sure that files under /var/lib/tomcat7/conf/ directory have read permission for the user IntelliJ IDEA is running from.
chmod -R 644 /var/lib/tomcat7/conf/
should help.
Also check that /home/adonis/.IntelliJIdea12/system/tomcat/ has correct permissions and owner. Could be that it was created from a different user and your current user doesn't have the rights to write into it.
If it doesn't help, download and unpack a new Tomcat installation from .tar.gz file, configure IDEA to use this installation instead.
Note that Tomcat installed using the package manager on some Linux systems has non-standard layout and permissions, and therefore will not work with IDEA.
I had the same problem and these steps helped me to Start my tomcat7 from Intellij :
I have Linux Mint 17,and Tomcat 7 which is installed using apt-get
CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7
1- First I created a soft link which references /etc/tomcat7
cd /usr/share/tomcat7
ln -s /etc/tomcat7 conf
2- Then you have to change the access permissions of /etc/tomcat7
sudo chmod -R 655 /etc/tomcat7/
That's it.
For me, this worked for Tomcat 8 on Manjaro Linux:
sudo chmod -R 755 /usr/share/tomcat8/
I added my own user account to the tomcat7 group.
And chmod g+r /var/lib/tomcat7/conf/tomcat-users.xml
Had the same error with usr/share, dont just blindly run a command to act as magic-wand as many just tell you you run this and that on a mother-directory.
this is Linux, always some stupid thing with the permissions.
all you garra do is using chmod 666 or chmod 777 on files that are causing the error, but you need to look at those files first using ll and ls to make sure you are not decreasing some access, you may have a directory with 77x and when you do 666 you mess things up.
just gradually and one by one increase the chmod level and check whether problem goes away or not.
Sorry I didn't give you some code to fix all the problems.
This also happens to me, and I managed to solve it for Tomcat version 9, this problem is related to the configuration of Tomcat and you just need to give it permissions to be deployed.
You can use this link for more instructions.