[Building Sakai] Not able to upload any file

Bristow, Paul PBristow at csu.edu.au
Tue Feb 23 15:59:50 PST 2010


Satish,

The minimum permissions you need for the user that runs sakai are


1.       write on logs, sakai, temp, webapps, and  work directories in your tomcat directory,

2.       execute (and read) on the sh files in bin, and

3.       read throughout the tomcat area (there could be exceptions but unless you've got good reason - eg for some bizarre reason you've got a non tomcat password file in there - I don't think you should limit read access anywhere in tomcat)


I set the sticky bit on logs, sakai, temp, webapps and work but most people would see this as extra paranoia. I think many people actually have the user that runs sakai own the entire tomcat area

----------------------------------------------------
Paul Bristow
Applications Architect
Division of Information Technology
Charles Sturt University
Ph: 02 6051 9959
Fax: 02 6051 9919
pbristow at csu.edu.au
www.csu.edu.au
----------------------------------------------------

YOU MUST READ THIS NOTICE

This email has been sent by Charles Sturt University (ABN 83 878 708 551). This email
(and any attachment) is confidential and is intended for the use of the addressee(s)
only. If you are not the intended recipient of this email you must not copy,
distribute, take any action in reliance on it or disclose it to anyone. Any
confidentiality is not waived or lost by reason of mistaken delivery to you. The
views expressed in this email are not necessarily those of Charles Sturt University.
It is very important that before opening any attachments to this email you check them
for viruses and defects. CSU does not accept liability for any corruption or viruses
or any consequence which arise as a result of this email transmission. Email
communications with CSU may be subject to automated email filtering, which could result
in the delay or deletion of a legitimate email before it is read by its intended
recipient at CSU. Please tell us if you have concerns about this automatic filtering.
The Commonwealth Register of Institutions and Courses for Overseas Students (CRICOS)
Provider Number is 00005F (NSW), 025973E (QLD), and 01947G (VIC) for Charles Sturt
University.
----------------------------------------------------
From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Steve Swinsburg
Sent: Wednesday, 24 February 2010 10:42 AM
To: Satish Agrawal
Cc: sakai-dev at collab.sakaiproject.org
Subject: Re: [Building Sakai] Not able to upload any file

Satish,

You need to sort out the permissions on your Tomcat directory so that the user that has started Tomcat can read and write to the appropriate directories. This is the solution.

Steve


On 23/02/2010, at 10:01 PM, Satish Agrawal wrote:



Hi Steve,

        Awaiting your reply. Please suggest something.

Regards,
Satish Kumar Agrawal
Tata Consultancy Services
Plot No 1, Survey No. 64/2, Software Units Layout
Serilingampally Mandal, Madhapur
Hyderabad - 500034,Andhra Pradesh
India
Buzz:- 040 6667 3318
Mailto: satish.agrawal at tcs.com<mailto:satish.agrawal at tcs.com>
Website: http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________


Re: [Building Sakai] Not able to upload any file  Link<Notes:///6525748200270A65/DABA975B9FB113EB852564B5001283EA/5CF5B9A9E18A74736B3A64983AAB0778>


Satish Agrawal

to:

Steve Swinsburg

02/23/2010 12:24 PM


Cc:

sakai-dev




________________________________


Have moved the common-io-1.4.jar file frmo common/lib to shared/lib folder, its having the same file permission as all the other files present in that directory.

But still we are not able to upload any kind of file. Please help us on this.

regards,
Satish Kumar Agrawal
Tata Consultancy Services
Plot No 1, Survey No. 64/2, Software Units Layout
Serilingampally Mandal, Madhapur
Hyderabad - 500034,Andhra Pradesh
India
Buzz:- 040 6667 3318
Mailto: satish.agrawal at tcs.com<mailto:satish.agrawal at tcs.com>
Website: http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________


Re: [Building Sakai] Not able to upload any file


Steve Swinsburg

to:

Satish Agrawal

02/23/2010 06:33 AM


Cc:

sakai-dev




________________________________



You should have commons-io-1.4.jar in shared/lib and it should be readable by the Tomcat user. Remove the one you put in common/lib and correct the permissions for the user/your Tomcat install.

Also, as from the last problem you had which was related to the permissions, make sure you are *not* using a Tomcat install provided by your operating system. Download and unpack a local one.

cheers,
Steve




On 19/02/2010, at 11:10 PM, Satish Agrawal wrote:


Hi,

       I have tried uploading the common-io*.jar file in tomcat/common/lib folder, but no help. Please suggest how to solve the uploading issue, as i am not able to upload any sort of file anywhere.
       I am getting the below error:

org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: Filter execution threw an exception
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:70)
caused by: org.sakaiproject.tool.api.ToolException: Filter execution threw an exception
  at org.sakaiproject.tool.syllabus.SyllabusFilePickerServlet.sendToHelper(SyllabusFilePickerServlet.java:211)
