Skinning and java scripts not works on restricted hosting
---------------------------------------------------------
Key: ADFFACES-304
URL: http://issues.apache.org/jira/browse/ADFFACES-304
Project: MyFaces ADF-Faces
Issue Type: Bug
Environment: Goddady Linux hosting with java support (Tomcat 5.0.27,
java 1.5.0_06-b05)
System properties:
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path = /usr/java/jdk1.5.0_06/jre/lib/i386
java.vm.version = 1.5.0_06-b05
shared.loader =
${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
java.vm.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
path.separator = :
java.vm.name = Java HotSpot(TM) Server VM
file.encoding.pkg = sun.io
user.country = US
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /
java.runtime.version = 1.5.0_06-b05
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /web/tomcat/common/endorsed
os.arch = i386
java.io.tmpdir = /web/tomcat/temp
line.separator =
java.vm.specification.vendor = Sun Microsystems Inc.
java.naming.factory.url.pkgs = org.apache.naming
os.name = Linux
java.security.manager =
sun.jnu.encoding = ANSI_X3.4-1968
java.library.path =
/usr/java/jdk1.5.0_06/jre/lib/i386/server:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386
java.specification.name = Java Platform API Specification
java.class.version = 49.0
sun.management.compiler = HotSpot Server Compiler
os.version = 2.4.21-40.ELsmp
user.home = /root
user.timezone = America/Phoenix
java.security.policy = =/web/tomcat/conf/catalina.policy
catalina.useNaming = true
java.awt.printerjob = sun.print.PSPrinterJob
java.specification.version = 1.5
file.encoding = ANSI_X3.4-1968
catalina.home = /web/tomcat
user.name = root
java.class.path =
/usr/local/java/lib/tools.jar:/web/tomcat/bin/bootstrap.jar:/web/tomcat/bin/commons-logging-api.jar
java.naming.factory.initial = org.apache.naming.java.javaURLContextFactory
package.definition =
sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
java.vm.specification.version = 1.0
sun.arch.data.model = 32
java.home = /usr/java/jdk1.5.0_06/jre
java.specification.vendor = Sun Microsystems Inc.
user.language = en
java.vm.info = mixed mode
java.version = 1.5.0_06
java.ext.dirs = /usr/java/jdk1.5.0_06/jre/lib/ext
sun.boot.class.path =
/web/tomcat/common/endorsed/xercesImpl.jar:/web/tomcat/common/endorsed/xml-apis.jar:/usr/java/jdk1.5.0_06/jre/lib/rt.jar:/usr/java/jdk1.5.0_06/jre/lib/i18n.jar:/usr/java/jdk1.5.0_06/jre/lib/sunrsasign.jar:/usr/java/jdk1.5.0_06/jre/lib/jsse.jar:/usr/java/jdk1.5.0_06/jre/lib/jce.jar:/usr/java/jdk1.5.0_06/jre/lib/charsets.jar:/usr/java/jdk1.5.0_06/jre/classes
java.vendor = Sun Microsystems Inc.
server.loader =
${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
catalina.base = /web/tomcat
file.separator = /
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
common.loader =
${catalina.home}/common/classes,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar
sun.cpu.endian = little
sun.io.unicode.encoding = UnicodeLittle
package.access =
sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
sun.cpu.isalist =
http://www.lostcd.com/jsp-examples/snp/sysinfo.jsp
Reporter: Siarhei Berdachuk
I'm build trinidad examples from sources, they works fine on my local host
(Windows XP, Tomcat 5.0.28, j2sdk 1.5.0_7) but when I try deploy them to
godaddy's java enabled Linux hosting (Linux, Tomcat 5.0.27, 1.5.0_06-b05), this
examples not works.
I'.m created trinidad demo build from source code 2006.11.19 and deployed this
demo to:
http://www.berdaflex.com/trinidad_demo/faces/index.jspx
When I open this page I see index.jspx, but without CSS and without any
reaction when select links.
I got only one error in log file:
[Mon Nov 20 14:43:51 2006] [error] [client 87.252.229.237] File does not
exist:
/var/chroot/home/content/b/e/r/berdachuk/html/trinidad_demo/adf/jsLibs/Common11-
m7.js
Hosting server configuration: http://www.lostcd.com/jsp-examples/snp/sysinfo.jsp
Then I'm deployed Tomcat jsp examles there and they are works fine:
http://www.lostcd.com/jsp-examples/index.html
I found articles:
http://www.oisv.com/articles/web_design/godaddy_gotchas/
and
http://www.oisv.com/articles/development/gojava_lessons_on_writing_java_applications_for_godaddy_shared_hosting/
where described about some file permission restrictions for writing.
Part from it: "In retrospect, this is fairly obvious since all users on
the shared server run under the same Java virtual machine instance.
Tomcat and Java just do not have the fine-grained ability to assigned
directory-based permissions in such as configuration."
Trinidad generates some files such as CSS file and java scripts at runtime and
can not access them, such as file writing permitted only to temporaly directory.
And there is not possibility to grant WRITE permissions to other folders.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira