Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 35227 invoked from network); 4 Jul 2005 15:48:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jul 2005 15:48:13 -0000 Received: (qmail 39051 invoked by uid 500); 4 Jul 2005 15:48:07 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 38995 invoked by uid 500); 4 Jul 2005 15:48:07 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 38971 invoked by uid 99); 4 Jul 2005 15:48:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 08:48:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.23.180.51] (HELO mail.netonomy.com) (62.23.180.51) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 04 Jul 2005 08:48:08 -0700 Received: from exchsrv2.paris.netonomy.com [192.168.0.35] by mail.netonomy.com with XWall v3.30 ; Mon, 4 Jul 2005 17:48:01 +0200 Received: from gcollin.paris.netonomy.com ([192.168.10.4]) by EXCHSRV2.paris.netonomy.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 4 Jul 2005 17:46:33 +0200 From: =?iso-8859-15?q?G=E9rard_COLLIN?= Organization: Netonomy Subject: Running in SunOne Application Server 7 Date: Mon, 4 Jul 2005 17:47:50 +0200 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Disposition: inline To: MyFaces Discussion Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <200507041747.51132.gerard.collin@netonomy.com> X-OriginalArrivalTime: 04 Jul 2005 15:46:33.0691 (UTC) FILETIME=[8DD202B0:01C580AF] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I finally managed to make MyFaces 1.09 work with SunOne Application Server= =20 7.0.0.7 In fact, there are two problems with it: 1. Security in SunOne prevents web apps to delete files. SYMPTOM: MyFaces Web-app can't initialize. LOG: [30/Jun/2005:17:32:49] INFO ( 4584): CORE3282: stdout: 2005-06-30 17:32:49,= 560=20 [main] ERROR org.apache.myfaces.webapp.StartupServletContextListener - Erro= r=20 initializing ServletContext [30/Jun/2005:17:32:49] INFO ( 4584): CORE3282: stdout:=20 javax.faces.FacesException: java.security.AccessControlException: access=20 denied (java.io.FilePermission C:\WINDOWS\TEMP\myfaces51482.jar delete) [30/Jun/2005:17:32:49] WARNING ( 4584): CORE3283: stderr:=20 javax.faces.FacesException: java.security.AccessControlException: access=20 denied (java.io.FilePermission C:\WINDOWS\TEMP\myfaces51482.jar delete) [30/Jun/2005:17:32:49] INFO ( 4584): CORE3282: stdout: at=20 org.apache.myfaces.config.FacesConfigurator.feedJarConfig(FacesConfigurator= =2Ejava:399) [30/Jun/2005:17:32:49] WARNING ( 4584): CORE3283: stderr: at=20 org.apache.myfaces.config.FacesConfigurator.feedJarConfig(FacesConfigurator= =2Ejava:399) [30/Jun/2005:17:32:49] INFO ( 4584): CORE3282: stdout: at=20 org.apache.myfaces.config.FacesConfigurator.feedJarFileConfigurations(Faces= Configurator.java:311) [30/Jun/2005:17:32:49] WARNING ( 4584): CORE3283: stderr: at=20 org.apache.myfaces.config.FacesConfigurator.feedJarFileConfigurations(Faces= Configurator.java:311) [30/Jun/2005:17:32:49] INFO ( 4584): CORE3282: stdout: at=20 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.jav= a:203) [30/Jun/2005:17:32:49] WARNING ( 4584): CORE3283: stderr: at=20 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.jav= a:203) The problem is that FacesConfigurator writes some temporary .jar files in= =20 order to read their included faces-config.xml, dans then tries to delete=20 them. But by default SunOne 7 App server security doesn't allow file delete. FIX: Change the security of the application server to allow file deletion. In the file C:\Sun\AppServer7\domains\domain1\server1\config\server.policy Change permission java.io.FilePermission "<>", "read,write"; To permission java.io.FilePermission "<>", "read,write,delet= e"; QUESTION: It will be difficult for me to manage my clients to change their default= =20 security settings. How can we avoid these temporary jar files ? 2. Once the security is changed, we have another problem because of JSP 2.= 0=20 dependency. SYMPTOM: Any Jsp page result is blank. LOG: No log, no errors on log. FIX: SunOne AppServer 7 is J2EE 1.3 compliant, that means it supports jsp 1.2. As MyFaces is dependant on JSP 2.0, we put the jsp-api-2.0.jar in our=20 WEB-INF/lib, and this made the error. In order to make it work, you need to remove all .class from jsp-api-2.0.j= ar=20 excepts the ones in package javax.servlet.jsp.el. QUESTION: Isn't there another solution ? Is it possible to completely get rid of this jsp 2.0 dependency ? G=E9rard COLLIN