caused by: javax.servlet.ServletException: Filter execution threw an exception
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
  at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:196)
  at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:358)
  at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
  at org.sakaiproject.util.RequestFilter.handleFileUpload(RequestFilter.java:946)
  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:556)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.help(ActiveToolComponent.java:549)
  at org.sakaiproject.tool.syllabus.SyllabusFilePickerServlet.sendToHelper(SyllabusFilePickerServlet.java:211)
  at org.sakaiproject.tool.syllabus.SyllabusFilePickerServlet.dispatch(SyllabusFilePickerServlet.java:63)
  at org.sakaiproject.jsf.util.JsfTool.doPost(JsfTool.java:256)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:565)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:479)
  at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1216)
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:188)
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:93)
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:70)
  at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1059)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:616)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
  at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
  at java.lang.Thread.run(Thread.java:595)

Regards,

Satish Kumar Agrawal
Tata Consultancy Services
Plot No 1, Survey No. 64/2, Software Units Layout
Serilingampally Mandal, Madhapur
Hyderabad - 500034,Andhra Pradesh
India
Buzz:- 040 6667 3318
Mailto: satish.agrawal at tcs.com<mailto:satish.agrawal at tcs.com>
Website: http://www.tcs.com<http://www.tcs.com/>
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________

Re: [Building Sakai] Not able to upload any file


Akshay Kumar

to:

Satish Agrawal

02/19/2010 03:45 PM




________________________________



HI,

Seems commons-io jar is missing or version is not appropriate.
Suggested due to line: Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream

--
Thanks
Akshay Kumar


On Fri, Feb 19, 2010 at 2:56 PM, Satish Agrawal <satish.agrawal at tcs.com<mailto:satish.agrawal at tcs.com>> wrote:

Hi,

       I am getting the below error while uploading any file in sakai.

       org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: Filter execution threw an exception
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:70)
caused by: org.sakaiproject.tool.api.ToolException: Filter execution threw an exception
  at org.sakaiproject.tool.syllabus.SyllabusFilePickerServlet.sendToHelper(SyllabusFilePickerServlet.java:211)
caused by: javax.servlet.ServletException: Filter execution threw an exception
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
  at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:196)
  at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:358)
  at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
  at org.sakaiproject.util.RequestFilter.handleFileUpload(RequestFilter.java:946)
  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:556)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.help(ActiveToolComponent.java:549)
  at org.sakaiproject.tool.syllabus.SyllabusFilePickerServlet.sendToHelper(SyllabusFilePickerServlet.java:211)
  at org.sakaiproject.tool.syllabus.SyllabusFilePickerServlet.dispatch(SyllabusFilePickerServlet.java:63)
  at org.sakaiproject.jsf.util.JsfTool.doPost(JsfTool.java:256)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:565)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:479)
  at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1216)
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:188)
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:93)
  at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:70)
  at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1059)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:616)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
  at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
  at java.lang.Thread.run(Thread.java:595)

Please help me in this regard. Let me know if i am missing any jar files or other thing.

Regards,
Satish Kumar Agrawal
Tata Consultancy Services
Plot No 1, Survey No. 64/2, Software Units Layout
Serilingampally Mandal, Madhapur
Hyderabad - 500034,Andhra Pradesh
India
Buzz:- 040 6667 3318
Mailto: satish.agrawal at tcs.com<mailto:satish.agrawal at tcs.com>
Website: http://www.tcs.com<http://www.tcs.com/>
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you




_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"



--
Akshay Kumar


=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"


=====-----=====-----=====

Notice: The information contained in this e-mail

message and/or attachments to it may contain

confidential or privileged information. If you are

not the intended recipient, any dissemination, use,

review, distribution, printing or copying of the

information contained in this e-mail message

and/or attachments to it are strictly prohibited. If

you have received this communication in error,

please notify us by reply e-mail or telephone and

immediately and permanently delete the message

and any attachments. Thank you





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100224/7b16475f/attachment.html 


More information about the sakai-dev mailing list