Hello,
In my app I had to switch the xslt-transformer from Xalan to xsltc
because of an xalan bug.
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24457)
In the webapp with Jetty everything works fine with xsltc. 

After some trying i got the ant task working (first simple example page
with Xalan as xslt).
But if I call my pages with xsltc I got this Error: 
java.lang.NoClassDefFoundError:
org/apache/xml/dtm/ref/sax2dtm/SAX2DTM$AncestorIterator

with Cocoon cli - x cli.xconf I did not get this error.

When I added the endorsed dir from cocoon to my java 1.4.2 jre/lib/
folder,
even Ant works whithout the Error noticed.
But I dont want to do this. 
Is there another way to give the ANT Java VM the endorsed libs?


This is my build.xml for ant (located in the build dir of cocoon):
<?xml version="1.0"?>
<project default="cocoon" basedir=".">
    <property name="cocoon.context" value="webapp"/>
    <path id="cocoon.classpath">
      <dirset dir="${cocoon.context}/WEB-INF/classes"/>
      <fileset dir="${cocoon.context}/WEB-INF/lib" includes="*.jar"/>
    </path>
 
    <taskdef name="cocoon" classname="org.apache.cocoon.CocoonTask"
classpathref="cocoon.classpath"/>
    
    <target name="cocoon">
        <cocoon verbose="false"  
                classpathref="cocoon.classpath"
                follow-links="false" 
                precompile-only="false" 
                confirm-extensions="false"
                context-dir="${cocoon.context}"
                config-file="WEB-INF/cocoon.xconf"
                work-dir="build/work"
                dest-dir="build/dest"
                default-filename="index.html"
                accept="*/*">
        
           <broken-links type="xml" 
                         file="brokenlinks.xml"
                         generate="false"
                         extension=".error"/>
           
           <logging log-kit="${cocoon.context}/WEB-INF/logkit.xconf"
logger="cli" level="DEBUG" />
    
           <uris name="intranet" follow-links="false">
               <uri type="append" src-prefix=""
src="intranet/index.html" dest="build/dest/"/>
               <uri type="append" src-prefix="" src="intranet/tree.xml"
dest="build/dest/"/>
           </uris>                  
        </cocoon>
    </target>

</project>

This is my cli.xconf:
<?xml version="1.0"?>
        <cocoon verbose="false"  
                follow-links="false" 
                precompile-only="false" 
                confirm-extensions="false"
                context-dir="build/webapp"
                config-file="WEB-INF/cocoon.xconf"
                work-dir="build/build/work"
                dest-dir="build/build/dest"
                default-filename="index.html"
                accept="*/*">
        
           <broken-links type="xml" 
                         file="brokenlinks.xml"
                         generate="false"
                         extension=".error"/>
           
           <logging log-kit="build/webapp/WEB-INF/logkit.xconf"
logger="cli" level="DEBUG" />
    
           <uris name="intranet" follow-links="false">
               <uri type="append" src-prefix=""
src="intranet/index.html" dest="build/build/dest/"/>
               <uri type="append" src-prefix=""
src="intranet/ksttree1.xml" dest="build/build/dest/"/>
           </uris>                  
        </cocoon>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to