Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 88935 invoked from network); 25 Mar 2002 02:17:29 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Mar 2002 02:17:29 -0000 Received: (qmail 22771 invoked by uid 97); 25 Mar 2002 02:17:29 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 22740 invoked by uid 97); 25 Mar 2002 02:17:28 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 22729 invoked from network); 25 Mar 2002 02:17:28 -0000 Subject: Re: classpath issue when compiling jsps To: Ant Users List From: Kailash.Subramanian@alltel.com Date: Sun, 24 Mar 2002 21:20:28 -0500 Message-ID: X-MIMETrack: Serialize by Router on CORPMAIL01/ALLTELCORP(Release 5.0.8 |June 18, 2001) at 03/24/2002 08:17:25 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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_oneoff.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/jre/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:/view/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/jce1.2/lib/jce1_2-do.jar -keepgenerated /view/vobadm_ECL_HIBERNIA/ebppvobst ore/vobs/HIBERNIA/com/alltel/ebusiness/pay/adjustment/pages/LineItemAdjustmentResponsePage.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 on 03/24/2002 08:12 PM Please respond to Ant Users List To: Ant Users List cc: Subject: Re: classpath issue when compiling jsps Try -debug mode.... it might yield more explicit details. Erik ----- Original Message ----- From: To: "Ant Users List" 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. > > > > > > > > > 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: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: