Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 48301 invoked from network); 17 Mar 2010 18:33:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 18:33:51 -0000 Received: (qmail 2741 invoked by uid 500); 17 Mar 2010 18:33:51 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 2696 invoked by uid 500); 17 Mar 2010 18:33:51 -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 2689 invoked by uid 99); 17 Mar 2010 18:33:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 18:33:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 18:33:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5111C234C4B6 for ; Wed, 17 Mar 2010 18:33:27 +0000 (UTC) Message-ID: <1492841165.319621268850807331.JavaMail.jira@brutus.apache.org> Date: Wed, 17 Mar 2010 18:33:27 +0000 (UTC) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2290) Add OSGi bundle information and bundle classloader / activator In-Reply-To: <1242347910.1247626334823.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2290?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 846516#action_12846516 ]=20 Leonardo Uribe commented on MYFACES-2290: ----------------------------------------- I forget to say, it was also committed some fixes to make myfaces code more= friendly with osgi, including add a Require-Bundle header, so myfaces-api = bundle can find myfaces-impl using the bundle classloader. > Add OSGi bundle information and bundle classloader / activator > -------------------------------------------------------------- > > Key: MYFACES-2290 > URL: https://issues.apache.org/jira/browse/MYFACES-2290 > Project: MyFaces Core > Issue Type: New Feature > Components: General > Affects Versions: 1.2.8-SNAPSHOT > Environment: OSGi (Equinox, Apache Felix, ...) > Reporter: Felix R=C3=B6thenbacher > Assignee: Leonardo Uribe > Priority: Critical > Attachments: allow-ee6-versioned-apis.diff, MYFACES-2290-no-activ= ator-2.patch, MYFACES-2290-no-activator.patch, myfaces-core.diff.txt, myfac= es-shared.diff.txt, myfaces-test-helloworld-osgi-pax-web.zip, myfaces-test-= helloworld-osgi-springdm.zip > > > The provided patch will add OSGi information to bundle manifest. A bundle= activator class makes the MyFaces framework aware that it is running in a = bundle environment. A bundle classloader is used to load classes and resour= ces from the bundle classpath. The patch doesn't require any new runtime de= pendencies and doesn't affect class loading in a non-OSGi environment. Thou= gh, small modifications to classloading were needed. This was mainly replac= ing Thread.currentThread.getContextClassLoader() with ClassUtils methods. > To run MyFaces in an OSGi environment both bundles (myfaces-api and myfac= es-impl) have to be started in the OSGi container. Additionally, the myface= s-impl bundle has to be made available to myfaces-api. Use a fragment bundl= e with myfaces-api as Fragment-Host and myfaces-impl as Required-Bundle. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.