[ 
https://issues.apache.org/jira/browse/KARAF-5688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425199#comment-16425199
 ] 

ASF subversion and git services commented on KARAF-5688:
--------------------------------------------------------

Commit 071dc146f3d057dc33e9c6b7d7ae413727e8d114 in karaf's branch 
refs/heads/master from [~gnt]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=071dc14 ]

[KARAF-5688] XML parsing fails when xerces is installed on JDK 8


> XML parsing fails when xerces is installed on JDK 8
> ---------------------------------------------------
>
>                 Key: KARAF-5688
>                 URL: https://issues.apache.org/jira/browse/KARAF-5688
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.2.0
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Critical
>             Fix For: 4.2.1
>
>
> {code}
> java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: 
> org/w3c/dom/ElementTraversal
>       at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
>       at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:?]
>       at 
> org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.run(CommandSessionImpl.java:829)
>  ~[?:?]
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  ~[?:?]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  ~[?:?]
>       at java.lang.Thread.run(Thread.java:748) [?:?]
> Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
>       at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2410)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2194)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
>  ~[?:?]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
>       at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown 
> Source) ~[?:?]
>       at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown 
> Source) ~[?:?]
>       at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown 
> Source) ~[?:?]
>       at 
> org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown 
> Source) ~[?:?]
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
> ~[?:?]
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
> ~[?:?]
>       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]
>       at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) ~[?:?]
>       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) 
> ~[?:?]
>       at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) 
> ~[?:?]
>       at org.apache.karaf.util.XmlUtils.parse(XmlUtils.java:60) ~[?:?]
>       at 
> org.apache.karaf.features.internal.model.JaxbUtil.unmarshalValidate(JaxbUtil.java:112)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.model.JaxbUtil.unmarshal(JaxbUtil.java:100)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:114)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:372)
>  ~[?:?]
>       at 
> org.apache.karaf.features.command.RepoAddCommand.doExecute(RepoAddCommand.java:54)
>  ~[?:?]
>       at 
> org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:42)
>  ~[?:?]
>       at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  ~[?:?]
>       at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  ~[?:?]
>       at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  ~[?:?]
>       at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) 
> ~[?:?]
>       at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) 
> ~[?:?]
>       at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) 
> ~[?:?]
>       at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
>       at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
>       at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
>       ... 4 more
> Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:?]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:?]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
>       at 
> org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:940)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
>  ~[?:?]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
>       at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2410)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2194)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
>  ~[?:?]
>       at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
>  ~[?:?]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
>       at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown 
> Source) ~[?:?]
>       at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown 
> Source) ~[?:?]
>       at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown 
> Source) ~[?:?]
>       at 
> org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown 
> Source) ~[?:?]
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
> ~[?:?]
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
> ~[?:?]
>       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]
>       at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) ~[?:?]
>       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) 
> ~[?:?]
>       at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) 
> ~[?:?]
>       at org.apache.karaf.util.XmlUtils.parse(XmlUtils.java:60) ~[?:?]
>       at 
> org.apache.karaf.features.internal.model.JaxbUtil.unmarshalValidate(JaxbUtil.java:112)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.model.JaxbUtil.unmarshal(JaxbUtil.java:100)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:114)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51)
>  ~[?:?]
>       at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:372)
>  ~[?:?]
>       at 
> org.apache.karaf.features.command.RepoAddCommand.doExecute(RepoAddCommand.java:54)
>  ~[?:?]
>       at 
> org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:42)
>  ~[?:?]
>       at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  ~[?:?]
>       at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  ~[?:?]
>       at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  ~[?:?]
>       at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) 
> ~[?:?]
>       at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) 
> ~[?:?]
>       at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) 
> ~[?:?]
>       at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
>       at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
>       at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
>       ... 4 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to