Greetings, I have a use case where, I deploy an app with embedded Felix container. I have a bundle that uses xerces bundle from org.knopflerfish. When the container tries to start, I get the following exception:
current class loader:com.sun.jnlp.jnlpclassloa...@16be68f bundle class loader:6.0 ERROR: Error starting http://localhost:8090/xer.test.jar (org.osgi.framework.BundleException: Activator start error in bundle xer.test [6].) java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at jpos.config.simple.xml.AbstractXercesRegPopulator.<init>(Unknown Source) at jpos.config.simple.xml.XercesRegPopulator.<init>(Unknown Source) at com.ecrsoft.xerces.Activator.start(Activator.java:29) at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1284) at java.security.AccessController.doPrivileged(Native Method) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:652) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760) at org.apache.felix.framework.Felix.startBundle(Felix.java:1682) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Unknown Source) I understand it's a class loading problem but I am not sure how to go about resolving it. When I switch the class loader context from jnlp class loader to bundle class loader, everything works fine. I would prefer not to do this way, if there is a better solution. Appreciate any input. Regards, Joules --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

