]
George Gastaldi closed FORGE-1643.
----------------------------------
Fix Version/s: (was: 2.x Future)
Resolution: Out of Date
Embed the JAXP implementation in the xml-parser JAR
---------------------------------------------------
Key: FORGE-1643
URL:
https://issues.jboss.org/browse/FORGE-1643
Project: Forge
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: Parsers / File Manipulation
Affects Versions: 2.1.1.Final
Reporter: George Gastaldi
https://github.com/forgeide/forgeide is an attempt to run Furnace as a service inside a
web application. Furnace starts up, the following exception is thrown:
{code}
14:27:54,813 ERROR [stderr] (Furnace Container ) Exception in thread "Furnace
Container " javax.xml.parsers.FactoryConfigurationError: Provider
__redirected.__DocumentBuilderFactory not found
14:27:54,814 ERROR [stderr] (Furnace Container ) at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:127)
14:27:54,814 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:115)
14:27:54,815 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:81)
14:27:54,815 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.getXmlRoot(AddonRepositoryImpl.java:585)
14:27:54,815 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.access$000(AddonRepositoryImpl.java:51)
14:27:54,816 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$13.call(AddonRepositoryImpl.java:509)
14:27:54,816 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$13.call(AddonRepositoryImpl.java:501)
14:27:54,817 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.LockManagerImpl.performLocked(LockManagerImpl.java:48)
14:27:54,817 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.listEnabled(AddonRepositoryImpl.java:500)
14:27:54,817 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$14.call(AddonRepositoryImpl.java:545)
14:27:54,818 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$14.call(AddonRepositoryImpl.java:541)
14:27:54,818 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.LockManagerImpl.performLocked(LockManagerImpl.java:48)
14:27:54,819 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.listEnabledCompatibleWithVersion(AddonRepositoryImpl.java:540)
14:27:54,819 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.ImmutableAddonRepository.listEnabledCompatibleWithVersion(ImmutableAddonRepository.java:87)
14:27:54,820 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.graph.CompleteAddonGraph.getAllEnabledAddonsInAllRepositories(CompleteAddonGraph.java:81)
14:27:54,820 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.graph.CompleteAddonGraph.<init>(CompleteAddonGraph.java:26)
14:27:54,820 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonLifecycleManager$4.call(AddonLifecycleManager.java:194)
14:27:54,821 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonLifecycleManager$4.call(AddonLifecycleManager.java:182)
14:27:54,821 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.LockManagerImpl.performLocked(LockManagerImpl.java:48)
14:27:54,822 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.addons.AddonLifecycleManager.forceUpdate(AddonLifecycleManager.java:181)
14:27:54,822 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.FurnaceImpl.start(FurnaceImpl.java:192)
14:27:54,822 ERROR [stderr] (Furnace Container ) at
org.jboss.forge.furnace.impl.FurnaceImpl$1.run(FurnaceImpl.java:123)
14:27:54,823 ERROR [stderr] (Furnace Container ) Caused by:
java.lang.ClassNotFoundException: __redirected/__DocumentBuilderFactory
14:27:54,823 ERROR [stderr] (Furnace Container ) at java.lang.Class.forName0(Native
Method)
14:27:54,823 ERROR [stderr] (Furnace Container ) at
java.lang.Class.forName(Class.java:270)
14:27:54,824 ERROR [stderr] (Furnace Container ) at
javax.xml.parsers.FactoryFinder.getProviderClass(FactoryFinder.java:123)
14:27:54,824 ERROR [stderr] (Furnace Container ) at
javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:178)
14:27:54,824 ERROR [stderr] (Furnace Container ) at
javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
14:27:54,825 ERROR [stderr] (Furnace Container ) at
javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:219)
14:27:54,825 ERROR [stderr] (Furnace Container ) at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
14:27:54,825 ERROR [stderr] (Furnace Container ) ... 21 more
{code}
An elegant solution would be xml-parser to pack its own JAXP implementation, not relying
on external confguration.