Closed beneshed closed 4 years ago
Note that Rundeck uses spring 5 / spring boot / grails under the hood
Hi @thebenwaters, it looks like this issue happens while looking for a class in the classpath, do you mind running your repro again with the system property jaxp.debug
set to true
? This should add more debugging output to go along with the stack trace.
@alzimmermsft
[2020-09-23T09:39:12,118] WARN azurekeyvaultstorage.AzureKeyVaultStoragePlugin - DocumentBuilderFactory implementation: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl loaded from: Java Runtime
JAXP: using thread context class loader (org.springframework.boot.loader.LaunchedURLClassLoader@5010be6) for search
JAXP: Looking up system property 'javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom'
JAXP: The property is undefined.
JAXP: found null in $java.home/conf/jaxp.properties
JAXP: attempting to use the platform default W3C DOM XPath lib
JAXP: factory 'com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl' was found for http://java.sun.com/jaxp/xpath/dom
[2020-09-23T09:39:12,131] WARN azurekeyvaultstorage.AzureKeyVaultStoragePlugin - XPathFactory implementation: com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl loaded from: Java Runtime
[2020-09-23T09:39:12,133] WARN azurekeyvaultstorage.AzureKeyVaultStoragePlugin - TransformerFactory implementation: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl loaded from: Java Runtime
[2020-09-23T09:39:12,135] WARN azurekeyvaultstorage.AzureKeyVaultStoragePlugin - SAXParserFactory implementation: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl loaded from: Java Runtime
Stack trace for exception is still the same
Caused by: javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) ~[?:?]
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:178) ~[?:?]
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) ~[?:?]
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) ~[?:?]
at com.fasterxml.jackson.dataformat.xml.XmlFactory.<init>(XmlFactory.java:113) ~[?:?]
at com.fasterxml.jackson.dataformat.xml.XmlFactory.<init>(XmlFactory.java:100) ~[?:?]
at com.fasterxml.jackson.dataformat.xml.XmlFactory.<init>(XmlFactory.java:84) ~[?:?]
at com.fasterxml.jackson.dataformat.xml.XmlMapper.<init>(XmlMapper.java:122) ~[?:?]
at com.azure.core.util.serializer.JacksonAdapter.<init>(JacksonAdapter.java:76) ~[?:?]
at com.azure.core.util.serializer.JacksonAdapter.createDefaultSerializerAdapter(JacksonAdapter.java:112) ~[?:?]
at com.azure.identity.implementation.IdentityClient.<clinit>(IdentityClient.java:89) ~[?:?]
at com.azure.identity.implementation.IdentityClientBuilder.build(IdentityClientBuilder.java:99) ~[?:?]
at com.azure.identity.ClientCertificateCredential.<init>(ClientCertificateCredential.java:50) ~[?:?]
at com.azure.identity.ClientCertificateCredentialBuilder.build(ClientCertificateCredentialBuilder.java:79) ~[?:?]
Succeeded
Success!
dependencies {
compile 'org.rundeck:rundeck-storage-api:3.0.27-20191204'
compile "org.rundeck:rundeck-core:3.0.27-20191204"
pluginLibs(group: "com.azure", name: "azure-identity", version: "1.1.2"){
exclude group:'org.slf4j', module: 'slf4j-api'
}
pluginLibs group: "com.azure", name: "azure-security-keyvault-secrets", version: "4.2.1"
pluginLibs group: "org.apache.logging.log4j", name: "log4j-slf4j-impl", version: "2.0"
pluginLibs group: "com.fasterxml.woodstox", name: "woodstox-core", version: "6.2.1"
runtime group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
runtime group: "com.fasterxml.woodstox", name: "woodstox-core", version: "6.2.1"
}
def libList = configurations.pluginLibs.findAll({!it.name.contains("stax")}).collect{'lib/'+it.name}.join(' ')
hi, how did u fixed this?
@gilangarinata by adding this line to the gradle file
def libList = configurations.pluginLibs.findAll({!it.name.contains("stax")}).collect{'lib/'+it.name}.join(' ')
Also please diff my initial gradle config dependencies vs my comment on sep 29, 2022
Query/Question I seem to be having similar issues to #6313
I'm developing a storage plugin for Rundeck and trying to use the azure-identity and azure-keyvault-secrets sdk
I'm getting the following errors
My gradle config
And my dependency tree
Any tips on beating this? I tried forcing the version, but it doesn't seem to work
Why is this not a Bug or a feature Request?
I have a feeling that it's not a bug and something related to Spring / Rundeck / Plugin Path
Setup (please complete the following information if applicable):
IDE : Intellij
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report