You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Joseph Shraibman <jk...@selectacast.net> on 2000/07/05 19:53:20 UTC

java.lang.NoClassDefFoundError: org/xml/sax/misc/LexicalHandler

When using xalan I got this error with Xerces 1.1.2 that I didn't get
with 1.0.2. Is something missing from the jar file? I downloaded the
binary version.

java.lang.NoClassDefFoundError: org/xml/sax/misc/LexicalHandler
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:442)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at 
        at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:679)
        at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:541)
        at
com.xtenit.mail.DeliverySystemImp.deliver2(DeliverySystemImp.java:273)
        at
com.xtenit.mail.DeliverySystemImp$1$Runner.run(DeliverySystemImp.java:158)
        at java.lang.Thread.run(Thread.java:479)

Re: java.lang.NoSuchMethodError: org.w3c.dom.Document: methodimportNode

Posted by Andy Clark <an...@apache.org>.
Matti.Aaltonen@vtt.fi wrote:
> { (Running servlet) java.lang.NoSuchMethodError: org.w3c.dom.Document:
> method importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found
>         at fi.vtt.tte.imu2.pcimu.IMU2v001.createPage1(IMU2v001.java:254)

Sounds like a CLASSPATH issue. Make sure that you're not mixing
Jars with different versions of the DOM specification.

-- 
Andy Clark * IBM, JTC - Silicon Valley * andyc@apache.org

java.lang.NoSuchMethodError: org.w3c.dom.Document: method importNode

Posted by Ma...@vtt.fi.
Hello!

I'm using Xerces 1.1.2 with JRUN 2.3.3 servlet engine and I get the error
message below. When I run the servlet in my own machine with VisualCafe 4.0
it works fine. I've checked that the xerces.jar files on both machines are
the same. What am I doing wrong? 

Thu Jul 06 15:22:45 GMT+03:00 2000: Running servlet
{ (Running servlet) java.lang.NoSuchMethodError: org.w3c.dom.Document:
method importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found
	at fi.vtt.tte.imu2.pcimu.IMU2v001.createPage1(IMU2v001.java:254)


Thanks.
Matti Aaltonen

Re: java.lang.NoClassDefFoundError: org/xml/sax/misc/LexicalHandler

Posted by Eric Ye <er...@locus.apache.org>.
LexialHandler class should be in org.xml.sax.ext package, even in
Xerces1.0.2
_____


Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org

----- Original Message -----
From: "Joseph Shraibman" <jk...@selectacast.net>
To: <xe...@xml.apache.org>
Sent: Wednesday, July 05, 2000 10:53 AM
Subject: java.lang.NoClassDefFoundError: org/xml/sax/misc/LexicalHandler


> When using xalan I got this error with Xerces 1.1.2 that I didn't get
> with 1.0.2. Is something missing from the jar file? I downloaded the
> binary version.
>
> java.lang.NoClassDefFoundError: org/xml/sax/misc/LexicalHandler
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:442)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>         at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at
>         at
>
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:6
79)
>         at
> org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:541)
>         at
> com.xtenit.mail.DeliverySystemImp.deliver2(DeliverySystemImp.java:273)
>         at
> com.xtenit.mail.DeliverySystemImp$1$Runner.run(DeliverySystemImp.java:158)
>         at java.lang.Thread.run(Thread.java:479)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>