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 QUARTIER Manuel <ma...@gfi.ch> on 2001/04/17 11:57:50 UTC

Error with JRun

Hello,

I am using JRun 3.0 and xerces 1.2.3. I have an error with the "importNode"
method. When I use my program as a servlet, JRun send me an error, it do not
find "importNode". But when I run my program with a "main" method, I have no
error.

javax.servlet.ServletException: org.w3c.dom.Document: method
importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found]
javax.servlet.ServletException: org.w3c.dom.Document: method
importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found
java.lang.NoSuchMethodError: org.w3c.dom.Document: method
importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found
	at ExportParty.getPartyAlignment(ExportParty.java:34)
	at SExportParty.doGet(SExportParty.java:28)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
)
	at allaire.jrun.servlet.Invoker.service(Invoker.java:84)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
	at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)

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


RE: Error with JRun

Posted by Jean-Louis Vila <jl...@cosmosbay.com>.
Hi Manuel,

You've another XML parser in your JRun classpath which is not
DOM level 2 compliant (importNode comes with DOM level 2).
So, the interface Document is loaded from another XML parser package
and the classLoader couldn't see the Document interface defined in
Xerces and couldn't see importNode method.
Hope that help,
Jean-Louis


> -----Message d'origine-----
> De : QUARTIER Manuel [mailto:manuel.quartier@gfi.ch]
> Envoyé : mardi 17 avril 2001 11:58
> À : 'xerces-j-user@xml.apache.org'
> Objet : Error with JRun
>
>
> Hello,
>
> I am using JRun 3.0 and xerces 1.2.3. I have an error with the
> "importNode"
> method. When I use my program as a servlet, JRun send me an
> error, it do not
> find "importNode". But when I run my program with a "main"
> method, I have no
> error.
>
> javax.servlet.ServletException: org.w3c.dom.Document: method
> importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found]
> javax.servlet.ServletException: org.w3c.dom.Document: method
> importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found
> java.lang.NoSuchMethodError: org.w3c.dom.Document: method
> importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found
> 	at ExportParty.getPartyAlignment(ExportParty.java:34)
> 	at SExportParty.doGet(SExportParty.java:28)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> 	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
> Code)
> 	at
> allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatch
> er.java:34
> )
> 	at allaire.jrun.servlet.Invoker.service(Invoker.java:84)
> 	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> 	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
> Code)
> 	at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDisp
> atcher.jav
> a:88)
> 	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> 	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> 	at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
> 	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
> 	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>


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