ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@goodconsultants.com
Subject problems with using jspc
Date Wed, 31 Mar 2004 09:32:01 GMT
All,

Please help with my problem using jspc... I am following the example in 
P290, "Java development with Ant". The error messages and section of build.xml 
are in the end of this email. Do I have my configuration correctly set? How 
can i check? 

Thanks

Barry


compilejsp:
     [jspc] Compiling 46 source 
files/home/barry/p4/main/server/src/java/policyS
erver/jspc/java
  [jasperc] Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apach
e/commons/logging/LogFactory
  [jasperc]     at org.apache.jasper.JspC.<clinit>(JspC.java:137)



build.xml

<property name="build.jspc.java.dir"
    location="jspc/java"/>

<property name="build.jspc.classes.dir"
    location="jspc/classes"/>

<property name="war.expanded.dir"
    location="./unwar"/>

<path id="jasper.classpath">
    <pathelement location="./servlet.jar"/>
    <!--
    <pathelement location="${catalina.home}/common/lib/jasper-compiler.jar"/>
    <pathelement location="${catalina.home}/common/lib/jasper-runtime.jar"/>
    -->
    <fileset dir="${catalina.home}/common/lib">
    <include name="*.jar"/>
    </fileset>


</path>

<target name="compilejsp">

    <mkdir dir="${build.jspc.java.dir}"/>
    <mkdir dir="${build.jspc.classes.dir}"/>
    <jspc srcdir="${war.expanded.dir}" destdir="${build.jspc.java.dir}">
        <include name="*jsp"/>
        <include name="**/*jsp"/>
        <classpath refid="jasper.classpath"/>
    </jspc>

    <javac debug="${build.debug}" includeAntRuntime="false"
        srcdir="${build.jspc.java.dir}"
        destdir="${build.jspc.classes.dir}">

        <classpath>
            <path
            location="unwar/WEB-INF/classes"/>
            <fileset dir="unwar/WEB-INF/lib">
                <include name="**/*.jar"/>
                <include name="*.jar"/>
            </fileset>
            <path refid="jasper.classpath"/>
        </classpath>

    </javac>



</target>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message