Thanks for the replies - I'm not behind a proxy and the Spring file looks fine, so I'm not sure what the issue could be.
Incidentally, the camel-cxf-transport module is broken on Java 9 with: [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java (generate-test-sources) on project camel-cxf-transport: Execution generate-test-sources of goal org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java failed: Plugin org.apache.cxf:cxf-codegen-plugin:3.2.4 or one of its dependencies could not be resolved: Could not find artifact javax.xml.bind:jaxb-api:jar:2.3.0.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java (generate-test-sources) on project camel-cxf-transport: Execution generate-test-sources of goal org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java failed: Plugin org.apache.cxf:cxf-codegen-plugin:3.2.4 or one of its dependencies could not be resolved: Could not find artifact javax.xml.bind:jaxb-api:jar:2.3.0.1 in central (https://repo.maven.apache.org/maven2) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) Ref: https://builds.apache.org/view/C/view/Apache%20Camel/job/Camel.daily/68/consoleFull Colm. On Thu, Jun 28, 2018 at 8:50 AM, Zoran Regvart <[email protected]> wrote: > Hi Colm, > we have a daily build to test Camel on Java 9 and 10[1]. We build on > Java 8 and run tests on 9/10, we're now looking into running tests on > Java 11 early access builds. > > John Poth worked on getting Camel to build on Java 9, while I haven't > tried it recently I believe this should still work. > > What I see in the error you provided is a namespace issue while > parsing XML, are you behind a proxy? If so, could that proxy interfere > with downloading XSD files from the Internet? > > You might try downloading that camel-spring.xsd[2] file and see if it > looks OK. > > zoran > > [1] https://builds.apache.org/view/C/view/Apache%20Camel/job/Camel.daily/ > [2] https://camel.apache.org/schema/spring/camel-spring.xsd > > On Wed, Jun 27, 2018 at 5:33 PM, Colm O hEigeartaigh > <[email protected]> wrote: > > Hi all, > > > > Is the current Camel master supposed to build with Java 9? I get some > > failures in camel-spring with Java 9.0.4 along the lines of: > > > > [ERROR] > > testInvokeServiceWithMessageHeader(org.apache.camel.spring. > produce.ProduceTest) > > Time elapsed: 0 s <<< ERROR! > > java.lang.IllegalStateException: Failed to load ApplicationContext > > Caused by: > > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: > Line > > 1 in XML document from class path resource > > [org/apache/camel/spring/produce/ProduceTest-context.xml] is invalid; > > nested exception is org.xml.sax.SAXParseException; systemId: > > http://camel.apache.org/schema/spring/camel-spring.xsd; lineNumber: 1; > > columnNumber: 242; s4s-elt-schema-ns: The namespace of element 'schema' > > must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'. > > Caused by: org.xml.sax.SAXParseException: s4s-elt-schema-ns: The > namespace > > of element 'schema' must be from the schema namespace, ' > > http://www.w3.org/2001/XMLSchema'. > > > > Colm. > > > > -- > > Colm O hEigeartaigh > > > > Talend Community Coder > > http://coders.talend.com > > > > -- > Zoran Regvart > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
