Understanding JAXB: Java Binding Customization
Subject:   Date problem...
Date:   2005-03-23 11:26:53
From:   Jaxnitup
Response to: Date problem...

I hav a similiar issue....

I am getting the following eror when trying to compile the Java object using the xjc script

Here is the portion of my XSD which uses the custom JXB declarations:
<xs:complexType name="ccbndatetype" mixed="true">
<jxb:javaType name="java.util.Date" parseMethod="com.calpine.webservice.client.xml.ccbn.CCBNDateConverter.parseStringToDate" printMethod="com.calpine.webservice.client.xml.ccbn.CCBNDateConverter.parseDateToString"/>
<xs:extension base="xs:string">
<xs:attribute name="Date" type="xs:int" use="required"/>
<xs:attribute name="Time" type="xs:time" use="required"/>

When i run the following...
%JAXB_HOME%\bin\xjc.bat -extension ccbn-complex-global.xsd -p com.calpine.webservice.client.xml.ccbn

It returns this error:
parsing a schema...
[ERROR] <javaType> customization in this context must be nested (JAXB spec sec 6.8.1):
<javaType ...>
line 17 of ccbn-complex-global.xsd

Line 17 is the '<xs:appinfo>' just above the custom jxb:JavaType tag

PLEASE help!!!!

1 to 1 of 1
1 to 1 of 1