I am new to Tomcat on Windows. I am trying to deploy my Java project which I have made in RHEL 5 using Tomcat. Now I want to run that project on window. So I copied and past
I was facing the similar problem on ubuntu 14.04. I was doing some analysis and dropped the work folder manually. Then while running the tomcat server I was getting same exception. The issue was, when we access the manager application of tomcat, it requires jsp page to display the content, and JSP page is rendered from the generated class file which resides in work/Catalina/localhost/.... folder.
I created the work directory manually, however the problem was still not solved.
Then I realized that, because I manually created the work directory tomcat7 user didn't have the permission to write on that directory. Changed the owner for work directory from root to tomcat7
sudo chown tomcat7 work
restart tomcat service tomcat restart
.
Problem solved.
Hope this helps
Grant all permissions to the tomcat directory.
sudo chmod -R 777 /path/to/tomcat/directory
mine was "/opt/tomcat/
"
It worked for me. Hope it helps.
Note : Don't forget
sudo
I have given complete access to my Tomcat Directory. Now i am not getting this error. Thanks !!
I have changed the permissions for the work directory and it's working...
Steps:
1. Go to the directory where tomcat is present
2. Execute the command:
sudo chmod 777 work
As your start tomcat as the root account firstly, the work folder was already created. You run tomcat as the account tomcat, as tomcat account has no permission to the folder ./work, so throw the exception. To solve it, ps remove ./work, and then restart tomcat by the tomcat user.
give the full permission to tomcat directory and then restart the service.It will works for me ,I hope this will work you as well.