Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 87805 invoked from network); 22 Jul 2009 14:48:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 14:48:42 -0000 Received: (qmail 71949 invoked by uid 500); 22 Jul 2009 14:49:47 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 71867 invoked by uid 500); 22 Jul 2009 14:49:46 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 71857 invoked by uid 99); 22 Jul 2009 14:49:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 14:49:46 +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, 22 Jul 2009 14:49:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E0FFE29A0011 for ; Wed, 22 Jul 2009 07:49:14 -0700 (PDT) Message-ID: <477434350.1248274154920.JavaMail.jira@brutus> Date: Wed, 22 Jul 2009 07:49:14 -0700 (PDT) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Issue Comment Edited: (FELIX-1398) Class.forName issue with XMLParserActivator In-Reply-To: <1223814547.1248243914853.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734135#action_12734135 ] Richard S. Hall edited comment on FELIX-1398 at 7/22/09 7:48 AM: ----------------------------------------------------------------- I think this is fixed in trunk, because the generated manifest I see there is different. However, that is really moot since we have decided to no longer release versions of the official OSGi JAR files. Thanks for reporting the issue, though. was (Author: rickhall): I think this is fixed in trunk, because the generated manifest I see there is different. However, that is really moot since we have decided to no longer release versions of the official OSGi JAR files. > Class.forName issue with XMLParserActivator > ------------------------------------------- > > Key: FELIX-1398 > URL: https://issues.apache.org/jira/browse/FELIX-1398 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1 > Reporter: Thomas Diesler > Attachments: apache-compendium-1.2.0-manifest.mf, osgi-compendium-4.1.0-manifest.mf > > > An implementation of the XML parser service does not work with org.osgi.compendium-1.2.0 from Felix > Caused by: javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: *** Class 'org.jboss.test.osgi.jbosgi92.bundleA.SAXParserFactoryImpl' was not found because bundle 1 does not import 'org.jboss.test.osgi.jbosgi92.bundleA' even though bundle 5 does export it. Additionally, the class is also available from the system class loader. There are two fixes: 1) Add an import for 'org.jboss.test.osgi.jbosgi92.bundleA' to bundle 1; imports are necessary for each class directly touched by bundle code or indirectly touched, such as super classes if their methods are used. 2) Add package 'org.jboss.test.osgi.jbosgi92.bundleA' to the 'org.osgi.framework.bootdelegation' property; a library or VM bug can cause classes to be loaded by the wrong class loader. The first approach is preferable for preserving modularity. *** > at org.osgi.util.xml.XMLParserActivator.getFactory(XMLParserActivator.java:462) > at org.osgi.util.xml.XMLParserActivator.registerSAXParsers(XMLParserActivator.java:240) > at org.osgi.util.xml.XMLParserActivator.start(XMLParserActivator.java:147) > at org.jboss.test.osgi.jbosgi92.bundleA.ActivatorBundleA.start(ActivatorBundleA.java:43) > This however works fine with the original org.osg.compendium-4.1.0 > More info on the issue: https://jira.jboss.org/jira/browse/JBOSGI-92 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.