Something to be aware of, I see two xmlbean jars being pulled in. Probably not the main issue.
[DEBUG] org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile ... > [DEBUG] org.apache.xmlbeans:xmlbeans:3.1.0:null:compile:jar What version of Maven are you running? I don't see it. The 3.x versions may have problems with the absolute path I mentioned, I saw that while looking into the problem. Anyways, looking at the stack trace I have an idea of what may be happening, not sure though: The plugin is actually finding XmlbeansDatabindingTemplate.xsl. That is what happens maybe at XSLTTemplateProcessor.java:147 in the stack trace. You could add some logging to confirm. Other xsl files are being pulled in that have 'include href="databindsupporter"' , or the code uses that constant . The databindsupporter dir simply doesn't exist. Just to test out that theory, I suggest creating '/var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter via the jenkins build, or in the pom.xml before the plugin runs. On Tue, Dec 17, 2019 at 5:25 AM Mike Fryars <mfry...@hotmail.com> wrote: > > >> The absolute path of the xsl reference may be a problem, I suggest > >> removing the leading "/" and seeing if that helps. > > Hi Robert, I tried what you suggested, changing the value in > codegen-config.properties to remove the leading slash. But the result is the > same, getClass().getResource() still returns null. > > As for the debug output of the maven build, does this help? > > [INFO] --- axis2-wsdl2code-maven-plugin:1.7.9:wsdl2code > ..... > [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, > ConflictMarker.markTime=1, ConflictMarker.nodeCount=135, > ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, > ConflictIdSorter.conflictIdCount=66, ConflictIdSorter.conflictIdCycleCount=0, > ConflictResolver.totalTime=4, ConflictResolver.conflictItemCount=134, > DefaultDependencyCollector.collectTime=164, > DefaultDependencyCollector.transformTime=5} > [DEBUG] org.apache.axis2:axis2-wsdl2code-maven-plugin:jar:1.7.9: > [DEBUG] org.apache.maven:maven-plugin-api:jar:3.0.5:compile > [DEBUG] org.apache.maven:maven-model:jar:3.0.5:compile > [DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0:compile > [DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:2.3.0:compile > [DEBUG] org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:compile > [DEBUG] org.sonatype.sisu:sisu-guava:jar:0.9.9:compile > [DEBUG] org.apache.maven:maven-artifact:jar:3.0.5:compile > [DEBUG] org.apache.maven:maven-core:jar:3.0.5:compile > [DEBUG] org.apache.maven:maven-settings:jar:3.0.5:compile > [DEBUG] org.apache.maven:maven-settings-builder:jar:3.0.5:compile > [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0.5:compile > [DEBUG] org.apache.maven:maven-model-builder:jar:3.0.5:compile > [DEBUG] org.apache.maven:maven-aether-provider:jar:3.0.5:compile > [DEBUG] org.sonatype.aether:aether-spi:jar:1.13.1:compile > [DEBUG] org.sonatype.aether:aether-impl:jar:1.13.1:compile > [DEBUG] org.sonatype.aether:aether-api:jar:1.13.1:compile > [DEBUG] org.sonatype.aether:aether-util:jar:1.13.1:compile > [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.14:compile > [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.4:compile > [DEBUG] > org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile > [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile > [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile > [DEBUG] org.apache.axis2:axis2-codegen:jar:1.7.9:compile > [DEBUG] com.sun.xml.ws:jaxws-tools:jar:2.2.6:compile > [DEBUG] org.apache.axis2:axis2-kernel:jar:1.7.9:compile > [DEBUG] org.apache.ws.commons.axiom:axiom-api:jar:1.2.21:compile > [DEBUG] jaxen:jaxen:jar:1.1.6:compile > [DEBUG] > org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile > [DEBUG] org.apache.james:apache-mime4j-core:jar:0.7.2:compile > [DEBUG] org.apache.ws.commons.axiom:axiom-impl:jar:1.2.21:runtime > [DEBUG] org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:runtime > [DEBUG] org.codehaus.woodstox:stax2-api:jar:3.1.1:runtime > [DEBUG] > org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.2:compile > [DEBUG] org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile > [DEBUG] javax.servlet:servlet-api:jar:2.3:compile > [DEBUG] commons-fileupload:commons-fileupload:jar:1.3.3:compile > [DEBUG] wsdl4j:wsdl4j:jar:1.6.2:compile > [DEBUG] org.apache.ws.xmlschema:xmlschema-core:jar:2.2.1:compile > [DEBUG] org.apache.neethi:neethi:jar:3.0.3:compile > [DEBUG] org.apache.woden:woden-core:jar:1.0M10:compile > [DEBUG] commons-logging:commons-logging:jar:1.1.1:compile > [DEBUG] javax.ws.rs:jsr311-api:jar:1.1.1:compile > [DEBUG] commons-io:commons-io:jar:2.1:compile > [DEBUG] org.apache.axis2:axis2-adb:jar:1.7.9:compile > [DEBUG] org.apache.ws.commons.axiom:axiom-dom:jar:1.2.21:runtime > [DEBUG] > org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.2:compile > [DEBUG] org.apache.axis2:axis2-adb-codegen:jar:1.7.9:compile > [DEBUG] commons-cli:commons-cli:jar:1.2:compile > [DEBUG] org.apache.axis2:axis2-java2wsdl:jar:1.7.9:compile > [DEBUG] org.apache.axis2:axis2-transport-http:jar:1.7.9:compile > [DEBUG] org.apache.httpcomponents:httpclient:jar:4.5.3:compile > [DEBUG] org.apache.httpcomponents:httpcore:jar:4.4.6:compile > [DEBUG] commons-codec:commons-codec:jar:1.9:compile > [DEBUG] commons-httpclient:commons-httpclient:jar:3.1:compile > [DEBUG] org.apache.axis2:axis2-transport-local:jar:1.7.9:compile > [DEBUG] org.apache.axis2:axis2-xmlbeans:jar:1.7.9:compile > [DEBUG] org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile > [DEBUG] org.apache.axis2:axis2-jaxbri:jar:1.7.9:runtime > [DEBUG] org.apache.ws.commons.axiom:axiom-jaxb:jar:1.2.21:runtime > [DEBUG] com.sun.xml.bind:jaxb-impl:jar:2.2.6:runtime > [DEBUG] com.sun.xml.bind:jaxb-xjc:jar:2.2.6:runtime > [DEBUG] javax.xml.bind:jaxb-api:jar:2.2.6:runtime > [DEBUG] jalopy:jalopy:jar:1.5rc3:compile > [DEBUG] log4j:log4j:jar:1.2.15:compile > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.9:compile > [DEBUG] Created new class realm > plugin>org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9 > [DEBUG] Importing foreign packages into class realm > plugin>org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9 > [DEBUG] Imported: < maven.api > [DEBUG] Populating class realm > plugin>org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9 > [DEBUG] Included: org.apache.axis2:axis2-wsdl2code-maven-plugin:jar:1.7.9 > [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:2.3.0 > [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0 > [DEBUG] Included: org.sonatype.sisu:sisu-guava:jar:0.9.9 > [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.13.1 > [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 > [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 > [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 > [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 > [DEBUG] Included: org.apache.axis2:axis2-codegen:jar:1.7.9 > [DEBUG] Included: com.sun.xml.ws:jaxws-tools:jar:2.2.6 > [DEBUG] Included: org.apache.axis2:axis2-kernel:jar:1.7.9 > [DEBUG] Included: org.apache.ws.commons.axiom:axiom-api:jar:1.2.21 > [DEBUG] Included: jaxen:jaxen:jar:1.1.6 > [DEBUG] Included: > org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1 > [DEBUG] Included: org.apache.james:apache-mime4j-core:jar:0.7.2 > [DEBUG] Included: org.apache.ws.commons.axiom:axiom-impl:jar:1.2.21 > [DEBUG] Included: org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0 > [DEBUG] Included: org.codehaus.woodstox:stax2-api:jar:3.1.1 > [DEBUG] Included: > org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.2 > [DEBUG] Included: org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1 > [DEBUG] Included: javax.servlet:servlet-api:jar:2.3 > [DEBUG] Included: commons-fileupload:commons-fileupload:jar:1.3.3 > [DEBUG] Included: wsdl4j:wsdl4j:jar:1.6.2 > [DEBUG] Included: org.apache.ws.xmlschema:xmlschema-core:jar:2.2.1 > [DEBUG] Included: org.apache.neethi:neethi:jar:3.0.3 > [DEBUG] Included: org.apache.woden:woden-core:jar:1.0M10 > [DEBUG] Included: commons-logging:commons-logging:jar:1.1.1 > [DEBUG] Included: javax.ws.rs:jsr311-api:jar:1.1.1 > [DEBUG] Included: commons-io:commons-io:jar:2.1 > [DEBUG] Included: org.apache.axis2:axis2-adb:jar:1.7.9 > [DEBUG] Included: org.apache.ws.commons.axiom:axiom-dom:jar:1.2.21 > [DEBUG] Included: > org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.2 > [DEBUG] Included: org.apache.axis2:axis2-adb-codegen:jar:1.7.9 > [DEBUG] Included: commons-cli:commons-cli:jar:1.2 > [DEBUG] Included: org.apache.axis2:axis2-java2wsdl:jar:1.7.9 > [DEBUG] Included: org.apache.axis2:axis2-transport-http:jar:1.7.9 > [DEBUG] Included: org.apache.httpcomponents:httpclient:jar:4.5.3 > [DEBUG] Included: org.apache.httpcomponents:httpcore:jar:4.4.6 > [DEBUG] Included: commons-codec:commons-codec:jar:1.9 > [DEBUG] Included: commons-httpclient:commons-httpclient:jar:3.1 > [DEBUG] Included: org.apache.axis2:axis2-transport-local:jar:1.7.9 > [DEBUG] Included: org.apache.axis2:axis2-xmlbeans:jar:1.7.9 > [DEBUG] Included: org.apache.xmlbeans:xmlbeans:jar:2.6.0 > [DEBUG] Included: org.apache.axis2:axis2-jaxbri:jar:1.7.9 > [DEBUG] Included: org.apache.ws.commons.axiom:axiom-jaxb:jar:1.2.21 > [DEBUG] Included: com.sun.xml.bind:jaxb-impl:jar:2.2.6 > [DEBUG] Included: com.sun.xml.bind:jaxb-xjc:jar:2.2.6 > [DEBUG] Included: javax.xml.bind:jaxb-api:jar:2.2.6 > [DEBUG] Included: jalopy:jalopy:jar:1.5rc3 > [DEBUG] Included: log4j:log4j:jar:1.2.15 > [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.4.9 > [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:3.0.5 > [DEBUG] Excluded: org.apache.maven:maven-model:jar:3.0.5 > [DEBUG] Excluded: org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0 > [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:3.0.5 > [DEBUG] Excluded: org.apache.maven:maven-core:jar:3.0.5 > [DEBUG] Excluded: org.apache.maven:maven-settings:jar:3.0.5 > [DEBUG] Excluded: org.apache.maven:maven-settings-builder:jar:3.0.5 > [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:3.0.5 > [DEBUG] Excluded: org.apache.maven:maven-model-builder:jar:3.0.5 > [DEBUG] Excluded: org.apache.maven:maven-aether-provider:jar:3.0.5 > [DEBUG] Excluded: org.sonatype.aether:aether-spi:jar:1.13.1 > [DEBUG] Excluded: org.sonatype.aether:aether-impl:jar:1.13.1 > [DEBUG] Excluded: org.sonatype.aether:aether-api:jar:1.13.1 > [DEBUG] Excluded: org.codehaus.plexus:plexus-classworlds:jar:2.4 > [DEBUG] Configuring mojo > org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9:wsdl2code from plugin > realm ClassRealm[plugin>org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9, > parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29] > [DEBUG] Configuring mojo > 'org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9:wsdl2code' with basic > configurator --> > [DEBUG] (f) allPorts = false > [DEBUG] (f) backwardCompatible = false > [DEBUG] (f) databindingName = xmlbeans > [DEBUG] (f) flattenFiles = false > [DEBUG] (f) generateAllClasses = false > [DEBUG] (f) generateServerSide = false > [DEBUG] (f) generateServerSideInterface = false > [DEBUG] (f) generateServicesXml = false > [DEBUG] (f) generateTestcase = false > [DEBUG] (f) language = java > [DEBUG] (f) options = {} > [DEBUG] (f) outputDirectory = > /var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/generated-sources > [DEBUG] (f) overWrite = false > [DEBUG] (f) packageName = thomson.myprod.api.xxxx._1.authentication > [DEBUG] (f) project = MavenProject: > com.mycompany.myproduct.prodWs:prodWsAuthenticateClient:1.17.1-SNAPSHOT @ > /var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/pom.xml > [DEBUG] (f) skipBuildXML = false > [DEBUG] (f) skipMessageReceiver = false > [DEBUG] (f) skipWSDL = false > [DEBUG] (f) suppressPrefixes = false > [DEBUG] (f) syncMode = sync > [DEBUG] (f) targetSourceFolderLocation = src > [DEBUG] (f) unpackClasses = true > [DEBUG] (f) unwrap = false > [DEBUG] (f) wsdlFile = > /var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/../MyAppWsCommon/wsdl/myProd_authentication_1.wsdl > [DEBUG] -- end configuration -- > [DEBUG] The projects dependency artifacts are: > [DEBUG] org.apache.axis2:axis2-xmlbeans:1.7.9:null:compile:jar > [DEBUG] The projects transitive artifacts are: > [DEBUG] org.apache.axis2:axis2-xmlbeans:1.7.9:null:compile:jar > [DEBUG] org.apache.axis2:axis2-codegen:1.7.9:null:compile:jar > [DEBUG] org.apache.axis2:axis2-kernel:1.7.9:null:compile:jar > [DEBUG] org.apache.ws.commons.axiom:axiom-api:1.2.21:null:compile:jar > [DEBUG] jaxen:jaxen:1.1.6:null:compile:jar > [DEBUG] > org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:1.0.1:null:compile:jar > [DEBUG] org.apache.james:apache-mime4j-core:0.7.2:null:compile:jar > [DEBUG] org.apache.ws.commons.axiom:axiom-impl:1.2.21:null:runtime:jar > [DEBUG] org.codehaus.woodstox:woodstox-core-asl:4.2.0:null:runtime:jar > [DEBUG] org.codehaus.woodstox:stax2-api:3.1.1:null:runtime:jar > [DEBUG] > org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:1.1.2:null:compile:jar > [DEBUG] > org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1:null:compile:jar > [DEBUG] commons-fileupload:commons-fileupload:1.3.3:null:compile:jar > [DEBUG] wsdl4j:wsdl4j:1.6.3:null:compile:jar > [DEBUG] org.apache.ws.xmlschema:xmlschema-core:2.2.1:null:compile:jar > [DEBUG] org.apache.neethi:neethi:3.0.3:null:compile:jar > [DEBUG] org.apache.woden:woden-core:1.0M10:null:compile:jar > [DEBUG] commons-logging:commons-logging:1.1.1:null:compile:jar > [DEBUG] javax.ws.rs:jsr311-api:1.1.1:null:compile:jar > [DEBUG] commons-io:commons-io:1.4:null:compile:jar > [DEBUG] org.apache.axis2:axis2-adb:1.7.9:null:compile:jar > [DEBUG] org.apache.ws.commons.axiom:axiom-dom:1.2.21:null:runtime:jar > [DEBUG] > org.apache.geronimo.specs:geronimo-activation_1.1_spec:1.0.2:null:compile:jar > [DEBUG] com.sun.xml.ws:jaxws-tools:2.2.6:null:compile:jar > [DEBUG] org.apache.xmlbeans:xmlbeans:3.1.0:null:compile:jar > Retrieving document at > '/var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/../MyAppWsCommon/wsdl/myProd_authentication_1.wsdl'. > Retrieving schema at 'myProd_authentication_metadata_1.xsd', relative to > 'file:/var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/../MyAppWsCommon/wsdl/myProd_authentication_1.wsdl'. > Retrieving schema at 'myProd_authentication_transport_1.xsd', relative to > 'file:/var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/../MyAppWsCommon/wsdl/myProd_authentication_1.wsdl'. > Retrieving schema at 'myProd_common_transport_1.xsd', relative to > 'file:/var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/../MyAppWsCommon/wsdl/myProd_authentication_1.wsdl'. > log4j:WARN No appenders could be found for logger > (org.apache.axiom.locator.DefaultOMMetaFactoryLocator). > log4j:WARN Please initialize the log4j system properly. > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > (file:/home/jenkins/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1.jar) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getInputEncoding() > WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release > ERROR: 'Could not compile stylesheet' > FATAL ERROR: > '/var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter > (Aucun fichier ou dossier de ce type)' > > :/var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter > (Aucun fichier ou dossier de ce type) > java.io.FileNotFoundException: > /var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter > (Aucun fichier ou dossier de ce type) > at java.base/java.io.FileInputStream.open0(Native Method) > at java.base/java.io.FileInputStream.open(FileInputStream.java:219) > at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) > at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112) > at > java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86) > at > java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184) > at > java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:654) > at > java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150) > at > java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:860) > at > java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824) > at > java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) > at > java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216) > at > java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:429) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:512) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Include.parseContents(Include.java:113) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:597) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:559) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:398) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:493) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:570) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1018) > at > java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:817) > at > org.apache.axis2.util.XSLTTemplateProcessor.parse(XSLTTemplateProcessor.java:147) > at > org.apache.axis2.util.XSLTTemplateProcessor.parse(XSLTTemplateProcessor.java:117) > at org.apache.axis2.wsdl.codegen.writer.FileWriter.parse(FileWriter.java:175) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeFile(AxisServiceBasedMultiLanguageEmitter.java:2663) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1254) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:495) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:283) > at > org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:653) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > Michael FRYARS > mfry...@hotmail.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ________________________________ > From: robertlazarski . <robertlazar...@gmail.com> > Sent: 16 December 2019 16:50 > To: java-dev@axis.apache.org <java-dev@axis.apache.org> > Subject: Re: axis2 codegen error: No such file or directory: databindsupporter > > Somehow it seems axis2-xmlbeans-1.7.9.jar is not in the same > classloader that calls getClass() in the getSourceFromTemplateName() > method. The URL resource of the xsl file is not in any of the jars > loaded. > > The level of detail here is helpful, it eliminates a lot of things > already. Try passing -X into maven, it will show if > axis2-xmlbeans-1.7.9.jar is being loaded by maven and from where. If > its loaded in the same classloader, there is problem maybe with the > path or name of the xsl file. > > Regards, > Robert > > On Mon, Dec 16, 2019 at 4:53 AM Mike Fryars <mfry...@hotmail.com> wrote: > > > > Hello Robert, no not Ant-based, it's a maven plugin that runs code > > generation. (axis2-wsdl2code-maven-plugin) > > Some news: > > 1) The Windows vs Linux difference is a red herring, in fact the problem is > > showing up under Windows as well as Linux now. (kind of good news in a way) > > 2) I did some investigation to find out where the "databindsupporter" error > > comes from... > > The "databindsupporter" string is present as a place-holder in : > > axis2-codegen-1.7.9.jar : > > /org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl > > ... and is supposed to cause another XST to be pulled at the moment of > > 'compilation'. > > - My maven POM supplies a configuration value of databindingName=xmlbeans > > - codegen-config.properties maps this to a specific XSL file to pull in > > axis2-codegen-1.7.9.jar : > > /org/apache/axis2/wsdl/codegen/codegen-config.properties > > > > codegen.databinding.xmlbeans.supporter.template=/org/apache/axis2/xmlbeans/template/XmlbeansDatabindingTemplate.xsl > > (this .xsl is present in axis2-xmlbeans-1.7.9.jar) > > - axis2-codegen-1.7.9.jar : org.apache.axis2.wsdl.util.XSLTIncludeResolver > > private Source getSourceFromTemplateName(String templateName) > > throws TransformerException > > ... > > URL templateUrl = getClass().getResource(templateName); > > This method receives > > "/org/apache/axis2/xmlbeans/template/XmlbeansDatabindingTemplate.xsl" as a > > parameter and attempts to read the file in as a resource. But the call to > > getClass().getResource(templateName) returns null. [I confirmed this by > > tweaking/recompiling the source to add some debug output] > > So the problem seems to come down to failing to read in the > > xmlbeans-specific file from a different jar. > > I note that the old implementation (1.4.1) of this method uses > > getResourceAsStream() rather than getResource() here. > > However, when I experimented with replacing this method in 1.7.9 with the > > 1.4.1 version, the build passed this step but failed later on, again with a > > message relating to a null URL object. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Michael FRYARS > > mfry...@hotmail.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > ________________________________ > > From: robertlazarski . <robertlazar...@gmail.com> > > Sent: 05 December 2019 14:24 > > To: java-dev@axis.apache.org <java-dev@axis.apache.org> > > Subject: Re: axis2 codegen error: No such file or directory: > > databindsupporter > > > > This is a build via jenkins right, that is running ant for codegen? Try > > passing -debug and -verbose to ant in the build, and paste the entire build > > output here. > > > > On Wed, Dec 4, 2019 at 4:45 AM Mike Fryars <mfry...@hotmail.com> wrote: > > > > Hi Robert, the file doesn't exist, no. But then it never has up to now. The > > old stack worked without it, the new stack works without it as long as the > > Maven build is under Windows. But under linux the new stack fails. > > I'm guessing here, but the "databindsupporter" (referenced in > > /org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl) > > looks like a place holder that should be replaced by something more > > specific, i.e. something specific to XmlBeans in my case. > > Execution of the maven mojo seems like it should know to use XmlBeans (see > > config parameter databindingName) … > > > > [DEBUG] Configuring mojo > > org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9:wsdl2code from plugin > > realm > > ClassRealm[plugin>org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9, > > parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29] > > [DEBUG] Configuring mojo > > 'org.apache.axis2:axis2-wsdl2code-maven-plugin:1.7.9:wsdl2code' with basic > > configurator --> > > [DEBUG] (f) allPorts = false > > [DEBUG] (f) backwardCompatible = false > > [DEBUG] (f) databindingName = xmlbeans > > [DEBUG] (f) flattenFiles = false > > [DEBUG] (f) generateAllClasses = false > > [DEBUG] (f) generateServerSide = false > > [DEBUG] (f) generateServerSideInterface = false > > [DEBUG] (f) generateServicesXml = false > > [DEBUG] (f) generateTestcase = false > > [DEBUG] (f) language = java > > [DEBUG] (f) options = {} > > [DEBUG] (f) outputDirectory = > > /var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/generated-sources > > [DEBUG] (f) overWrite = false > > [DEBUG] (f) packageName = myfirm.myproduct.api.iptv._1.authentication > > [DEBUG] (f) project = MavenProject: > > com.myfirm.myproduct.myAppWs:myAppWsAuthenticateClient:1.17.1-SNAPSHOT @ > > /var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/pom.xml > > [DEBUG] (f) skipBuildXML = false > > [DEBUG] (f) skipMessageReceiver = false > > [DEBUG] (f) skipWSDL = false > > [DEBUG] (f) suppressPrefixes = false > > [DEBUG] (f) syncMode = sync > > [DEBUG] (f) targetSourceFolderLocation = src > > [DEBUG] (f) unpackClasses = true > > [DEBUG] (f) unwrap = false > > [DEBUG] (f) wsdlFile = > > /var/lib/jenkins/workspace/spf_core_Webservices_develop/MyAppWsAuthenticateClient/../MyAppWsCommon/wsdl/myproduct_authentication_1.wsdl > > [DEBUG] -- end configuration -- > > > > > > > > ________________________________ > > From: robertlazarski . <robertlazar...@gmail.com> > > Sent: 04 December 2019 14:13 > > To: java-dev@axis.apache.org <java-dev@axis.apache.org> > > Subject: Re: axis2 codegen error: No such file or directory: > > databindsupporter > > > > That's a very similar environment as my day job, does the dir exist? My > > guess is the path is wrong in your config. Less likely but possible, is it > > exists though without read access somehow. > > > > /var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter > > > > Regards, > > Robert > > > > On Tue, Dec 3, 2019 at 11:43 PM Mike Fryars <mfry...@hotmail.com> wrote: > > > > Cross-posting from java-user since it may be too low-level to get much > > response from fellow users... > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > Hi, can anyone tell me about this error during axis2 code generation from a > > Maven build? > > [INFO] --- axis2-wsdl2code-maven-plugin:1.7.9:wsdl2code > > ..... > > ERROR: 'Could not compile stylesheet' > > FATAL ERROR: > > '/var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter > > (Aucun fichier ou dossier de ce type)' > > > > :/var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter > > (Aucun fichier ou dossier de ce type) > > java.io.FileNotFoundException: > > /var/lib/jenkins/workspace/spf_core_Webservices_develop/databindsupporter > > (Aucun fichier ou dossier de ce type) > > at java.base/java.io.FileInputStream.open0(Native Method) > > at java.base/java.io.FileInputStream.open(FileInputStream.java:219) > > at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) > > at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112) > > at > > java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86) > > at > > java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184) > > at > > java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:654) > > at > > java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150) > > at > > java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:860) > > at > > java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824) > > at > > java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) > > at > > java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216) > > at > > java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:429) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:512) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Include.parseContents(Include.java:113) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:597) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:559) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:398) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:493) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:570) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1018) > > at > > java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:817) > > at > > org.apache.axis2.util.XSLTTemplateProcessor.parse(XSLTTemplateProcessor.java:147) > > at > > org.apache.axis2.util.XSLTTemplateProcessor.parse(XSLTTemplateProcessor.java:117) > > at > > org.apache.axis2.wsdl.codegen.writer.FileWriter.parse(FileWriter.java:175) > > at > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeFile(AxisServiceBasedMultiLanguageEmitter.java:2663) > > at > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1254) > > at > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:495) > > at > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:283) > > at > > org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:653) > > ..... > > ("Aucun fichier ou dossier de ce type" = no file or folder of this type) > > I'm getting the above error with the following stack: > > CentOS-7 > > Jenkins > > jdk-11.0.2 > > Maven 3 > > Axis2 1.7.9 > > XmlBeans > > On an older technology stack (axis 1.4.1, Java 6, etc) the same WSDL/XSD > > set worked just fine. > > On a Windows 10 PC the updated Maven build (without Jenkins) now works just > > fine with the same WSDL/XSD set. > > But I need the updated CentOS-7/Jenkins build stack to work. > > As I understand it the reference to databindsupporter is here: > > axis2-codegen-1.7.9.jar : > > /org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl > > <!-- import the databinding template--> > > <xsl:include href="databindsupporter"/> > > Any help/advice much appreciated, thanks in advance, > > Mike Fryars > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org > For additional commands, e-mail: java-dev-h...@axis.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org