Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAXB Failed to read imported/included schema document

843834May 15 2003 — edited Jul 9 2003
Hi everyone,

For a research project, I have to manipulate and modify mpeg-7 files,
wich are xml files.
I tried to compile mpeg-7 schema to generate Java classes with xjc.bat.
The mpeg-7 schema can be downloaded on http://m7itb.nist.gov/M7Validation.html

The schema that has to be compiled is : Mpeg7-2001.xsd and it uses 5 other .xsd files (that are in the same directory).
Mpeg7-2001.xsd has these import and include lines:


<import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="./xml-1998.xsd"/>
<include schemaLocation="./ddl-2001.xsd"/>
<include schemaLocation="./visual-2001.xsd"/>
<include schemaLocation="./audio-2001.xsd"/>
<include schemaLocation="./mds-2001.xsd"/>


When I run xjc.bat, I have these errors/warnings

[WARNING] src-import.0: Failed to read imported schema document './xml-1998.xsd'.
line 54 of Mpeg7-2001.xsd

[WARNING] src-include.0: Failed to read included schema document './ddl-2001.xsd'.
line 58 of Mpeg7-2001.xsd

[WARNING] src-include.0: Failed to read included schema document './visual-2001.xsd'.
line 62 of Mpeg7-2001.xsd

[WARNING] src-include.0: Failed to read included schema document './audio-2001.xsd'.
line 66 of Mpeg7-2001.xsd

[WARNING] src-include.0: Failed to read included schema document './mds-2001.xsd'.
line 70 of Mpeg7-2001.xsd

and sure, after that, there are a lot of other errors...

What can I do to be able to parse the mpeg-7 schema and generate the corresponding classes?

I hope there is a solution.
Thank you for your help!

regards,

Christelle
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2003
Added on May 15 2003
4 comments
403 views