ant-user mailing list archives

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

I set the classpath as environment variable and it worked like charm. The
code I used is
<target name="jspcompile" depends="init">
     <apply executable="java">
     <env key="JAVA_HOME" value="/usr/java" />
     <env key="CLASSPATH" value="${cp}" />
     <arg line="weblogic.jspc -compiler javac -g -d ${src}/com/alltel/ebusiness/pay/adjustment/pages/
-docroot Hibernia -keepgenerated" />
     <fileset dir="${src}/com/alltel/ebusiness/pay/adjustment/pages/" includes="**/*.jsp/**"
/>
     </apply>
     </target>

     Can anybody help me understand why if I call the CLASSPATH in the arg line using the
property name ${cp} it does not work as against
setting the CLASSPATH as environment variable ?Or am I missing something ?  The verbose of
the command as called by ant  is

 [apply] Executing java weblogic.jspc -compiler javac -g -d /view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA/com/alltel/ebusiness/pay/adjustmen
t/pages/ -classpath /usr/java/lib/tools.jar:/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/weblogi
c5/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:/usr/java/jre/lib/rt.jar:/usr/java/lib/dt.jar:/opt/devlib/javamail1.1.3/mail.jar:/view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA:
/view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA/com/alltel/ebusiness/document_root:/opt/devlib/jsdt2.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/devli
b/jce1.2/lib/jce1_2-do.jar -docroot Hibernia -keepgenerated /view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA/com/alltel/ebusiness/pay/adjustment/p
ages/LineItemAdjustmentResponsePage.jsp
    [apply] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/jspc
    [apply] Result: 1



I would appreciate any insight into this. Thanks a bunch Erik for your patience and help.

Thx
Kailash

PS: I am a newbie.


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