rossjourdain / XeroAPI-PrivateApplication-Java

Quickstart library for implementing private application access to Xero using Java
rossjourdain.com
16 stars 22 forks source link

Build error with latest XML schemas #3

Open benmccann opened 9 years ago

benmccann commented 9 years ago
[ERROR] Error while parsing schema(s).Location [ file:XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ApiExceptionExtended.xsd{34,41}].
org.xml.sax.SAXParseException; systemId: file:XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ApiExceptionExtended.xsd; lineNumber: 34; columnNumber: 41; undefined simple or complex type 'ApiException'
chibeepatag commented 9 years ago

Place the schemas from https://github.com/rossjourdain/XeroAPI-Schemas and add it to the XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00 folder. There are already three files there ApiExceptionExtended.xsd, BaseTypesDateOverride.xjb, BaseTypesStatusOverride.xjb. Those are necessary!

As stated in step 3... Step 3: Get the Schemas They should be up to date but if not, you can get the latest Xero API schemas here: https://github.com/XeroAPI/XeroAPI-Schemas

I tried using the latest Xero API but it wouldn't generate the models! The old one works.

rkrysinski commented 9 years ago

I'm also experiencing the following build errors:

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Account.xsd{25,84}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Account.xsd; lineNumber: 25; columnNumber: 84; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Account.xsd{38,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Account.xsd; lineNumber: 38; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Invoice.xsd{31,84}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Invoice.xsd; lineNumber: 31; columnNumber: 84; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Invoice.xsd{64,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Invoice.xsd; lineNumber: 64; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Employee.xsd{29,85}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Employee.xsd; lineNumber: 29; columnNumber: 85; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Employee.xsd{37,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Employee.xsd; lineNumber: 37; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ExpenseClaim.xsd{38,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ExpenseClaim.xsd; lineNumber: 38; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ManualJournal.xsd{25,90}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ManualJournal.xsd; lineNumber: 25; columnNumber: 90; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ManualJournal.xsd{35,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/ManualJournal.xsd; lineNumber: 35; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/CreditNote.xsd{28,84}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/CreditNote.xsd; lineNumber: 28; columnNumber: 84; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/CreditNote.xsd{46,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/CreditNote.xsd; lineNumber: 46; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Receipt.xsd{33,84}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Receipt.xsd; lineNumber: 33; columnNumber: 84; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Receipt.xsd{54,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Receipt.xsd; lineNumber: 54; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Payment.xsd{26,84}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Payment.xsd; lineNumber: 26; columnNumber: 84; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Payment.xsd{30,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Payment.xsd; lineNumber: 30; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Tracking.xsd{16,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Tracking.xsd; lineNumber: 16; columnNumber: 80; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Tracking.xsd{23,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/Tracking.xsd; lineNumber: 23; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/BankTransaction.xsd{28,92}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/BankTransaction.xsd; lineNumber: 28; columnNumber: 92; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/BankTransaction.xsd{44,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/BankTransaction.xsd; lineNumber: 44; columnNumber: 80; The following location is relevant to the above error

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/TaxRate.xsd{30,84}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/TaxRate.xsd; lineNumber: 30; columnNumber: 84; Property "Status" is already defined. Use <jaxb:property> to resolve this conflict.

[ERROR] Error while parsing schema(s).Location [ file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/TaxRate.xsd{33,80}].
com.sun.istack.SAXParseException2; systemId: file:/C:/XeroAPI-PrivateApplication-Java/src/main/resources/XeroSchemas/v2.00/TaxRate.xsd; lineNumber: 33; columnNumber: 80; The following location is relevant to the above error
OnlineCounselling commented 8 years ago

We've added a repository with the classes already built for you if you're interested. We used them in our to connect to Xero in our online counselling application. Here are the classes.