From dev-return-43170-apmail-geronimo-dev-archive=geronimo.apache.org@geronimo.apache.org Thu Dec 14 16:01:32 2006 Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 13379 invoked from network); 14 Dec 2006 16:01:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 16:01:31 -0000 Received: (qmail 46199 invoked by uid 500); 14 Dec 2006 16:01:35 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 46165 invoked by uid 500); 14 Dec 2006 16:01:35 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 46154 invoked by uid 99); 14 Dec 2006 16:01:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 08:01:35 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_00_10,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [205.134.240.98] (HELO server-01.liferay.com) (205.134.240.98) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 08:01:25 -0800 Received: from server-01.liferay.com (localhost.localdomain [127.0.0.1]) by server-01.liferay.com (Postfix) with ESMTP id 0708B2E0001 for ; Thu, 14 Dec 2006 08:01:05 -0800 (PST) Date: Thu, 14 Dec 2006 16:01:05 +0000 (GMT) From: Brian Chan To: dev@geronimo.apache.org Message-ID: <2505178.1311166112065007.JavaMail.liferay@server-01.liferay.com> Subject: EAR vs. WAR ClassLoader for Liferay MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_74_23218929.1166112065006" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_74_23218929.1166112065006 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Here's the scenario, I need portal-kernel.jar to be shared between the &= quot;portal" classloader, and any other hot deployable wars in Geronim= o. This works fine in Tomcat and JBoss, but the behavior is slightly off in= Geronimo (I think it's because the Geronimo classloader is actually much m= ore flexible, hence the behavior change).

I've tried using the shared= lib directory, and added the correct syntax in geronimo-web.xml, BUT, the = portlet WAR actually sees the singles created from portal-kernel.jar as a s= eparate instance. Meaning, it's giving me a copy of the shared lib bet= ween the two wars, and not really giving me the same one. We use singletons= in portal-kernel to wire info via interfaces from the portal to portlets.<= /p>

I got around this by deploying the portal as a WAR, then having the p= ortlets "depend" on the portal WAR. That gets around the problem,= but it doesn't let me do that if I try to deploy Liferay as an EAR becuase= there' isn't the idea of a WEB-INF/lib in the EAR.

I've even tried d= eploying portal-kernel as a separate CAR, and then having the portal AND th= e portlets depend on the CAR, but for some reason, I still keep getting cop= ies of the portal-kernel and not really using the same instance.

Than= ks everyone.


--
Brian Chan
Chief Software ArchitectLiferay, Inc.
Enterprise. O= pen Source. For Life.

Mobile: (626) 806-1190
Skype: brianch= an_dot_com

------=_Part_74_23218929.1166112065006--