ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kailash.Subraman...@alltel.com
Subject classpath issue when compiling jsps
Date Mon, 25 Mar 2002 01:04:17 GMT

All,
     I am trying to compile some jsps using apply task. The apply task I am
using as follows.

     <target name="jspcompile" depends="init">
     <apply executable="java">
     <arg line="weblogic.jspc -compiler javac -docroot Hibernia -classpath ${cp} -keepgenerated"
/>
     <fileset dir="/view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA/com/alltel/ebusiness/pay/adjustment/pages/"
includes="**/*.jsp/**" />
     </apply>
     </target>

     I 've already defined the property cp. I am able to compile java files using the same
path. The error message I am getting when I try to compile
the jsps is

 [apply] Executing java weblogic.jspc -compiler javac -docroot Hibernia -classpath
/opt/devlib/jsse1.0.2/lib/jsse.jar:/opt/devlib/jsse1.0.2/lib/jcert.jar:
/opt/devlib/jsse1.0.2/lib/jnet.jar:/opt/weblogic5/classes:/opt/weblogic5/lib/weblogic510sp5boot.jar:/opt/weblogic5/lib/weblogicaux.jar:/opt/weblogic5/
lib/weblogic510sp5.jar:/opt/weblogic5/lib/jspCasePatch_sp5_oneoff.jar:/opt/oracle/app/oracle/product/8.1.7/jdbc/lib/classes12.zip:/opt/devlib/xerces1.
1.2/xerces.jar:/opt/devlib/jaf1.0.1/activation.jar:/opt/java1.2/jre/lib/rt.jar:/opt/java1.2/lib/classes.zip:/opt/devlib/javamail1.1.3/mail.jar:/view/v
obadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA:/view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA/com/alltel/ebusiness/document_root:/opt/devlib/jsdt
2.0/lib/jsdt-client-lrmp.jar:/opt/devlib/jsdt2.0/lib/jsdt-client-http.jar:/opt/devlib/jsdt2.0/lib/jsdt-client-socket.jar:/opt/devlib/jsdt2.0/lib/jsdt.
jar:/opt/devlib/jt400/lib/jt400.zip:/opt/devlib/jce1.2/lib/jce1_2-do.jar -keepgenerated /view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA/com/allte
l/ebusiness/pay/adjustment/pages/LineItemAdjustmentResponsePage.jsp
    [apply] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/jspc
    [apply] Result: 1


     It makes me believe that this error message has something to do with classpath. I searched
the web also. If I set the same classpath from the
command line and compile the jsps, it works.
I enabled the verbose mode for ant and java, but no clue.
Does anybody has any idea, how to go about resolving this problem ?

Appreciate any help.

Thx
Kailash


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


Mime
View raw message