You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Autobahn Internet Services <te...@northwest.com> on 2000/04/01 00:52:39 UTC

Even more XSP problems

Add another user to the ranks of the frustrated....

The Environment:

JDK1.2.2
Apache1.3.9
Jserv1.1.2 (latest rpm from Apache)
servlets2.0
Cocoon1.7.2 (same problems with 1.7.1)
Xerces1.0.3
Xalan1.0.0

Classpath:

 /home/http/cocoon/lib/xerces_1_0_3.jar:/home/http/cocoon/lib/xalan_1_0_0.jar
 :/home/http/cocoon/lib:/home/http/cocoon/lib/ant.jar
 :/home/http/cocoon/lib/fop0_12_1.jar:/home/http/cocoon/lib/stylebook-1.0-b2.jar
 :/opt/cocoon/bin/cocoon.jar
 :/usr/local/java/lib/servlet.jar:/usr/local/java/lib/classes.zip
 :/usr/local/java/lib/tools.jar

My Problem(s):

Basically, I can't get the XSP examples to work.

I'm getting the same normalize error that others have reported:

 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, Compiled Code)
 at org.apache.cocoon.processor.xsp.language.java.
    XSPJavaPreprocessor.process(XSPJavaPreprocessor.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: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:309)
 at org.apache.jserv.JServConnection.
    processRequest(JServConnection.java:314)
 at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
 at java.lang.Thread.run(Thread.java, Compiled Code)

/var/log/httpd/error_log gives:

 [Fri Mar 31 14:25:13 2000] [warn] [client 127.0.0.1] handler "cocoon" not
  found for: /home/httpd/html/cocoon/xsp/clean-page.xml
 XSL Warning: xsl:stylesheet requires a 'version' attribute!
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute 
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:attribute. The
  attribute will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:attribute. The
  attribute will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:logic. The attribute
  will be ignored.
 XSL Warning: Could not resolve namespace prefix: xsp:expr. The attribute
  will be ignored.

There aren't any jserv or mod_jserv errors.

It seems, somehow, as if it's just not finding cocoon. I'm getting the
same warning on straight xml->xsl->html pages, but they seem to work just
fine.

Any suggestions other than sacrificing two marketers and the receptionist?

Regards,
Todd


Re: Even more XSP problems

Posted by Stefano Mazzocchi <st...@apache.org>.
Autobahn Internet Services wrote:
> 
> Yes, Stefano, I've read the FAQ. More than twice.

well, then we need a better FAQ mantainer... I'm doing a crappy job

<faq>
 <question>I get the exception telling me that the method 

<em>org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java:290)</em>
 could not be found. What's wrong?</question>
 <answer>
  <p>This happens because Cocoon needs a DOM-leve2 implementation and
you
  probably have a DOM-level1 included in your classpath _before_
<code>xerces.jar</code>.</p>
  <p>So, either remove the instances of your DOM-level1 packages
(normally included
  in <code>xml.jar</code> or <code>jtidy.jar</code>) or place the
<code>xerces.jar</code>
  archive that comes with Cocoon <em>before</em> all the other jar
packages
  in your classpath. This should fix your problem.</p>
 </answer>
</faq>


-- 
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: Even more XSP problems

Posted by Autobahn Internet Services <te...@northwest.com>.
Yes, Stefano, I've read the FAQ. More than twice. 

Todd



Re: Even more XSP problems

Posted by Stefano Mazzocchi <st...@apache.org>.
Autobahn Internet Services wrote:
> 
> Add another user to the ranks of the frustrated....

> Any suggestions other than sacrificing two marketers and the receptionist?

Hey, that's not a bad one, but I have a better one: read the FAQ :)

People, please.... I maintain a FAQ document for the purpose of helping
both you and us. It's not fun... not at all, and it takes time (not
much, but it's so boring) and it's the most unsexy work ever... but I do
it to help you.

Now, please, help me by looking into it... it doesn't matter if you
looked in version 1.7 or before because I add and remove questions as we
go along every version.

The document is contained into the distribution and on the web site. You
even have the XML version if you want!! you can even hook them up to
your portals or file them to your cell phone...

BUT READ IT!!!!

[is this polite enough?]

And if the question is not understandable or my english sucks or I can't
read your mind... tell me, but everytime you even "think" about asking a
question on this mail list... check the FAQ twice!

Man, it saves you time, think about it.


-- 
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 ---------------------