[Building Sakai] Not able to upload any file

Steve Swinsburg steve.swinsburg at gmail.com
Thu Feb 25 14:58:53 PST 2010


Hi Satish,

Assuming you have a correctly setup Tomcat (unpacked and the conf/server.xml configured for UTF-8) you should be able to just build: 'mvn clean install sakai:deploy -Dmaven.tomcat.home=/path/to/tomcat', startup and be on your way. You don't need to manually put anything else anywhere as that is done in the deploy phase, again, assuming Tomcat is setup properly.
I have no idea why you are having so much difficulty here, I still think it's some sort of permissions issue.

If you could try a local build and deployment (ie create a new user and in that user's home directory deploy a fresh tomcat, grab the source and build to that tomcat, then startup) that would help a great deal.

You could also try grabbing the demo and starting that up, it contains a Tomcat instance and all you need to do is unpack and start.

cheers,
Steve



On 26/02/2010, at 12:29 AM, Satish Agrawal wrote:

> 
> Hi Steve, 
> 
>         Do we need to put any jar file like common-file-upload.jar or commons-io.jar in the JAVA_HOME/lib directory or some other location of java also. Please let me know any solution to 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/24/2010 05:13 AM
> 
> Cc: 	sakai-dev
> 
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> =====-----=====-----=====
> 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/20100226/59b05b9d/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/20100226/59b05b9d/attachment.bin 


More information about the sakai-dev mailing list