You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Weston, Steven" <St...@compuware.com> on 2008/01/18 15:20:50 UTC

Implementation error with Xerces 2.9

I'm trying to implement the newer Xerces SAX 2.9 parser.  For ease of
use (at least I thought) I used the provided instructions to create a
single xerces.jar file from the 2.9 components.  From what I read it
looked like this should allow me to do a straight replacement of the
older 1.x xerces.jar with this new one.  However, when I try to compile
my code I'm getting an error about the Attributes2 class.  The top few
lines from the error stack are as follows...

ava.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

Can anyone tell me how to resolve this compile issue so I can implement
the newer parser?

Thanks
steve
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

Re: Implementation error with Xerces 2.9

Posted by Stanimir Stamenkov <s7...@netscape.net>.
Fri, 18 Jan 2008 09:20:50 -0500, /Weston, Steven/:

> I'm trying to implement the newer Xerces SAX 2.9 parser.  For ease of 
> use (at least I thought) I used the provided instructions to create a 
> single xerces.jar file from the 2.9 components.  From what I read it 
> looked like this should allow me to do a straight replacement of the 
> older 1.x xerces.jar with this new one.  However, when I try to compile 
> my code I'm getting an error about the Attributes2 class.  The top few 
> lines from the error stack are as follows…
> 
> ava.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2
>         at java.lang.ClassLoader.defineClass0(_Native Method_)
>         at java.lang.ClassLoader.defineClass(_ClassLoader.java:539_)
>         at java.security.SecureClassLoader.defineClass(_SecureClassLoader.java:123_)
>         at java.net.URLClassLoader.defineClass(_URLClassLoader.java:251_)
> 
> Can anyone tell me how to resolve this compile issue so I can implement 
> the newer parser?

I'm confused by your use of the word "implement" - do you mean "to 
build", instead?

The error you've given doesn't seem like compilation error, but a 
trace from run-time error - am I correct?

-- 
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: Implementation error with Xerces 2.9

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Steve,

Make sure you include xml-apis.jar on the classpath.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

"Weston, Steven" <St...@compuware.com> wrote on 01/18/2008 09:20:50
AM:

> I'm trying to implement the newer Xerces SAX 2.9 parser.  For ease
> of use (at least I thought) I used the provided instructions to
> create a single xerces.jar file from the 2.9 components.  From what
> I read it looked like this should allow me to do a straight
> replacement of the older 1.x xerces.jar with this new one.  However,
> when I try to compile my code I'm getting an error about the
> Attributes2 class.  The top few lines from the error stack are as
follows?
> ava.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>         at java.security.SecureClassLoader.defineClass(
> SecureClassLoader.java:123)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> Can anyone tell me how to resolve this compile issue so I can
> implement the newer parser?
> Thanks
> steve


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org