cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Dovydaitis <vi...@foliage.com>
Subject Re: NoSuchMethodError: getPublicId()Ljava/lang/String;
Date Wed, 28 Jun 2000 20:39:41 GMT
Interesting. However, you might also have a configuration error.
DocumentType::getPublicId(String) was added in DOM Level 2 (didn't exist in DOM
Level 1). Are you sure you have your classpath set up correctly?

jack jack wrote:

> Problem solved.  It was a syntax error in my <?cocoon-process?> directive.
>
> >From: "jack jack" <jack_khaki@hotmail.com>
> >Reply-To: cocoon-users@xml.apache.org
> >To: cocoon-users@xml.apache.org
> >Subject: NoSuchMethodError: getPublicId()Ljava/lang/String;
> >Date: Wed, 28 Jun 2000 19:31:18 GMT
> >
> >I am able to get the darkness-novel example to work flawlessly with Cocoon
> >(thanks to Ulrich Mayring and Vincent Dovydaitis), but I'm getting a
> >
> >      java.lang.NoSuchMethodError: org.w3c.dom.DocumentType: method
> >getPublicId()Ljava/lang/String; not found
> >
> >error whenever I try it on my own documents.  The documents are transformed
> >correctly when I use "java org.apache.xalan.xslt.Process ..." and "java
> >org.apache.fop.apps.CommandLine ...", but I receive the above error when
> >trying to get Cocoon to do it.
> >
> >Since the FO samples work correctly, this is obviously a problem with my
> >documents, but I don't understand why the commandline tools work while
> >Cocoon seems not to...  What is the above error telling me?  I've compared
> >my .xsl and .xml docs with those from the samples to see if I could find a
> >major difference, but the only thing I find is that I declare <!DOCTYPE
> >instructions SYSTEM "instructions.dtd"> instead of the way it is done in
> >darkness-novel.xml.  I've tried changing this to contain the same thing as
> >in darkness-novel.xml (which should work even though I don't use any of the
> >ENTITYs declared there), but still get the same error as above.  Removing
> >the <!DOCTYPE ..> completely makes Cocoon serve the document up as-is (with
> >the default http://www.w3.org/TR/REC-html40/strict.dtd).
> >
> >If someone could point me in the right direction I'd be very thankful. I
> >can
> >post my docs if anyone wants to take a look.
> >
> >Thanks again to Ulrich and Vincent for the previous responses.
> >________________________________________________________________________
> >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> >For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message