Hi,

More errors, sorry for this. I've tried everything I could imagine, but
couldn't fix those ones. I've started using the ota-osgi packages, but since
I needed to do some tweaks on PingRS I had to recompile the ping package.
I've tried this two ways, but both failed when compiling. By the way, is
there any difference between the ota-osgi packages and the jibx-ota
generated packages?

In the first instance I've used the ota-osgi base & ping packages + the
binding files (from maven's repos). I modified PingRS.java, compiled it and
then I've tried to compile the bindings for the ping package. Actually
without modifing anything and just trying to redo the bindings for the ping
packages fails too with the same error.

*$ java -cp .:./joda-time.jar:./jibx-extras.jar:./jibx-bind.jar
org.jibx.binding.Compile ping-binding.xml
Error running binding compiler
java.lang.IllegalStateException: Internal error - cannot modify class
org.jibx.ota.base.Action loaded from /home/...
    at org.jibx.binding.classes.ClassFile.getClassGen(ClassFile.java:1286)*

I compiled the OTA2010B using jibx-ota and failed with OTA2010B, however it
was ok with OTA2006B. I would prefer to use the latest tough. I've also
noticed that with OTA2006B the timestamp of payloadStdAttributes is Date in
the java file although in the schema it's dateTime. For OTA2010B the
timestamp type is correct. I'm wondering why this difference.

*generate-full:
     [echo] Running code generation from schema
     [java] Warning: No type defined for attribute 'Number' at (line 343,
col 7, in
file:///media/38da93d9-2eaf-47e0-96df-4cc5c89d8450/tmp/jibx-ota/OTA2010B/OTA_RailCommonTypes.xsd)
     [java] Warning: No type defined for attribute 'MoreEchoDataToken' at
(line 92, col 9, in OTA_HotelInvChangeRQ.xsd)
     [java] Loaded and validated 256 specified schema(s) and 26 referenced
schema(s)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:FareAccessPrefType; on format element
at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:CabinPrefGroup-AttributeGroup; on
mapping element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:DestinationLevelGroup-AttributeGroup;
on mapping element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:ExtrasSelectionGroup-AttributeGroup;
on mapping element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:PriceGroup-AttributeGroup; on mapping
element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:ResortCodeGroup-AttributeGroup; on
mapping element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:ChargesType; on mapping element at
(sourException in thread "main" ce unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:CustomerCountsType; on mapping
element at (source unknorg.jibx.runtime.JiBXException: Terminating due to
errors in bindings
     [java]     at
org.jibx.schema.codegen.CodeGen.writeBindings(CodeGen.java:1618)
     [java]     at
org.jibx.schema.codegen.CodeGen.generate(CodeGen.java:1808)
     [java]     at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:2202)
     [java] own)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:ExtrasCoreType; on mapping element at
(source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:ExtrasInfoType; on mapping element at
(source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:ExtrasType; on mapping element at
(source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:MealPlanType; on mapping element at
(source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:OwnInsuranceChoiceType; on mapping
element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:PkgFlightSegmentType; on mapping
element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:PkgPriceType; on mapping element at
(source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:PropertyIdentityType; on mapping
element at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:RoomProfileType; on mapping element
at (source unknown)
     [java] Error: Duplicate name {
http://www.opentravel.org/OTA/2003/05}:SeatAvailabilityType; on mapping
element at (source unknown)*
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to