sten-navie opened a new issue, #60: URL: https://github.com/apache/felix-atomos/issues/60
During my experiments with Atomos I encountered the following issue. Having the following modules in a bootlayer: ``` org.eclipse.osgi-3.17.200.jar org.apache.felix.atomos-1.0.0.jar org.apache.felix.gogo.command-1.1.0.jar org.apache.felix.gogo.runtime-1.1.2.jar osgi.core-8.0.0-AtomosEquinox.jar org.osgi.service.metatype-1.4.1.jar org.osgi.service.cm-1.6.1.jar ``` First I start the above modules by placing them into a folder named atomos-test and running: `java --add-modules=ALL-MODULE-PATH -p atomos-test -m org.apache.felix.atomos` If I now try to install and start equinox.metatype as a "Standard Bundle" via the gogo-shell, I get a ClassCastException: ``` g! felix:install file:////PATH_TO_MY_FILES/org.eclipse.equinox.metatype-1.6.100.jar Bundle ID: 42 g! start 42 java.lang.ClassCastException: class com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to class javax.xml.parsers.SAXParserFactory (com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl is in module java.xml of loader 'bootstrap'; javax.xml.parsers.SAXParserFactory is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @162a66a1) ``` - Tested with java 11 and 17. - If I place the equinox.metatype jar into the atomos-test folder and run it from the boot-layer, everything works. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
