camel-Jaxb does not print the schema location correctly

Solution In Progress - Updated -

Issue

We have a test case that marshalls csv content to xml using jaxb. It looks like jaxb can't get the schemaLocation to print correctly and getting the namespace prefix set to "test", as per the sample.

Intended output:

<test:testXML
    xsi:schemaLocation="urn:testXML:r25 http://www.mycompany.com/testXML/schemas/r25/testXML_r25.xsd"
    xmlns:test="urn:testXML:r25" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Actual output:

<ns3: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns3="urn:testXML:r31">

Environment

  • Red Hat JBoss Fuse 6.0 (Camel-JAXB 2.10.0.redhat-60024);
  • Red Hat JBoss Fuse 6.1 (Camel-JAXB 2.12.0.redhat-610379);

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content