Hi Dmitri,

The JiBX 1.2.3 release includes a number of bug fixes for code
generation from schema. Can you try this using the 1.2.3 release? If you
still get this problem with 1.2.3, please create a Jira problem report
and attach the set of schemas so I can recreate the problem.

Thanks,

  - Dennis

Dennis M. Sosnoski
Java SOA and Web Services Consulting <http://www.sosnoski.com/consult.html>
Axis2/CXF/Metro SOA and Web Services Training
<http://www.sosnoski.com/training.html>
Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html>


On 02/16/2011 05:28 AM, Dmitri Rodik wrote:
> Looking at this problem again, i think the duplicate classes are the cause
> of the error.  Does anyone know why would JIBX create duplicate classes
> while doing code generation? 
>
>
> On Mon, 14 Feb 2011 16:01:04 -0500, Dmitri Rodik <dmi...@dmitri.tv> wrote:
>   
>> Hi
>>
>> I'm having trouble creating bindings for webservices offered by a
>>     
> vendor.
>   
>> There is 1 WSDL whose schema consists of 28 XSDs. When all those XSDs
>>     
> get
>   
>> included as arguments for codegen, the binding phase fails. But when
>>     
> only
>   
>> a
>> few are included (ie the first 1,2,3,4,5 XSDs are fine) binding passes.
>> Only when i include the 6th and beyond, binding starts to fail. 
>>
>> Also during the codegen and compilation phase many duplicate files get
>> created like StrProps1, StrProps2, StrProps3 (when i include the 6th+).
>> This seems to be the source of the error I think. 
>>
>> Here's the binding error:
>>
>> [bind] Error: Object type com.hp.schemas.ucmdb.types.LongCondition is
>> incompatible with binding for class
>>     
> com.hp.schemas.ucmdb.types.Condition1;
>   
>> on structure element at (line 335, col 42, in ucmdb_1_typesBinding.xml)
>>      [bind] Error: Object type com.hp.schemas.ucmdb.types.LongProp is
>> incompatible with binding for class
>>     
> com.hp.schemas.ucmdb.types.LongProp1;
>   
>> on structure element at (line 336, col 112, in ucmdb_1_typesBinding.xml)
>>      [bind] Error: References to structure object must have compatible
>> types: com.hp.schemas.ucmdb.types.LongCondition cannot be used as
>> com.hp.schemas.ucmdb.types.Condition1; on structure element at (line
>>     
> 335,
>   
>> col 42, in ucmdb_1_typesBinding.xml)
>>      [bind] Error: Object type
>>     
> com.hp.schemas.ucmdb.types.DoubleCondition
>   
>> is incompatible with binding for class
>> com.hp.schemas.ucmdb.types.Condition1; on structure element at (line
>>     
> 341,
>   
>> col 42, in ucmdb_1_typesBinding.xml)
>>      [bind] Error: Object type com.hp.schemas.ucmdb.types.DoubleProp is
>> incompatible with binding for class
>> com.hp.schemas.ucmdb.types.DoubleProp1;
>> on structure element at (line 342, col 114, in ucmdb_1_typesBinding.xml)
>>      [bind] Error: References to structure object must have compatible
>> types: com.hp.schemas.ucmdb.types.DoubleCondition cannot be used as
>> com.hp.schemas.ucmdb.types.Condition1; on structure element at (line
>>     
> 341,
>   
>> col 42, in ucmdb_1_typesBinding.xml)
>>
>> How can i stop this duplicate creation and successfuly create bindings
>>     
> for
>   
>> all the schema definition files?
>>
>> Thanks,
>> Dmitri
>>     
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to