cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Russell <p...@luminas.co.uk>
Subject Re: [C2] Unable to build docs
Date Mon, 23 Oct 2000 22:05:43 GMT
It looks like Xalan is missing from your classpath. Check xalan.jar
is in your lib directory?

On Mon, Oct 23, 2000 at 05:41:30PM -0400, Vadim Gritsenko wrote:
> Hi,
> 
> With fresh-from-CVS cocoon, I tried to run "build docs" and
> ran into following problems:
> 
> 1. Exception:
> -------------------------8<---------------------
> [StyleBook] Project URL: "sbk:/sources/book.xml"
> [BasicEngine] Initializing
> 
> BUILD FAILED
> 
> build.xml:317: java.lang.NoClassDefFoundError:
> org/apache/xalan/xpath/xml/XMLParserLiaison
> java.lang.NoClassDefFoundError: org/apache/xalan/xpath/xml/XMLParserLiaison
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:120)
>         at
> org.apache.stylebook.ComponentFactory.getComponent(ComponentFactory.java:35)
>         at
> org.apache.stylebook.ComponentFactory.getProcessor(ComponentFactory.java:98)
>         at
> org.apache.stylebook.BasicEngine.configureProcessor(BasicEngine.java:120)
>         at org.apache.stylebook.BasicEngine.<init>(BasicEngine.java:82)
>         at org.apache.stylebook.StyleBook.getEngine(StyleBook.java:117)
>         at org.apache.stylebook.StyleBook.main(StyleBook.java:83)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:97)
>         at org.apache.tools.ant.taskdefs.Java.run(Java.java:236)
>         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:122)
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:89)
>         at org.apache.tools.ant.Target.execute(Target.java:142)
>         at org.apache.tools.ant.Project.runTarget(Project.java:808)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:533)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:507)
>         at org.apache.tools.ant.Main.runBuild(Main.java:314)
>         at org.apache.tools.ant.Main.main(Main.java:127)
> -------------------------8<---------------------
> 
> I tried to find class or properties file which references to
> XMLParserLiaison,
> but found only org.apache.stylebook.processors.XalanProcessor$Liaison, which
> inherited from org.apache.xalan.xpath.xml.XMLParserLiaisonDefault, and this
> XMLParserLiaisonDefault class is absent in supplied xalan.jar.
> 
> 
> 2. I replaced xalan.jar with another one from xalan-j_1_2_D01.zip and got
> another error:
> 
> -------------------------8<---------------------
> [XercesParser] Attribute "anchor" must be declared for element type "jump".
> [File: "sbk:/sources/sitemap.xml" Line: 194
> Column: 44]
> org.apache.stylebook.CreationException: SAXException caught while parsing
>         at
> org.apache.stylebook.parsers.XercesParser.parse(XercesParser.java:55)
>         at
> org.apache.stylebook.parsers.CachingParser.parse(CachingParser.java:92)
>         at
> org.apache.stylebook.parsers.AbstractParser.parse(AbstractParser.java:28)
>         at
> org.apache.stylebook.producers.ParserProducer.produce(ParserProducer.java:26
> )
>         at org.apache.stylebook.Project.processEntry(Project.java:110)
>         at org.apache.stylebook.Project.processNodeList(Project.java:54)
>         at org.apache.stylebook.Project.<init>(Project.java:42)
>         at org.apache.stylebook.Loader.load(Loader.java:57)
>         at org.apache.stylebook.StyleBook.getProject(StyleBook.java:124)
>         at org.apache.stylebook.StyleBook.main(StyleBook.java:84)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:97)
>         at org.apache.tools.ant.taskdefs.Java.run(Java.java:236)
>         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:122)
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:89)
>         at org.apache.tools.ant.Target.execute(Target.java:142)
>         at org.apache.tools.ant.Project.runTarget(Project.java:808)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:533)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:507)
>         at org.apache.tools.ant.Main.runBuild(Main.java:314)
>         at org.apache.tools.ant.Main.main(Main.java:127)
> [StyleBook] Caught org.apache.stylebook.LoadingException: Processing Entry
> (SAXException caught while parsing)
> -------------------------8<---------------------
> 
> I found that attribute anchor for element jump is not declared in
> document-v10.dtd,
> but used in tree files: xdocs\logicsheet-concepts.xml, xdocs\sitemap.xml
> and xdocs\xsp-internals.xml. After defining this attribute as "anchor
> NMTOKEN #IMPLIED",
> I was able to build docs without errors.
> 
> Patch for document-v10.dtd is attached.
> 
> 
> Sincerely,
> Vadim Gritsenko
> (W) 301-428-5500 x 3253



-- 
Paul Russell                               <paul@luminas.co.uk>
Technical Director,                   http://www.luminas.co.uk
Luminas Ltd.

Mime
View raw message