You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Hitesh Kr. Seth" <hi...@seranova.com> on 2000/03/23 17:30:59 UTC

XSP Configuration Problem

Greetings

I am having problem with XSP (I think it is a configuration issue)

Environment
    Cocoon 1.7
        Installation Directory E:\Cocoon
    Xerces 1.0.3
    Xalan 1.0.0
    Tomcat Web Server/3.1 Beta (JSP 1.1; Servlet 2.2; Java 1.2.2; Windows NT
4.0 x86; java.vendor=Sun Microsystems Inc.
        Installation Directory G:\Tomcat
    CLASSPATH
        Using classpath:

G:\tomcat\classes;G:\tomcat\lib\webserver.jar;G:\tomcat\lib\jasper.jar;

G:\tomcat\lib\xml.jar;G:\tomcat\lib\servlet.jar;D:\java\lib\tools.jar;G:\tom
cat\lib\jndi.jar;
                G:\tomcat\lib\cocoon.jar;G:\tomcat\lib\fop_0_12_1.jar;
                E:\Xalan\Xalan.jar;E:\Xalan\Xerces.jar
    No changes made into the cocoon.properties file

Tomcat Web Server Configuration (web.xml)
<servlet>
  <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
  <servlet-class>org.apache.cocoon.Cocoon</servlet-class>
  <init-param>
   <param-name>properties</param-name>
   <param-value>E:/Cocoon/conf/cocoon.properties</param-value>
  </init-param>
 </servlet>
 <servlet-mapping>
  <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
  <url-pattern>*.xml</url-pattern>
 </servlet-mapping>


XSP File (HelloXSP.xml)

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
 <page>
  <title>Hello World</title>
  <xsp:content>Hello World</xsp:content>
 </page>
</xsp:page>

Error:
    Error found handling the request.
    java.lang.NoSuchMethodError
         at
org.apache.xerces.dom.ElementImpl.normalize(ElementImpl.java:290)
         at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java:115)

(I tried the XSP examples in Cocoon (they don't work either,
However the normal xml/xsl work fine; So Cocoon is working)

Thanks.

Best Regards

Hitesh Kr. Seth.