Tyrantxiang / google-refine

Automatically exported from code.google.com/p/google-refine
Other
0 stars 0 forks source link

Read-only application folder fix #503

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When application folder is read-only the following warning appears in stdout on 
Linux

*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/jetty-6.1.22.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/jetty-6.1.22.jar'
*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/google-refine-2.5-r2394-server.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/google-refine-2.5-r2394-server.jar'
*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/slf4j-api-1.5.6.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/slf4j-api-1.5.6.jar'
*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/slf4j-log4j12-1.5.6.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/slf4j-log4j12-1.5.6.jar'
*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/jdatapath-alpha2.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/jdatapath-alpha2.jar'
*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/jetty-util-6.1.22.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/jetty-util-6.1.22.jar'
*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/log4j-1.2.15.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/log4j-1.2.15.jar'
*sys-package-mgr*: processing new jar, 
'/opt/google-refine-2.5/server/lib/servlet-api-2.5.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/google-refine-2.5/server/lib/servlet-api-2.5.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/resources.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/resources.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/rt.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/rt.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/jsse.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/jsse.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/jce.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/jce.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/charsets.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/charsets.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/localedata.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/localedata.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/dnsns.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/dnsns.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/sunpkcs11.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/sunpkcs11.jar'
*sys-package-mgr*: processing new jar, 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/sunjce_provider.jar'
*sys-package-mgr*: can't write cache file for 
'/opt/java/jdk-oracle/jdk1.6.0_29/jre/lib/ext/sunjce_provider.jar'
*sys-package-mgr*: can't write index file

Please, consider adding the following patch to fix this problem

--- refine.bak  2011-12-04 11:59:28.557698279 +0400
+++ refine  2011-12-04 12:02:55.509695207 +0400
@@ -933,6 +933,15 @@
     add_option "-D$REFINE_EXTRA_OPTS"
 fi

+if [ -z "$JYTHONPATH" ] ; then
+    JYTHONPATH="$REFINE_WEBAPP/WEB-INF/lib/jython"
+else
+    JYTHONPATH="$REFINE_WEBAPP/WEB-INF/lib/jython${SEP}$JYTHONPATH"
+fi
+
+add_option "-Dpython.path=$JYTHONPATH"
+add_option "-Dpython.cachedir=$HOME/.local/share/google/refine/cachedir"
+
 # ----- Respond to the action given --------------------------------------------

 case "$ACTION" in

Original issue reported on code.google.com by mazurkin on 4 Dec 2011 at 10:48

GoogleCodeExporter commented 8 years ago

Original comment by tfmorris on 27 Dec 2011 at 9:10

GoogleCodeExporter commented 8 years ago

Original comment by tfmorris on 19 Sep 2012 at 11:21

GoogleCodeExporter commented 8 years ago
Issue 296 has been merged into this issue.

Original comment by tfmorris on 19 Sep 2012 at 11:34

GoogleCodeExporter commented 8 years ago
Thanks for the patch!  Patch applied in r2567

Original comment by tfmorris on 20 Sep 2012 at 5:19