ant-user mailing list archives

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

1. However, if i comment out the <classpath>, jspc part seems to compile ok, 
why? 

compilejsp:
     [jspc] Compiling 45 source 
files/home/barry/p4/main/server/src/java/policyServer/jspc/java

2. If <classpath> stays in the javac, then it will come with many errors, any 
ideas why?

Thanks in advance.

Barry

compilejsp:
    [javac] Compiling 45 source files 
to /home/barry/p4/main/server/src/java/pol
icyServer/jspc/classes
    
[javac] /home/barry/p4/main/server/src/java/policyServer/jspc/java/admin.jav
a:24: cannot resolve symbol
    [javac] symbol  : class JspException
    [javac] location: package runtime
    [javac]     public final void _jspx_init() throws 
org.apache.jasper.runtime.
JspException {
    [javac]                                                                    
^
    
[javac] /home/barry/p4/main/server/src/java/policyServer/jspc/java/bp_0002da
gent.java:20: cannot resolve symbol
    [javac] symbol  : class JspException
    [javac] location: package runtime
    [javac]     public final void _jspx_init() throws 
org.apache.jasper.runtime.
JspException {

----- Original Message ----- 
From: <barry@goodconsultants.com>
To: <user@ant.apache.org>
Sent: Wednesday, March 31, 2004 1:32 AM
Subject: problems with using jspc


> 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
> 
> 


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


Mime
View raw message