You are not logged in.
Pages: 1
Every time I try to run a project (using tomcat6) from Eclipse, I always get this message:
Publishing failed with multiple errors
Error copying file META-INF/MANIFEST.MF: Permission denied
Error copying file WEB-INF/classes/com/anta40/filecounter/servlets/FileCounter.class: Permission denied
Error copying file WEB-INF/classes/com/anta40/filecounter/FileDAO.class: Permission denied
Error copying file WEB-INF/web.xml: Permission denied
I'm confused. Maybe some directories are not writeable? So I take a look at the console log, and find this:
SEVERE: The scratchDir you specified: /usr/share/tomcat6/work/Catalina/localhost/examples is unusable.
Feb 10, 2012 12:49:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Feb 10, 2012 12:49:55 AM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: /usr/share/tomcat6/work/Catalina/localhost/docs is unusable.
Feb 10, 2012 12:49:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Feb 10, 2012 12:49:55 AM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: /usr/share/tomcat6/work/Catalina/localhost/_ is unusable.
Feb 10, 2012 12:49:55 AM org.apache.coyote.http11.Http11AprProtocol start
/usr/share/tomcat6/work/Catalina/localhost/* is not unusable.
Hmm not sure why. I already chmod 777'ed it.
OK this maybeis not a good practice, but at least this runs on my laptop, not production server.
Offline
Offline
You mean like this?
$ cd /var/tmp/tomcat6
$ su
$ chown -Rf tomcat work/
$ chmod 755 work/ -Rf
Still doesn't work...
Offline
Any help?
I'm still cannot figure this out.
Offline
Pages: 1