[jboss-cvs] JBossAS SVN: r91509 - in projects/jboss-osgi: projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml and 8 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 21 15:38:02 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-07-21 15:38:01 -0400 (Tue, 21 Jul 2009)
New Revision: 91509

Added:
   projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/DocumentBuilderFactoryImpl.java
   projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/SAXParserFactoryImpl.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SAXParserFactoryImpl.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.DocumentBuilderFactory
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.SAXParserFactory
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/jbosgi92-bundleA.bnd
Removed:
   projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/internal/
Modified:
   projects/jboss-osgi/projects/bundles/apache-xerces/trunk/pom.xml
   projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/XMLParserActivatorExt.java
   projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.DocumentBuilderFactory
   projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.SAXParserFactory
   projects/jboss-osgi/trunk/reactor/
   projects/jboss-osgi/trunk/reactor/pom.xml
   projects/jboss-osgi/trunk/testsuite/example/pom.xml
   projects/jboss-osgi/trunk/testsuite/functional/pom.xml
   projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml
Log:
[JBOSGI-92] Class.forName issue with XMLParserActivator

Modified: projects/jboss-osgi/projects/bundles/apache-xerces/trunk/pom.xml
===================================================================
--- projects/jboss-osgi/projects/bundles/apache-xerces/trunk/pom.xml	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/projects/bundles/apache-xerces/trunk/pom.xml	2009-07-21 19:38:01 UTC (rev 91509)
@@ -91,9 +91,6 @@
             <Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
             <Bundle-Activator>org.jboss.osgi.xml.XMLParserActivatorExt</Bundle-Activator>
             <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
-            <Private-Package>
-              org.jboss.osgi.xml.internal
-            </Private-Package>
             <Export-Package>
               org.jboss.osgi.xml;version=${version}
             </Export-Package>

Copied: projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/DocumentBuilderFactoryImpl.java (from rev 91504, projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/internal/DocumentBuilderFactoryImpl.java)
===================================================================
--- projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/DocumentBuilderFactoryImpl.java	                        (rev 0)
+++ projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/DocumentBuilderFactoryImpl.java	2009-07-21 19:38:01 UTC (rev 91509)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.osgi.xml;
+
+//$Id: XercesParserActivator.java 91417 2009-07-20 09:25:44Z thomas.diesler at jboss.com $
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.ParserConfigurationException;
+
+/**
+ * A DocumentBuilderFactory that gets loaded from this bundle.
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 21-Jul-2009
+ */
+public class DocumentBuilderFactoryImpl extends org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
+{
+   @Override
+   public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
+   {
+      ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
+      try
+      {
+         Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
+         return super.newDocumentBuilder();
+      }
+      finally
+      {
+         Thread.currentThread().setContextClassLoader(ctxLoader);
+      }
+   }
+}
\ No newline at end of file

Copied: projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/SAXParserFactoryImpl.java (from rev 91504, projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/internal/SAXParserFactoryImpl.java)
===================================================================
--- projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/SAXParserFactoryImpl.java	                        (rev 0)
+++ projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/SAXParserFactoryImpl.java	2009-07-21 19:38:01 UTC (rev 91509)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.osgi.xml;
+
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.parsers.SAXParser;
+
+//$Id: XercesParserActivator.java 91417 2009-07-20 09:25:44Z thomas.diesler at jboss.com $
+
+/**
+ * A SAXParserFactory that gets loaded from this bundle.
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 21-Jul-2009
+ */
+public class SAXParserFactoryImpl extends org.apache.xerces.jaxp.SAXParserFactoryImpl
+{
+   @Override
+   public SAXParser newSAXParser() throws ParserConfigurationException
+   {
+      ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
+      try
+      {
+         Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
+         return super.newSAXParser();
+      }
+      finally
+      {
+         Thread.currentThread().setContextClassLoader(ctxLoader);
+      }
+   }
+}
\ No newline at end of file

Modified: projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/XMLParserActivatorExt.java
===================================================================
--- projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/XMLParserActivatorExt.java	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/java/org/jboss/osgi/xml/XMLParserActivatorExt.java	2009-07-21 19:38:01 UTC (rev 91509)
@@ -29,10 +29,10 @@
 import javax.xml.parsers.SAXParserFactory;
 
 import org.jboss.osgi.common.log.LogServiceTracker;
-import org.jboss.osgi.xml.internal.XMLParserActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceReference;
 import org.osgi.service.log.LogService;
