You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ram Myneni <ra...@translogicsys.com> on 2000/05/02 13:02:01 UTC

Cocoon 1.7.2 and Tomcat

Hello Cocoon Users....
      I am new to this cocoon. I tried to run a 
      a file which includes some XSP code and 
      it gives me the following errors:

java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not found
	at org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java:289)
	at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java:116)
	at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java:123)
	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:371)
	at org.apache.cocoon.Engine.handle(Engine.java:295)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:390)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:146)
	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334)
	at java.lang.Thread.run(Thread.java)
I am running this on Linux and using Tomcat as the Servlet and Jsp engine.
I have the following directories in the CLASSPATH which includes all the JAR file that i got with Tomcat.

:/home/sunil/gnujsp-1.0.0/lib:/home/ram/jsp/beans:/usr/local/JSDK2.0/lib/jsdk.jar:/usr/local/genesis/JD/JAR/:/usr/local/jdk1.1.6/lib/classes.zip:/usr/local/mm.mysql.jdbc-1.2b/mysql_comp.jar:/usr/local/genesis:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/lib/org/apache/jasper:/usr/local/jakarta-tomcat/lib/jasper.jar:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/xml.jar:/usr/local/jakarta-tomcat/lib/webserver.jar:home/sunil/gnujsp-1.0.0/lib 

Can anyone help me out?
--thanks in advance
Ram Myneni

TransLogic Systems
5th Floor Amogh Plaza, Greenlands,
Hyderabad, AP 500 016, India
Tel: +91-40-330175 x25
Fax: +91-40-3307943
http://www.translogicsys.com
Logic that Works.



Re: Cocoon 1.7.2 and Tomcat

Posted by Ram Myneni <ra...@translogicsys.com>.
thanks paul...now it works....and I have another
doubt. Can I use jsp instead of xsp in the xml
document? and if it is possible how can I define
that?
--thanks
ram
----- Original Message ----- 
From: Paul Russell <Pa...@uea.ac.uk>
To: <co...@xml.apache.org>
Sent: Wednesday, May 03, 2000 2:20 PM
Subject: Re: Cocoon 1.7.2 and Tomcat


> Hrm. Have you got an old version of Xerces floating around in there?
> 
> 
> Paul
> 
> On Wed, May 03, 2000 at 01:10:22PM +0530, Ram Myneni wrote:
> > I changed the classpath and now I have only one directory which
> > defines org.w3c.dom.Node but I am encountering with the same
> > errors.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 

Re: Cocoon 1.7.2 and Tomcat

Posted by Paul Russell <Pa...@uea.ac.uk>.
Hrm. Have you got an old version of Xerces floating around in there?


Paul

On Wed, May 03, 2000 at 01:10:22PM +0530, Ram Myneni wrote:
> I changed the classpath and now I have only one directory which
> defines org.w3c.dom.Node but I am encountering with the same
> errors.

Re: Cocoon 1.7.2 and Tomcat

Posted by Ram Myneni <ra...@translogicsys.com>.
I changed the classpath and now I have only one directory which
defines org.w3c.dom.Node but I am encountering with the same
errors.
----- Original Message -----
From: Paul Russell <Pa...@uea.ac.uk>
To: <co...@xml.apache.org>
Sent: Tuesday, May 02, 2000 5:37 PM
Subject: Re: Cocoon 1.7.2 and Tomcat


>
> This is getting to be a FAQ ;)
>
> You've got two things in your classpath defining org.w3c.dom.Node, one of
> which is out of date. I suggest moving xerces towards the beginning of
> the classpath, since this has the version of DOM on which cocoon depends.
>
> HTH
>
>
> Paul
>
> > Hello Cocoon Users....
> >       I am new to this cocoon. I tried to run a
> >       a file which includes some XSP code and
> >       it gives me the following errors:
> >
> > java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not
found
> > at org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java:289)
> > at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java:116)
> > at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java:123)
> > 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:371)
> > at org.apache.cocoon.Engine.handle(Engine.java:295)
> > at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> > at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:390)
> > at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
> > at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:146)
> > at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334
)
> > at java.lang.Thread.run(Thread.java)
> > I am running this on Linux and using Tomcat as the Servlet and Jsp
engine.
> > I have the following directories in the CLASSPATH which includes all the
JAR file that i got with Tomcat.
> >
> >
:/home/sunil/gnujsp-1.0.0/lib:/home/ram/jsp/beans:/usr/local/JSDK2.0/lib/jsd
k.jar:/usr/local/genesis/JD/JAR/:/usr/local/jdk1.1.6/lib/classes.zip:/usr/lo
cal/mm.mysql.jdbc-1.2b/mysql_comp.jar:/usr/local/genesis:/usr/local/jakarta-
tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/lib/org/apache/jasper:/usr/
local/jakarta-tomcat/lib/jasper.jar:/usr/local/jakarta-tomcat/lib/ant.jar:/u
sr/local/jakarta-tomcat/lib/xml.jar:/usr/local/jakarta-tomcat/lib/webserver.
jar:home/sunil/gnujsp-1.0.0/lib
> >
> > Can anyone help me out?
> > --thanks in advance
> > Ram Myneni
> >
> > TransLogic Systems
> > 5th Floor Amogh Plaza, Greenlands,
> > Hyderabad, AP 500 016, India
> > Tel: +91-40-330175 x25
> > Fax: +91-40-3307943
> > http://www.translogicsys.com
> > Logic that Works.
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


Re: Cocoon 1.7.2 and Tomcat

Posted by Stefano Mazzocchi <st...@apache.org>.
Paul Russell wrote:
> 
> This is getting to be a FAQ ;)

It already is :( that's the problem.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Re: Cocoon 1.7.2 and Tomcat

Posted by Paul Russell <Pa...@uea.ac.uk>.
This is getting to be a FAQ ;)

You've got two things in your classpath defining org.w3c.dom.Node, one of
which is out of date. I suggest moving xerces towards the beginning of
the classpath, since this has the version of DOM on which cocoon depends.

HTH


Paul

> Hello Cocoon Users....
>       I am new to this cocoon. I tried to run a 
>       a file which includes some XSP code and 
>       it gives me the following errors:
> 
> java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not found
> 	at org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java:289)
> 	at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java:116)
> 	at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java:123)
> 	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:371)
> 	at org.apache.cocoon.Engine.handle(Engine.java:295)
> 	at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:390)
> 	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
> 	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:146)
> 	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334)
> 	at java.lang.Thread.run(Thread.java)
> I am running this on Linux and using Tomcat as the Servlet and Jsp engine.
> I have the following directories in the CLASSPATH which includes all the JAR file that i got with Tomcat.
> 
> :/home/sunil/gnujsp-1.0.0/lib:/home/ram/jsp/beans:/usr/local/JSDK2.0/lib/jsdk.jar:/usr/local/genesis/JD/JAR/:/usr/local/jdk1.1.6/lib/classes.zip:/usr/local/mm.mysql.jdbc-1.2b/mysql_comp.jar:/usr/local/genesis:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/lib/org/apache/jasper:/usr/local/jakarta-tomcat/lib/jasper.jar:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/xml.jar:/usr/local/jakarta-tomcat/lib/webserver.jar:home/sunil/gnujsp-1.0.0/lib 
> 
> Can anyone help me out?
> --thanks in advance
> Ram Myneni
> 
> TransLogic Systems
> 5th Floor Amogh Plaza, Greenlands,
> Hyderabad, AP 500 016, India
> Tel: +91-40-330175 x25
> Fax: +91-40-3307943
> http://www.translogicsys.com
> Logic that Works.
> 
> 
>