Hi Mat,

They've created circular references in the includes in the 2009A 
schemas, which I suspect is the cause of the problem 
(OTA_HotelCommonTypes includes OTA_HotelReservation, and 
OTA_HotelReservation includes OTA_HotelCommonTypes). This is valid in 
schema terms, but appears to cause a glitch in the name reference 
processing. I'm looking into fixing this for 1.2.2 now.

  - Dennis

Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Mateusz Krzeszowiec wrote:
> Hi,
>
> I'm trying to use CodeGen to generate binding and classes from:
> http://www.opentravel.org/2009A/OTA_HotelAvailRQ.xsd and
> http://www.opentravel.org/2009A/OTA_HotelAvailRS.xsd
> and codegen complains about some types missing.
> I had a quick look at the XSD's and all the CodeGen is complaining about
> seems to be there :/
> The funny thing is that it works more then fine with 2007B, 2008A and 2008B.
>
> Output below:
>
> D:\Documents\whyitsnotworking\codegen\2009A\manual_test>java -cp
> d:\java\jibx\lib\jibx-tools.jar org.jibx.schema.codegen.CodeGen -v
> OTA_HotelAvailRQ.xsd
> Output to directory .
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoutingHopType' is not defined
> for 'element' at (line 117, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoutingHopType' is not defined
> for 'element' at (line 117, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoutingHopType' is not defined
> for 'element' at (line 240, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoutingHopType' is not defined
> for 'element' at (line 240, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced attributeGroup
> '{http://www.opentravel.org/OTA/2003/05}:SelectedLoyaltyGroup' is not
> defined for 'attributeGroup' at (line 307, col 53, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced attributeGroup
> '{http://www.opentravel.org/OTA/2003/05}:SelectedLoyaltyGroup' is not
> defined for 'attributeGroup' at (line 307, col 53, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:GuestCountType' is not defined
> for 'element' at (line 318, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:GuestCountType' is not defined
> for 'element' at (line 318, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:MembershipType' is not defined
> for 'element' at (line 344, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:MembershipType' is not defined
> for 'element' at (line 344, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:GuaranteeType' is not defined for
> 'element' at (line 360, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:GuaranteeType' is not defined for
> 'element' at (line 360, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RequiredPaymentsType' is not
> defined for 'element' at (line 365, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RequiredPaymentsType' is not
> defined for 'element' at (line 365, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:CancelPenaltiesType' is not
> defined for 'element' at (line 370, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:CancelPenaltiesType' is not
> defined for 'element' at (line 370, col 6, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:HotelReservationIDsType' is not
> defined for 'element' at (line 393, col 91, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:HotelReservationIDsType' is not
> defined for 'element' at (line 393, col 91, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoutingHopType' is not defined
> for 'element' at (line 395, col 8, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoutingHopType' is not defined
> for 'element' at (line 395, col 8, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:BookingRulesType' is not defined
> for 'element' at (line 401, col 8, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:BookingRulesType' is not defined
> for 'element' at (line 401, col 8, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:GuestCountType' is not defined
> for 'element' at (line 474, col 75, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:GuestCountType' is not defined
> for 'element' at (line 474, col 75, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:MembershipType' is not defined
> for 'element' at (line 614, col 11, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:MembershipType' is not defined
> for 'element' at (line 614, col 11, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:BookingRulesType' is not defined
> for 'element' at (line 646, col 11, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:BookingRulesType' is not defined
> for 'element' at (line 646, col 11, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoomStayType' is not defined for
> 'extension' at (line 611, col 9, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:RoomStayType' is not defined for
> 'extension' at (line 611, col 9, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:AmountType' is not defined for
> 'element' at (line 698, col 9, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:AmountType' is not defined for
> 'element' at (line 698, col 9, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelReservation.xsd)
> Terminating due to errors in input schemas
>
> D:\Documents\whyitsnotworking\codegen\2009A\manual_test>java -cp
> d:\java\jibx\lib\jibx-tools.jar org.jibx.schema.codegen.CodeGen -v
> OTA_HotelAvailRS.xsd
> Output to directory .
> ERROR codegen.CodeGen - Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:ServiceRPHsType' is not defined
> for 'element' at (line 1, col 255569, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelCommonTypes.xsd)
> Error: Referenced type
> '{http://www.opentravel.org/OTA/2003/05}:ServiceRPHsType' is not defined
> for 'element' at (line 1, col 255569, in
> file:///D:/Documents/whyitsnotworking/codegen/2009A/manual_test/OTA_HotelCommonTypes.xsd)
> Terminating due to errors in input schemas
>
> Any suggestions/ideas?
>
> Greetings,
> mat
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to