Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 999211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:18:55+00:00 2026-05-16T07:18:55+00:00

When binding on some valid XML documents using Ant’s xjc2 task, I get the

  • 0

When binding on some valid XML documents using Ant’s xjc2 task, I get the following failure message:

[xjc2] [ERROR] null
[xjc2] unknown location

The documents are very similar to other files which have bound successfully, all imported schemas exist. Running xjc in verbose mode produced:

Parent is not Defined Class...I cannot get the fields from this class

Anyone have any idea what this means?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:18:56+00:00Added an answer on May 16, 2026 at 7:18 am

    Schema Correctness Check

    In our use of XJC we have seen a similar problem (see the link below) that was solved by disabling the schema correctness check:

    • http://wiki.eclipse.org/EclipseLink/Examples/MOXy/Dynamic/JAXBContextFromXMLSchema

    Try the following System property to disable the schema correctness check.

    -Dcom.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.noCorrectnessCheck=true
    

    For Ant, try:

    <xjc target="src">
      <schema dir="src" includes="**/*.xsd" excludes="**/debug.xsd"/>
      <arg value="-nv" />
    </xjc>
    

    From the following page the -nv parameter relates to the schema correctness check:

    • http://fisheye5.atlassian.com/browse/~raw,r=1.1/jaxb/www/2.1-ea1/docs/xjcTask.html

    Getting into the Code

    You could try interacting with XJC programmatically (see below) and plug-in your own EntityResolver to see where the import/include fails:

    import com.sun.codemodel.*;
    import com.sun.tools.xjc.*;
    import com.sun.tools.xjc.api.*;
    
    SchemaCompiler sc = XJC.createSchemaCompiler();
    sc.setEntityResolver(new YourEntityResolver());
    sc.setErrorListener(new YourErrorListener());
    sc.parseSchema(SYSTEM_ID, element);
    S2JJAXBModel model = sc.bind();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery, I am binding some image tags with a click event like this:
I'm using expressjs along with nowjs, I'm binding some events to the now object
I'm binding some slightly complex functionality to a click event $(someSelector)).bind('click', someFunction(a,b,c)); function somefunction(a,b,c)
I have an Ultrawingrid to which I am binding some columns from the database.
I want to be able to add a Binding to some properties of a
After some struggle with smooks bean binding and CSV mapping, I managed to parse
There are some posts discussing adding data-binding ability for ListView.SelectedItems with non-trivial amount of
I'm having some trouble getting binding to work with JQuery. <iframe id=wufooFormz7x3k1 height=281 allowtransparency=true
For some user controls, I have this binding: AppLanguage={Binding Path=ApplicationLanguage, Source={x:Static Application.Current}} This works
I've got some Columns in a DataGridView that have their Binding property set to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.