<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 31: Installation problem [solved] and zip file creation</title><link href="https://sourceforge.net/p/webdisk/support-requests/31/" rel="alternate"/><link href="https://sourceforge.net/p/webdisk/support-requests/31/feed.atom" rel="self"/><id>https://sourceforge.net/p/webdisk/support-requests/31/</id><updated>2012-04-17T00:03:36Z</updated><subtitle>Recent changes to 31: Installation problem [solved] and zip file creation</subtitle><entry><title>Installation problem [solved] and zip file creation</title><link href="https://sourceforge.net/p/webdisk/support-requests/31/" rel="alternate"/><published>2012-04-17T00:03:36Z</published><updated>2012-04-17T00:03:36Z</updated><author><name>Massimo</name><uri>https://sourceforge.net/u/omissam3/</uri></author><id>https://sourceforge.net14d0dbb97bdbc674c2abb293940fbf7f491b8225</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;General:&lt;br /&gt;
- Webdisk version 0.44&lt;/p&gt;
&lt;p&gt;Environment:&lt;br /&gt;
- Server platform CentOS V5.7&lt;br /&gt;
- Web-server platform Apache Tomcat 5.5.23&lt;br /&gt;
- Client platform Windows XP ServicePack 3 and Windows 7 Service Pack 1&lt;br /&gt;
- Used webbrowser Firefox 10.0.2,  Internet Explorer 8.0 and Internet Explorer 9.0&lt;/p&gt;
&lt;p&gt;About Me:&lt;br /&gt;
- My name : Massimo&lt;br /&gt;
- My role : User/Tester&lt;/p&gt;
&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have started testing IntegraTUM WebDisk to see if some ways can be helpful to reach samba shares via web.&lt;br /&gt;
Following the instructions I have extracted the .tar.gz to /var/lib/tomcat5/webapps/ba (this is my case using CentOS 5.7 and Tomcat 5.5.23)&lt;br /&gt;
having /var/lib/tomcat5/webapps/ba/webapp/functions.js and so on.&lt;br /&gt;
I have created the application ”ba” placing a new .xml in /etc/tomcat5/Catalina/locahost named ba.xml with the following contents :&lt;/p&gt;
&lt;p&gt;&amp;lt;Context path="/ba" docBase="/var/lib/tomcat5/webapps/ba/webapp" debug="0" reloadable="false"&amp;gt;&lt;br /&gt;
&amp;lt;Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" /&amp;gt;&lt;br /&gt;
&amp;lt;/Context&amp;gt;&lt;/p&gt;
&lt;p&gt;Renamed and personalized webapp/WEB-INF/web_default.xml to webapp/WEB-INF/web.xml&lt;br /&gt;
After restarting Tomcat, browsing to &lt;a href="http://localhost:9080/ba/base" rel="nofollow"&gt;http://localhost:9080/ba/base&lt;/a&gt; the answer was :&lt;/p&gt;
&lt;p&gt;HTTP Status 404 - /ba/base&lt;br /&gt;
The requested resource (/ba/base) is not available.&lt;/p&gt;
&lt;p&gt;Looking at /var/log/tomcat5/catalina.out the output was:&lt;/p&gt;
&lt;p&gt;Using CATALINA_BASE:   /usr/share/tomcat5&lt;br /&gt;
Using CATALINA_HOME:   /usr/share/tomcat5&lt;br /&gt;
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp&lt;br /&gt;
Using JRE_HOME:     &lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent&lt;br /&gt;
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_30/jre/lib/i386/client:/usr/java/jdk1.6.0_30/jre/lib/i386:/usr/java/jdk1.6.0_30/jre/../lib/i386:/usr/share/tomcat5/GNUstep/Library/Libraries:/usr/local/lib:/usr/lib:/usr/java/packages/lib/i386:/lib:/usr/lib&lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.coyote.http11.Http11BaseProtocol init&lt;br /&gt;
INFO: Initializing Coyote HTTP/1.1 on http-9080&lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.catalina.startup.Catalina load&lt;br /&gt;
INFO: Initialization processed in 705 ms&lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.catalina.core.StandardService start&lt;br /&gt;
INFO: Starting service Catalina&lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.catalina.core.StandardEngine start&lt;br /&gt;
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23&lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.catalina.core.StandardHost start&lt;br /&gt;
INFO: XML validation disabled&lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.catalina.startup.HostConfig deployDescriptor&lt;br /&gt;
WARNING: A docBase /var/lib/tomcat5/webapps/ba/webapp inside the host appBase has been specified, and will be ignored&lt;br /&gt;
Apr 16, 2012 11:46:37 PM org.apache.catalina.session.PersistentManagerBase start&lt;br /&gt;
SEVERE: No Store configured, persistence disabled&lt;br /&gt;
[configs] Using compression level: 2&lt;br /&gt;
[configs] Direct zip download is: false&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.coyote.http11.Http11BaseProtocol start&lt;br /&gt;
INFO: Starting Coyote HTTP/1.1 on http-9080&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Hosts&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering WebModule Contexts&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Servlets&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.jk.common.ChannelSocket init&lt;br /&gt;
INFO: JK: ajp13 listening on /0.0.0.0:9009&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.jk.server.JkMain start&lt;br /&gt;
INFO: Jk running ID=0 time=0/63  config=null&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Hosts&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering WebModule Contexts&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Servlets&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.storeconfig.StoreLoader load&lt;br /&gt;
INFO: Find registry server-registry.xml at classpath resource&lt;br /&gt;
Apr 16, 2012 11:46:38 PM org.apache.catalina.startup.Catalina start&lt;br /&gt;
INFO: Server startup in 927 ms&lt;/p&gt;
&lt;p&gt;And /var/log/tomcat5/localhost_access_log.2012-04-16.txt :&lt;/p&gt;
&lt;p&gt;127.0.0.1 - - [16/Apr/2012:23:48:17 + 0100] "GET /ba/base HTTP/1.1" 404 976&lt;/p&gt;
&lt;p&gt;After this I decided to extract again the .tar.gz but this time upper of one level so having /var/lib/tomcat5/webapps/ba/functions.js, and to rebuild&lt;br /&gt;
the ba.xml like following also to avoid the "SEVERE: No Store configured, persistence disabled" error message :&lt;/p&gt;
&lt;p&gt;&amp;lt;Context path="/ba" docBase="ba" debug="0" reloadable="false"&amp;gt;&lt;br /&gt;
&amp;lt;Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"&amp;gt;&lt;br /&gt;
&amp;lt;Store className="org.apache.catalina.session.FileStore"/&amp;gt;&lt;br /&gt;
&amp;lt;/Manager&amp;gt;&lt;br /&gt;
&amp;lt;/Context&amp;gt;&lt;/p&gt;
&lt;p&gt;Restarted Tomcat browsing to &lt;a href="http://localhost:9080/ba/base" rel="nofollow"&gt;http://localhost:9080/ba/base&lt;/a&gt; I finally seen the login page&lt;/p&gt;
&lt;p&gt;Looking at /var/log/tomcat5/catalina.out the output now is :&lt;/p&gt;
&lt;p&gt;Using CATALINA_BASE:   /usr/share/tomcat5&lt;br /&gt;
Using CATALINA_HOME:   /usr/share/tomcat5&lt;br /&gt;
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp&lt;br /&gt;
Using JRE_HOME:     &lt;br /&gt;
Apr 16, 2012 11:58:13 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent&lt;br /&gt;
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_30/jre/lib/i386/client:/usr/java/jdk1.6.0_30/jre/lib/i386:/usr/java/jdk1.6.0_30/jre/../lib/i386:/usr/share/tomcat5/GNUstep/Library/Libraries:/usr/local/lib:/usr/lib:/usr/java/packages/lib/i386:/lib:/usr/lib&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.coyote.http11.Http11BaseProtocol init&lt;br /&gt;
INFO: Initializing Coyote HTTP/1.1 on http-9080&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.startup.Catalina load&lt;br /&gt;
INFO: Initialization processed in 708 ms&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.core.StandardService start&lt;br /&gt;
INFO: Starting service Catalina&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.core.StandardEngine start&lt;br /&gt;
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.core.StandardHost start&lt;br /&gt;
INFO: XML validation disabled&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.startup.HostConfig deployDescriptor&lt;br /&gt;
WARNING: A docBase /var/lib/tomcat5/webapps/ba inside the host appBase has been specified, and will be ignored&lt;br /&gt;
[configs] Using compression level: 2&lt;br /&gt;
[configs] Direct zip download is: false&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.coyote.http11.Http11BaseProtocol start&lt;br /&gt;
INFO: Starting Coyote HTTP/1.1 on http-9080&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Hosts&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering WebModule Contexts&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Servlets&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.jk.common.ChannelSocket init&lt;br /&gt;
INFO: JK: ajp13 listening on /0.0.0.0:9009&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.jk.server.JkMain start&lt;br /&gt;
INFO: Jk running ID=0 time=0/28  config=null&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Hosts&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering WebModule Contexts&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.connector.MapperListener init&lt;br /&gt;
INFO: Registering Servlets&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.storeconfig.StoreLoader load&lt;br /&gt;
INFO: Find registry server-registry.xml at classpath resource&lt;br /&gt;
Apr 16, 2012 11:58:14 PM org.apache.catalina.startup.Catalina start&lt;br /&gt;
INFO: Server startup in 945 ms&lt;/p&gt;
&lt;p&gt;And /var/log/tomcat5/localhost_access_log.2012-01-16.txt :&lt;/p&gt;
&lt;p&gt;127.0.0.1 - - [16/Apr/2012:23:58:17 + 0100] "GET /ba/base HTTP/1.1" 302 -&lt;br /&gt;
127.0.0.1 - - [16/Apr/2012:23:58:17 + 0100] "GET /ba/base/ HTTP/1.1" 200 1624&lt;br /&gt;
127.0.0.1 - - [16/Apr/2012:23:58:17 + 0100] "GET /ba/function.js HTTP/1.1" 200 3413&lt;br /&gt;
127.0.0.1 - - [16/Apr/2012:23:58:17 + 0100] "GET /ba/style.css HTTP/1.1" 200 3010&lt;br /&gt;
127.0.0.1 - - [16/Apr/2012:23:58:17 + 0100] "GET /ba/login_logo.gif HTTP/1.1" 200 2371&lt;/p&gt;
&lt;p&gt;Now I can log on, browse, download and upload files. But I found the button "Make Zip" does not work.&lt;br /&gt;
Choosing the file I want to compress and selecting "Make Zip" the result is, after the popup message "buildZip: Created zipfile", an empty zip file.&lt;br /&gt;
log4j.log tells only "Adding smb://IPADDRESS/docuemts/MyFile.xls.zip"&lt;br /&gt;
The only relevant message I found is inside /var/log/samba/jcifs1_1_d7.log :&lt;/p&gt;
&lt;p&gt;[2012/04/17 01:20:21, 2] lib/smbldap.c:smbldap_open_connection(786)&lt;br /&gt;
smbldap_open_connection: connection opened&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_sam_from_ldap(545)&lt;br /&gt;
init_sam_from_ldap: Entry found for user: utente&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 2] auth/auth.c:check_ntlm_password(309)&lt;br /&gt;
check_ntlm_password:  authentication for user [utente] -&amp;gt; [utente] -&amp;gt; [utente] succeeded&lt;br /&gt;
[2012/04/17 01:20:21, 2] lib/access.c:check_access(323)&lt;br /&gt;
Allowed connection from  (10.0.1.1)&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 1] smbd/service.c:make_connection_snum(1077)&lt;br /&gt;
jcifs1_1_d7 (10.0.1.1) connect to service documents initially as user utente (uid=1000, gid=1000) (pid 17500)&lt;br /&gt;
[2012/04/17 01:20:21, 2] smbd/open.c:open_file(391)&lt;br /&gt;
utente opened file ./MyFile.xls.zip read=No write=No (numopen=1)&lt;br /&gt;
[2012/04/17 01:20:21, 2] smbd/close.c:close_normal_file(406)&lt;br /&gt;
utente closed file ./MyFile.xls.zip (numopen=0) NT_STATUS_OK&lt;br /&gt;
[2012/04/17 01:20:21, 2] lib/access.c:check_access(323)&lt;br /&gt;
Allowed connection from  (10.0.1.1)&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_sam_from_ldap(545)&lt;br /&gt;
init_sam_from_ldap: Entry found for user: utente&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_sam_from_ldap(545)&lt;br /&gt;
init_sam_from_ldap: Entry found for user: utente&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)&lt;br /&gt;
init_group_from_ldap: Entry found for group: 1000&lt;br /&gt;
[2012/04/17 01:20:21, 1] smbd/service.c:make_connection_snum(1077)&lt;br /&gt;
jcifs1_1_d7 (10.0.1.1) connect to service utente initially as user utente (uid=1000, gid=1000) (pid 17500)&lt;br /&gt;
[2012/04/17 01:20:21, 2] lib/access.c:check_access(323)&lt;br /&gt;
Allowed connection from  (10.0.1.1)&lt;br /&gt;
[2012/04/17 01:20:24, 2] smbd/open.c:open_file(391)&lt;br /&gt;
utente opened file MyFile.xls.zip read=Yes write=Yes (numopen=1)&lt;br /&gt;
[2012/04/17 01:21:24, 2] smbd/close.c:close_normal_file(406)&lt;br /&gt;
utente closed file MyFile.xls.zip (numopen=0) NT_STATUS_OK&lt;br /&gt;
[2012/04/17 01:21:24, 1] smbd/service.c:close_cnum(1274)&lt;br /&gt;
jcifs1_1_d7 (10.0.1.1) closed connection to service documents&lt;br /&gt;
[2012/04/17 01:21:24, 1] smbd/service.c:close_cnum(1274)&lt;br /&gt;
jcifs1_1_d7 (10.0.1.1) closed connection to service utente&lt;br /&gt;
[2012/04/17 01:21:24, 0] lib/util_sock.c:write_data(568)&lt;br /&gt;
write_data: write failure in writing to client 10.0.1.1. Error Broken pipe&lt;br /&gt;
[2012/04/17 01:21:24, 0] lib/util_sock.c:send_smb(767)&lt;br /&gt;
Error writing 39 bytes to client. -1. (Broken pipe)&lt;/p&gt;
&lt;p&gt;Any hints&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Massimo&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>