[Building Sakai] Not able to upload any file

Steve Swinsburg steve.swinsburg at gmail.com
Tue Feb 23 15:42:24 PST 2010


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
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty.        IT Services
>                        Business Solutions
>                        Outsourcing
> ____________________________________________ 
> 
> 
>  	
> Re: [Building Sakai] Not able to upload any file  Link
> 
> 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
> 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
> Website: 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> 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
> Website: 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
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to 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
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to 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/8359c7c5/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3689 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100224/8359c7c5/attachment.bin 


More information about the sakai-dev mailing list