You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ray Allis <ra...@boeing.com> on 2000/10/11 23:54:09 UTC
7: Package org.w3c.dom not found in import.
Did I read that cocoon 1.8 and tomcat 4.0-m2 were incompatible?
I don't see it in the mail archive. I'm missing what?
Ray Allis
--
jakarta-tomcat-4.0-m2.tar.gz
Cocoon-1.8.tar.gz
632 memes /site/ray:ll jakarta-tomcat/lib
total 3476
drwxr-xr-x 2 ray staff 512 Oct 11 13:57 ./
drwxr-xr-x 11 ray staff 512 Oct 11 13:50 ../
-rw-r--r-- 1 ray staff 260976 Oct 9 21:04 jasper.jar
-rw-r--r-- 1 ray staff 1498679 Oct 9 21:04 xerces.jar
633 memes /site/ray:ll jakarta-tomcat/webapps/cocoon/WEB-INF/lib/
total 2230
drwxr-xr-x 2 ray staff 512 Oct 11 13:57 ./
drwxr-xr-x 3 ray staff 512 Oct 10 14:07 ../
-rw-r--r-- 1 ray staff 244389 Oct 10 14:22 cocoon.jar
-rw-r--r-- 1 ray staff 370612 Oct 10 12:59 fop_0_13_0.jar
-rw-r--r-- 1 ray staff 49271 Oct 10 12:59 turbine-pool.jar
-rw-r--r-- 1 ray staff 437913 Oct 11 13:55 xalan_1_2_D02.jar
634 memes /site/ray:ll cocoon-1.8/lib
total 5402
drwxr-xr-x 3 ray staff 512 Sep 27 14:26 ./
drwxr-xr-x 10 ray staff 512 Oct 10 12:31 ../
-rw-r--r-- 1 ray staff 179136 Sep 22 15:43 ant_1_1.jar
drwxr-xr-x 3 ray staff 512 Sep 27 14:26 bin/
-rw-r--r-- 1 ray staff 50369 Sep 22 15:43 bsf.jar
-rw-r--r-- 1 ray staff 26618 Sep 22 15:43 bsfengines.jar
-rw-r--r-- 1 ray staff 370612 Sep 22 15:43 fop_0_13_0.jar
-rw-r--r-- 1 ray staff 40944 Sep 22 15:43 servlet_2_2.jar
-rw-r--r-- 1 ray staff 62237 Sep 22 15:43
stylebook-1.0-b2.jar
-rw-r--r-- 1 ray staff 49271 Sep 22 15:43 turbine-pool.jar
-rw-r--r-- 1 ray staff 437913 Sep 22 15:43 xalan_1_2_D02.jar
-rw-r--r-- 1 ray staff 1498679 Sep 22 15:43 xerces_1_2.jar
635 memes /site/ray:cd jakarta-tomcat/
638 memes /site/ray/jakarta-tomcat:bin/startup.sh
Using CLASSPATH:
/site/ray/jakarta-tomcat/bin/bootstrap.jar:/site/ray/jakarta-tomcat/bin/servlet.jar:/usr/java/lib/tools.jar
**** my first XSP page...
Error found handling the request.
java.lang.Exception: XSP Java Compiler: Compilation failed for
_page.java
7: Package org.w3c.dom not found in import.
import org.w3c.dom.*;
^
8: Package org.xml.sax not found in import.
import org.xml.sax.*;
^
12: Package org.apache.cocoon.parser not found in import.
import org.apache.cocoon.parser.*;
^
13: Package org.apache.cocoon.producer not found in import.
import org.apache.cocoon.producer.*;
^
14: Package org.apache.cocoon.framework not found in import.
import org.apache.cocoon.framework.*;
^
16: Package org.apache.cocoon.processor.xsp not found in import.
import org.apache.cocoon.processor.xsp.*;
^
17: Package org.apache.cocoon.processor.xsp.library not found in
import.
import org.apache.cocoon.processor.xsp.library.*;
^
22: Superclass
_site._ray._jakarta_tomcat._webapps._cocoon._servlets._xsp.XSPPage of
class _site._ray._jakarta_tomcat._webapps._cocoon._servlets._xsp._page
not found.
public class _page extends XSPPage {
^
8 errors
at
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJavaProcessor.java:141)
at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:489)
Re: 7: Package org.w3c.dom not found in import.
Posted by awc <aw...@dryden.lakeheadu.ca>.
I had the same error. That is because cocoo.jar is not on XSP compilers classpath. I edit the source and the
classpath. Now I am getting this:
java.lang.IncompatibleClassChangeError: class org.apache.xerces.dom.DocumentImpl does not implement
interface org.w3c.dom.Document
at
_usr._local._jakarta._build._tomcat_4_0._webapps._cocoon._servlets._xsp._page.populateDocument(_page.java:58)
at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:502)
which is realted to this piece of code from _page.java
-------------*************************--------------
document.appendChild(
document.createProcessingInstruction(
"cocoon-process",
"type=\"xslt\""
-----------*****************************--------
To add the cocoon class path to tomcat-4.0M2, you have to take a look at XSPJavaProcessor.java.
That is where I am right now. and looking..
Anil
Ray Allis wrote:
> Did I read that cocoon 1.8 and tomcat 4.0-m2 were incompatible?
> I don't see it in the mail archive. I'm missing what?
>
> Ray Allis
> --
> jakarta-tomcat-4.0-m2.tar.gz
> Cocoon-1.8.tar.gz