+import org.osgi.util.xml.XMLParserActivator;
 
 /**
  * Activate the XML parser using {@link XMLParserActivatorExt}

Modified: projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.DocumentBuilderFactory
===================================================================
--- projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.DocumentBuilderFactory	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.DocumentBuilderFactory	2009-07-21 19:38:01 UTC (rev 91509)
@@ -1 +1 @@
-org.jboss.osgi.xml.internal.DocumentBuilderFactoryImpl
\ No newline at end of file
+org.jboss.osgi.xml.DocumentBuilderFactoryImpl
\ No newline at end of file

Modified: projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.SAXParserFactory
===================================================================
--- projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.SAXParserFactory	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/projects/bundles/apache-xerces/trunk/src/main/resources/META-INF/services/javax.xml.parsers.SAXParserFactory	2009-07-21 19:38:01 UTC (rev 91509)
@@ -1 +1 @@
-org.jboss.osgi.xml.internal.SAXParserFactoryImpl
\ No newline at end of file
+org.jboss.osgi.xml.SAXParserFactoryImpl
\ No newline at end of file


Property changes on: projects/jboss-osgi/trunk/reactor
___________________________________________________________________
Name: svn:externals
   - #spi                                            https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/spi/trunk
#bundles/apache-xerces           https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/apache-xerces/trunk
#bundles/common                     https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/common/trunk
#bundles/hotdeploy                   https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/hotdeploy/trunk
#bundles/husky                          https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/husky/trunk
#bundles/jaxb                            https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jaxb/trunk
#bundles/jmx                             https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jmx/trunk
#bundles/jndi                             https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jndi/trunk
#bundles/jboss-common-core  https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jboss-common-core/trunk
#bundles/jboss-xml-binding      https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jboss-xml-binding/trunk
#bundles/microcontainer          https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/microcontainer/trunk
#bundles/remotelog                  https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/remotelog/trunk
#bundles/webconsole                https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/webconsole/trunk
#runtime/deployers                   https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/deployers/trunk
#runtime/equinox                      https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/equinox/trunk
#runtime/felix                            https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/felix/trunk
#runtime/jbossas                      https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/jbossas/trunk
#runtime/knopflerfish               https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/knopflerfish/trunk

   + #spi                                            https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/spi/trunk
bundles/apache-xerces           https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/apache-xerces/trunk
#bundles/common                     https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/common/trunk
#bundles/hotdeploy                   https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/hotdeploy/trunk
#bundles/husky                          https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/husky/trunk
#bundles/jaxb                            https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jaxb/trunk
#bundles/jmx                             https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jmx/trunk
#bundles/jndi                             https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jndi/trunk
#bundles/jboss-common-core  https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jboss-common-core/trunk
#bundles/jboss-xml-binding      https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/jboss-xml-binding/trunk
#bundles/microcontainer          https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/microcontainer/trunk
#bundles/remotelog                  https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/remotelog/trunk
#bundles/webconsole                https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/bundles/webconsole/trunk
#runtime/deployers                   https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/deployers/trunk
#runtime/equinox                      https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/equinox/trunk
#runtime/felix                            https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/felix/trunk
#runtime/jbossas                      https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/jbossas/trunk
#runtime/knopflerfish               https://svn.jboss.org/repos/jbossas/projects/jboss-osgi/projects/runtime/knopflerfish/trunk


Modified: projects/jboss-osgi/trunk/reactor/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/reactor/pom.xml	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/trunk/reactor/pom.xml	2009-07-21 19:38:01 UTC (rev 91509)
@@ -27,6 +27,7 @@
   </parent>
 
   <modules>
+    <module>bundles/apache-xerces</module>
     <module>blueprint</module>
   </modules>
 

Modified: projects/jboss-osgi/trunk/testsuite/example/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/example/pom.xml	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/trunk/testsuite/example/pom.xml	2009-07-21 19:38:01 UTC (rev 91509)
@@ -11,6 +11,15 @@
 
   <!-- $Id: pom.xml 91197 2009-07-14 09:48:24Z thomas.diesler at jboss.com $ -->
   
+  <!-- 
+     Set these VM properties in your IDE debugger 
+    
+    -Dlog4j.output.dir=${workspace_loc:jboss-osgi-testsuite-example/target}
+    -Djboss.osgi.framework.properties=jboss-osgi-felix.properties
+    -Dorg.jboss.osgi.husky.Invoker=org.jboss.osgi.husky.internal.OSGiInvoker
+    -Dtest.archive.directory=${workspace_loc:jboss-osgi-testsuite-example/target}/test-libs
+  -->
+  
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
 

Modified: projects/jboss-osgi/trunk/testsuite/functional/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/pom.xml	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/trunk/testsuite/functional/pom.xml	2009-07-21 19:38:01 UTC (rev 91509)
@@ -11,6 +11,15 @@
 
   <!-- $Id: pom.xml 91197 2009-07-14 09:48:24Z thomas.diesler at jboss.com $ -->
   
+  <!-- 
+     Set these VM properties in your IDE debugger 
+    
+    -Dlog4j.output.dir=${workspace_loc:jboss-osgi-testsuite-functional/target}
+    -Djboss.osgi.framework.properties=jboss-osgi-felix.properties
+    -Dorg.jboss.osgi.husky.Invoker=org.jboss.osgi.husky.internal.OSGiInvoker
+    -Dtest.archive.directory=${workspace_loc:jboss-osgi-testsuite-functional/target}/test-libs
+  -->
+  
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
 

Modified: projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml	2009-07-21 19:35:31 UTC (rev 91508)
+++ projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml	2009-07-21 19:38:01 UTC (rev 91509)
@@ -81,6 +81,9 @@
     <!-- jbosgi99 -->
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi99-bundleA.jar" files="${tests.resources.dir}/jbosgi99/jbosgi99-bundleA.bnd" />
   	
+    <!-- jbosgi92 -->
+    <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi92-bundleA.jar" files="${tests.resources.dir}/jbosgi92/jbosgi92-bundleA.bnd" />
+  	
     <!-- jbosgi108 -->
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi108-bundleA.jar" files="${tests.resources.dir}/jbosgi108/jbosgi108-bundleA.bnd" />
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi108-bundleB.jar" files="${tests.resources.dir}/jbosgi108/jbosgi108-bundleB.bnd" />

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SAXParserFactoryImpl.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SAXParserFactoryImpl.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SAXParserFactoryImpl.java	2009-07-21 19:38:01 UTC (rev 91509)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi92.bundleA;
+
+//$Id$
+
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.parsers.SAXParser;
+import javax.xml.parsers.SAXParserFactory;
+
+import org.xml.sax.Parser;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXNotRecognizedException;
+import org.xml.sax.SAXNotSupportedException;
+import org.xml.sax.XMLReader;
+
+public class SAXParserFactoryImpl extends SAXParserFactory
+{
+   @Override
+   public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
+   {
+      return false;
+   }
+
+   @Override
+   public SAXParser newSAXParser() throws ParserConfigurationException, SAXException
+   {
+      return new SAXParser()
+      {
+         
+         @Override
+         public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
+         {
+         }
+         
+         @Override
+         public boolean isValidating()
+         {
+            return false;
+         }
+         
+         @Override
+         public boolean isNamespaceAware()
+         {
+            return false;
+         }
+         
+         @Override
+         public XMLReader getXMLReader() throws SAXException
+         {
+            return null;
+         }
+         
+         @Override
+         public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
+         {
+            return null;
+         }
+         
+         @Override
+         public Parser getParser() throws SAXException
+         {
+            return null;
+         }
+      };
+   }
+
+   @Override
+   public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
+   {
+   }
+}


Property changes on: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SAXParserFactoryImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.DocumentBuilderFactory
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.DocumentBuilderFactory	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.DocumentBuilderFactory	2009-07-21 19:38:01 UTC (rev 91509)
@@ -0,0 +1 @@
+org.jboss.test.osgi.jbosgi92.bundleA.DocumentBuilderFactoryImpl
\ No newline at end of file

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.SAXParserFactory
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.SAXParserFactory	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/javax.xml.parsers.SAXParserFactory	2009-07-21 19:38:01 UTC (rev 91509)
@@ -0,0 +1 @@
+org.jboss.test.osgi.jbosgi92.bundleA.SAXParserFactoryImpl
\ No newline at end of file

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/jbosgi92-bundleA.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/jbosgi92-bundleA.bnd	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi92/jbosgi92-bundleA.bnd	2009-07-21 19:38:01 UTC (rev 91509)
@@ -0,0 +1,11 @@
+# bnd build -classpath target/test-classes -output target/test-libs/jbosgi92-bundleA.jar src/test/resources/jbosgi92/jbosgi92-bundleA.bnd
+
+Bundle-SymbolicName: jbosgi92-bundleA
+
+Bundle-Activator: org.jboss.test.osgi.jbosgi92.bundleA.ActivatorBundleA
+
+Export-Package: org.jboss.test.osgi.jbosgi92.bundleA
+
+Include-Resource: \
+	META-INF/services/javax.xml.parsers.DocumentBuilderFactory=javax.xml.parsers.DocumentBuilderFactory, \
+	META-INF/services/javax.xml.parsers.SAXParserFactory=javax.xml.parsers.SAXParserFactory 




More information about the jboss-cvs-commits mailing list