users@glassfish.java.net

Migrating to JAXB 2.0.5 from 1.0

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Oct 2007 06:58:45 PDT

Hi All,

I have JAXB1.0 and want to migrate to 2.0.5.

[b]Steps performed are:[/b]
1. Downloaded JAXB 2.0.5(JAXB2_20070122.jar).
2. Executed java –jar JAXB2_20070122.jar which created a folder named JAXB2_20070122 which contains lib, bin, doc and samples directory
3. Changed classpath and path to point to this directory

Tried to execute using ant's build script. It was failing and giving error as below
[b]Error:[/b]
[ERROR] compiler was unable to honor this globalBindings customization. It is attached to a wrong place, or its inconsistent with other bindings.

[b]global bindings are as under:[/b]
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://abcd.pqr.com/4"
    xmlns:jxb="http://java.sun.com/xml/ns/jaxb" jxb:version="2.0"
    xmlns="http://abcd.pqr.com/4"
    elementFormDefault="qualified">
    <xsd:annotation>
        <xsd:appinfo>
        <jxb:globalBindings generateIsSetMethod="true"/>
        </xsd:appinfo>
    </xsd:annotation>
</xsd:schema>

Let me know if anyone require more details.

Thanks for help.
[Message sent by forum member 'utkarsh_shah' (utkarsh_shah)]

http://forums.java.net/jive/thread.jspa?messageID=240413