ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: classpath issue when compiling jsps
Date Mon, 25 Mar 2002 02:25:35 GMT
RTFM:  <env> subelement of <apply>.

    Erik


----- Original Message -----
From: <Kailash.Subramanian@alltel.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Sunday, March 24, 2002 9:20 PM
Subject: Re: classpath issue when compiling jsps


>
> Thanks a lot Erik. Now, I can exactly see which class file it is looking
> for.
>  Executing java -debug 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_one
off.jar:/opt/oracle/app/oracle/product/8.1.7/jdbc/lib/classes12.zip:/opt/d
>
evlib/xerces1.1.2/xerces.jar:/opt/devlib/jaf1.0.1/activation.jar:/usr/java/j
re/lib/rt.jar:/usr/java/lib/tools.jar:/usr/java/lib/dt.jar:/opt/devlib/jav
>
amail1.1.3/mail.jar:/view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA:/vi
ew/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA/com/alltel/ebusiness/doc
>
ument_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:/o
>
pt/devlib/jsdt2.0/lib/jsdt.jar:/opt/devlib/jt400/lib/jt400.zip:/opt/devlib/j
ce1.2/lib/jce1_2-do.jar -keepgenerated /view/vobadm_ECL_HIBERNIA/ebppvobst
>
ore/vobs/HIBERNIA/com/alltel/ebusiness/pay/adjustment/pages/LineItemAdjustme
ntResponsePage.jsp
>     [apply] Can't find class sun.tools.agent.Agent
>     [apply] Could not create the Java virtual machine.
>     [apply] Result: 1
>
>      The sun.tools.agent.Agent class file is in /usr/java/lib/tools.jar
which is in the class path as you can see. I also physically checked for
this
> class file in the tools jar
>  and it is available. Since this works if I run from command line without
this tools.jar in the classpath, I guess, the JAVA_HOME variable makes the
> difference. Anybody,
> please correct me if I am wrong. Any idea how do I set this variable
inside build.xml so that ant knows about this JAVA_HOME variable and for
that
> matter the PATH variable also .
>
> Thx
> Kailash
>
>
>
>
> From: Erik Hatcher <jakarta-ant@ehatchersolutions.com> on 03/24/2002 08:12
>       PM
>
> Please respond to Ant Users List <ant-user@jakarta.apache.org>
>
> To:   Ant Users List <ant-user@jakarta.apache.org>
> cc:
>
> Subject:  Re: classpath issue when compiling jsps
>
> Try -debug mode.... it might yield more explicit details.
>
>     Erik
>
>
> ----- Original Message -----
> From: <Kailash.Subramanian@alltel.com>
> To: "Ant Users List" <ant-user@jakarta.apache.org>
> Sent: Sunday, March 24, 2002 8:04 PM
> Subject: classpath issue when compiling jsps
>
>
> >
> > 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/ebusine
> ss/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/o
> racle/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.j
> ar:/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/ebpp
> vobstore/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:/o
> pt/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
> -ke
> epgenerated /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
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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