You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Colm O hEigeartaigh <co...@apache.org> on 2018/06/27 15:33:35 UTC

Java 9 build

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

R: Java 9 build

Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
We have build running on Jenkins for Java 9 and Java 10. We have a small number of test errorsĀ 

Inviato da Yahoo Mail su Android 
 
  Il mer, 27 giu, 2018 alle 17:33, Colm O hEigeartaigh<co...@apache.org> ha scritto:   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
  

Re: Java 9 build

Posted by Zoran Regvart <zo...@regvart.com>.
Hi Colm,
so I think I've fixed that by reverting to 2.3.0 for both JAXB API and
JAXB implementation.

I've also made a change to the daily build so that the build fails at
the end if one of the stages testing JDK 9/10/11 fail.

I think, we'll see the results of this late today, I think it will
take about ~12 hours for the tests to finish.

zoran

On Fri, Jun 29, 2018 at 4:22 PM, Colm O hEigeartaigh
<co...@apache.org> wrote:
> 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

-- 
Zoran Regvart

Re: Java 9 build

Posted by Colm O hEigeartaigh <co...@apache.org>.
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 <zo...@regvart.com> 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
> <co...@apache.org> 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

Re: Java 9 build

Posted by Zoran Regvart <zo...@regvart.com>.
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
<co...@apache.org> 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