Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 50994 invoked from network); 30 Nov 2010 18:25:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 18:25:35 -0000 Received: (qmail 96634 invoked by uid 500); 30 Nov 2010 18:25:34 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 96523 invoked by uid 500); 30 Nov 2010 18:25:34 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 96515 invoked by uid 99); 30 Nov 2010 18:25:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 18:25:33 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 18:25:24 +0000 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oAUIOxYs015017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 30 Nov 2010 18:25:02 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oAUIOwEC025713 for ; Tue, 30 Nov 2010 18:24:58 GMT Received: from abhmt004.oracle.com by acsmt355.oracle.com with ESMTP id 827472021291141496; Tue, 30 Nov 2010 10:24:56 -0800 Received: from [10.148.126.238] (/10.148.126.238) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 30 Nov 2010 10:24:56 -0800 Message-ID: <4CF540EB.3000002@oracle.com> Date: Tue, 30 Nov 2010 10:22:35 -0800 From: niklas modin Organization: Oracle Corporation User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Lightning/1.0b2 OracleBeehiveExtension/1.0.0.0-OracleInternal Thunderbird/3.1.1 MIME-Version: 1.0 To: Commons Users List Subject: [digester] Class loading issue using commons-digester in OSGi setup Content-Type: multipart/alternative; boundary="------------010601090508030806080803" X-Virus-Checked: Checked by ClamAV on apache.org --------------010601090508030806080803 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi all, I'm trying to use commons-scxml in an OSGi environment (Equinox) and scxml has a dependency on digester, which causes some class loading issues. Digester gets it's own class loader being a separate bundle, however it looks like when ObjectCreateRule.begin() instantiates the SCXML object when I try to parse a scxml document this is done using this snippet: /Class clazz = digester.getClassLoader().loadClass(realClassName);/ Since SCXML isn't in the digesters class loader, this will never work. Any ideas on how this should work in an OSGi deployment ? Any one else with some experience of using scxml/digester in this manner ? Do I need to skip installing all the bundles separately, and just pack them all together into a big jar ? Feels like that contradicts the whole modularization goal of OSGi/bundles. Cheers, Niklas --------------010601090508030806080803--