users@jaxb.java.net

RE: Exception in thread "main" java.lang.NoClassDefFoundError: co m/sun/org/apache/xml/internal/serialize/OutputFormat

From: Beech Tanya <TBEECH_at_qinetiq.com>
Date: Wed, 26 Jan 2005 13:51:41 -0000

Lexi

Excuse me for being thick, but where I am to put this code segment? I've
attempted to put it in the top level schema 'Mpeg7-2001.xsd' but I get
errors in xmlspy saying that 'unexpected element 'fileset' in element
http://www.w3.org/2001/XMLSchema. Expected schema. I'm really not sure
where it should go.

Could I add all the jar files and paths to the class path using the windows
environment variables interface?

Kind Regards

Tanya Beech
Intelligence Systems
AT208 QinetiQ
Malvern Technology Park
Malvern Worcestershire WR14 3PS
tel: 01684 895232



-----Original Message-----
From: Aleksei Valikov [mailto:valikov_at_gmx.net]
Sent: 26 January 2005 12:05
To: users_at_jaxb.dev.java.net
Subject: Re: Exception in thread "main" java.lang.NoClassDefFoundError: co
m/sun/org/apache/xml/internal/serialize/OutputFormat

Hi.

> I'm attempting to use jaxb with Mpeg7 schemas. I've got so far until it
> says that it is compiling a schema then I get the error message shown in
> the subject line above. Details below are snapshot of output.

XJC needs its own version of xerces.
Typical invocation class path includes the following libraries:

     <fileset dir="${jaxb.lib.dir}">
       <include name="dom.jar"/>
       <include name="jax-qname.jar"/>
       <include name="jaxb-api.jar"/>
       <include name="jaxb-impl.jar"/>
       <include name="jaxb-libs.jar"/>
       <include name="jaxb-xjc.jar"/>
       <include name="jaxp-api.jar"/>
       <include name="namespace.jar"/>
       <include name="relaxngDatatype.jar"/>
       <include name="sax.jar"/>
       <include name="xalan.jar"/>
       <include name="xercesImpl.jar"/>
       <include name="xsdlib.jar"/>
     </fileset>

Bye.
/lexi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net

The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution,
or any action taken or omitted to be taken in reliance on such information
is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be monitored.
Calls to QinetiQ may be recorded for quality control,
regulatory and monitoring purposes.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net