You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rakesh Leekha <Ra...@rsgsystems.com> on 2001/04/12 18:45:58 UTC

Cannot run xsp sample of cocoon1.7.4

Hi All
I am new to cocoon and have been trying to work with it. I get the following
errors( give below )whenever i try to run the xsp sample.
I am using cocoon1.7.4 and have been able to run many other sample examples
such as hello and dcp etc
Please advise.

Error: When I try to run 'clean-page.xml' or 'page.xml' or 'view-source.xml'

1) java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not
found
	at org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java,
Compiled Code)
	at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java, Compiled Code)
	at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java, Compiled Code)
	at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.preprocess
(XSPJavaPreprocessor.java:81)
	at
org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:99)
	at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java,
Compiled Code)
	at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
	at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a, Compiled Code)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java,
Compiled Code)
	at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled
Code)
	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)


Error : When I try to run 'lib-page.xml'

2) java.lang.NullPointerException
	at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java,
Compiled Code)
	at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
	at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a, Compiled Code)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java,
Compiled Code)
	at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled
Code)
	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)

Any help would be highly appreciated.

Regards

Rakesh


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Cannot run xsp sample of cocoon1.7.4

Posted by Webmaster PMU <we...@pmu.fr>.
Bonjour,

    Thousands excuses for my english !

       I've had a like problem that with cocoon 1.6.1 and Jserv.

       The reason :
         In jserv.properties file , the order of the wrapper.classpath library
is very important, cocoon take the first library with a Normalize method like
parser.jar of JSDK2.0.

        Then, I have to place  xalan.jar (method normalize() is in xalan.jar)
before parser.jar, and by this way, I use  xsp in my application.

       If this experience can help you ...


Rakesh Leekha a écrit :

> Hi All
> I am new to cocoon and have been trying to work with it. I get the following
> errors( give below )whenever i try to run the xsp sample.
> I am using cocoon1.7.4 and have been able to run many other sample examples
> such as hello and dcp etc
> Please advise.
>
> Error: When I try to run 'clean-page.xml' or 'page.xml' or 'view-source.xml'
>
> 1) java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not
> found
>         at org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java,
> Compiled Code)
>         at
> org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
> PJavaPreprocessor.java, Compiled Code)
>         at
> org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
> PJavaPreprocessor.java, Compiled Code)
>         at
> org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.preprocess
> (XSPJavaPreprocessor.java:81)
>         at
> org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:99)
>         at
> org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java,
> Compiled Code)
>         at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
>         at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
>         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
> Code)
>         at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
> a, Compiled Code)
>         at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
>         at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java,
> Compiled Code)
>         at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled
> Code)
>         at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
>         at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
>
> Error : When I try to run 'lib-page.xml'
>
> 2) java.lang.NullPointerException
>         at
> org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java,
> Compiled Code)
>         at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
>         at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
>         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
> Code)
>         at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
> a, Compiled Code)
>         at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
>         at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java,
> Compiled Code)
>         at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled
> Code)
>         at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
>         at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
>
> Any help would be highly appreciated.
>
> Regards
>
> Rakesh
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>