Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 18037 invoked from network); 6 Apr 2006 08:12:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 08:12:15 -0000 Received: (qmail 81123 invoked by uid 500); 6 Apr 2006 08:12:08 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 81075 invoked by uid 500); 6 Apr 2006 08:12:08 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 81064 invoked by uid 99); 6 Apr 2006 08:12:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 01:12:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 01:12:07 -0700 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 36EDCD4A00 for ; Thu, 6 Apr 2006 09:11:46 +0100 (BST) Message-ID: <898824905.1144311106170.JavaMail.jira@ajax> Date: Thu, 6 Apr 2006 09:11:46 +0100 (BST) From: "Martin Marinschek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Closed: (MYFACES-1270) Hot deployment in exploded mode is broken due to FacesConfigurator In-Reply-To: <85289831.1144310158365.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-1270?page=all ] Martin Marinschek closed MYFACES-1270: -------------------------------------- Fix Version: 1.1.3-SNAPSHOT Resolution: Fixed Thanks Olaf for handling this. Was painful for us, too. I know how hard it is to find the reason for deployment issues, so kudos to you! regards, Martin > Hot deployment in exploded mode is broken due to FacesConfigurator > ------------------------------------------------------------------ > > Key: MYFACES-1270 > URL: http://issues.apache.org/jira/browse/MYFACES-1270 > Project: MyFaces Core > Type: Bug > Versions: 1.1.1 > Environment: Windows XP, Suns Java 1.5.0_04, JBoss 4.0.3SP1 or Tomcat 5.5.12, MyEclipse 4.1.0 GA > Reporter: Olaf Fricke > Assignee: Martin Marinschek > Fix For: 1.1.3-SNAPSHOT > > We at HanseMerkur insurances are currently working with MyFaces to for creating web applications. Unfortunately, the hot deployment of an exploded web archiv does not work. This is very annoying is using the deployment features of MyEclipse because we always have to restart the JBoss apllication server. I have tried the same using Tomcat standalone, and the same thing happens. > I have nailed down the problem to the class FacesConfigurator, and there to the call of URL.openStream() in the method feedClassloaderConfigurations(). This call opens a Stream of an already open jar-archiv (Tomcat always opens up the jar files during startup of an application). Later the stream is closed, but at least if running under j2sdk 1.5.0_04, the closing does not work. When trying to undeploy the application, there is still an open file handle and the jar file cannot be removed. You can reproduce this behaviour by deploying one of the myfaces examples to a running Tomcat and then undeploying it. You will end up with some jar files in the WEB-INF/lib directory. > I am not very sure which component (myfaces, tomcat, or even java) causes this failure, but I found a way to work around it: > Instead of simply calling > InputStream stream = url.openStream(); > you can open the stream without using a cache by saying > URLConnection connection = url.openConnection(); > connection.setUseCaches(false); > InputStream stream = connection.getInputStream(); > Olaf Fricke > HanseMerkur Versicherungen -- 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