Re: Error when installing Cocoon 2.1.8 under Tomcat 5.5.9
You're right. When I installed it (under my own user name) it gave some of the sub-subdirectories to root--I don't know why it does this. I chmoded everything under tomcat to myself and hope this doesn't create any security problems. Thanks. Joe Bertrand Delacretaz wrote: Le 22 nov. 05, à 17:11, Joseph Hill a écrit : No, but the error that you got indicates that the multipart RequestFactory could not access its upload director. So it is a directory permission problem, which obviously goes away when running as root (maybe because you started tomcat as root first and it created this directory). Here's the code around line 61 of src/java/org/apache/cocoon/servlet/multipart/RequestFactory.java: if (saveUploadedFilesToDisk) { // Empty the contents of the upload directory File[] files = uploadDirectory.listFiles(); for (int i = 0; i < files.length; i++) { files[i].delete(); } } I haven't checked but IIRC, by default the uploads to somewhere under the WEB-INF of your Cocoon webapp, you should check access rights there. -Bertrand -- Joseph Hill Doctoral Candidate Department of Anthropology Yale University 51 Hillhouse Avenue New Haven, CT 06520 203-231-4983 http://pantheon.yale.edu/~jbh34 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when installing Cocoon 2.1.8 under Tomcat 5.5.9
Le 22 nov. 05, à 17:11, Joseph Hill a écrit : I restarted it as root and this time it worked. Do you have to be root to start Cocoon under Tomcat... No, but the error that you got indicates that the multipart RequestFactory could not access its upload director. So it is a directory permission problem, which obviously goes away when running as root (maybe because you started tomcat as root first and it created this directory). Here's the code around line 61 of src/java/org/apache/cocoon/servlet/multipart/RequestFactory.java: if (saveUploadedFilesToDisk) { // Empty the contents of the upload directory File[] files = uploadDirectory.listFiles(); for (int i = 0; i < files.length; i++) { files[i].delete(); } } I haven't checked but IIRC, by default the uploads to somewhere under the WEB-INF of your Cocoon webapp, you should check access rights there. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: Error when installing Cocoon 2.1.8 under Tomcat 5.5.9
I restarted it as root and this time it worked. Do you have to be root to start Cocoon under Tomcat or is this a fluke that has to do with my settings? Thanks. Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error when installing Cocoon 2.1.8 under Tomcat 5.5.9
I built Cocoon 2.1.8 and then put the cocoon.war file in Tomcat 5.5.9's webapp directory and then when I started Tomcat and went to the Cocoon page I got the error messages below. I'm running Mandrake 10 and am using Java 1.5.0-4. Any ideas on what causes this and how to fix it? exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NullPointerException org.apache.cocoon.servlet.multipart.RequestFactory.(RequestFactory.java:61) org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:491) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) -- Joseph Hill Doctoral Candidate Department of Anthropology Yale University 51 Hillhouse Avenue New Haven, CT 06520 203-231-4983 http://pantheon.yale.edu/~jbh34 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]