java.lang.ClassNotFoundException on karaf startup

123 views
Skip to first unread message

Stephen Marquard

unread,
Jun 17, 2022, 5:51:07 AM6/17/22
to d...@opencast.org

Hi everyone,


We have an Opencast 8.x installation which is now failing at startup on our dev system with the error below.


Any advice? No code or config changes recently which would explain this, and the same java version as on our production system, which is


# java -version

openjdk version "1.8.0_312"

OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07)

OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)


Cheers

Stephen



2022-06-17 11:47:17,809 ERROR o.a.k.f.i.s.BootFeaturesInstaller [activator-1-thread-2] Error installing boot features

javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

at javax.xml.parsers.$FactoryFinder.newInstance($FactoryFinder.java:113) ~[?:?]

at javax.xml.parsers.$FactoryFinder.newInstance($FactoryFinder.java:90) ~[?:?]

at javax.xml.parsers.$FactoryFinder.find($FactoryFinder.java:145) ~[?:?]

at javax.xml.parsers.$FactoryFinder.find($FactoryFinder.java:122) ~[?:?]

at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:41) ~[?:?]

at org.apache.karaf.util.XmlUtils.documentBuilder(XmlUtils.java:123) ~[!/:?]

at org.apache.karaf.util.XmlUtils.parse(XmlUtils.java:59) ~[!/:?]

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.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:367) ~[!/:?]

at org.apache.karaf.features.internal.service.BootFeaturesInstaller.addRepositories(BootFeaturesInstaller.java:123) ~[!/:?]

at org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:93) [!/:?]

at org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:87) [!/:?]

at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:196) [!/:?]

at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:292) [!/:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

at java.lang.Thread.run(Thread.java:829) [?:?]

Caused by: java.lang.ClassNotFoundException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl

at java.lang.Class.forName0(Native Method) ~[?:?]

at java.lang.Class.forName(Class.java:398) ~[?:?]

at javax.xml.parsers.$FactoryFinder.getProviderClass($FactoryFinder.java:80) ~[?:?]

at javax.xml.parsers.$FactoryFinder.newInstance($FactoryFinder.java:103) ~[?:?]

... 23 more



---

Stephen Marquard, Deputy Director
Centre for Innovation in Learning and Teaching (CILT)
University of Cape Town
http://www.cilt.uct.ac.za
stephen....@uct.ac.za
Phone: +27-21-650-5037 Cell: +27-83-500-5290


Disclaimer - University of Cape Town This email is subject to UCT policies and email disclaimer published on our website at http://www.uct.ac.za/main/email-disclaimer or obtainable from +27 21 650 9111. If this email is not related to the business of UCT, it is sent by the sender in an individual capacity. Please report security incidents or abuse via https://csirt.uct.ac.za/page/report-an-incident.php.

Stephen Marquard

unread,
Jun 17, 2022, 6:45:20 AM6/17/22
to d...@opencast.org
Sorry, our mixup. Wrong java version used inadvertently. It was actually running java 11.

Cheers
Stephen

From: 'Stephen Marquard' via Opencast Development <d...@opencast.org>
Sent: Friday, 17 June 2022 11:50
To: d...@opencast.org <d...@opencast.org>
Subject: [OC Dev] java.lang.ClassNotFoundException on karaf startup
 

Hi everyone,


We have an Opencast 8.x installation which is now failing at startup on our dev system with the error below.


Any advice? No code or config changes recently which would explain this, and the same java version as on our production system, which is


# java -version

openjdk version "1.8.0_312"

OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07)

OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)


Cheers

Stephen



2022-06-17 11:47:17,809 ERROR o.a.k.f.i.s.BootFeaturesInstaller [activator-1-thread-2] Error installing boot features

javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

at javax.xml.parsers.$FactoryFinder.newInstance($FactoryFinder.java:113) ~[?:?]

at javax.xml.parsers.$FactoryFinder.newInstance($FactoryFinder.java:90) ~[?:?]

at javax.xml.parsers.$FactoryFinder.find($FactoryFinder.java:145) ~[?:?]

at javax.xml.parsers.$FactoryFinder.find($FactoryFinder.java:122) ~[?:?]

at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:41) ~[?:?]

at org.apache.karaf.util.XmlUtils.documentBuilder(XmlUtils.java:123) ~[!/:?]

at org.apache.karaf.util.XmlUtils.parse(XmlUtils.java:59) ~[!/:?]

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>(http://RepositoryImpl.java:50) ~[!/:?]

--
To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@opencast.org.
Reply all
Reply to author
Forward
0 new messages