[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] query on java jobs in condor???

Your job requires that your classpath has the servlet jar file which contains lots of classes including javax.servlet.http.HttpServlet. I guess it is there in your user account’s classpath. So it is executing perfectly when from the command prompt. When you submit the job via condor, it executes under different user account and in a different PC due to which it isn’t able to pick it up.


So ensure that it is present in the classpath on the execution node. There are several ways to achieve it. Since you are using a batch file, you can specify the jar file as part of input file list. Then edit the batch file to include that jar in the classpath using –cp option.



Dheepak Ra

Infosys Technologies Ltd

From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of sri.harish@xxxxxxxxx
Sent: Tuesday, February 07, 2006 12:56 PM
To: condor-admin@xxxxxxxxxxx; condor-users@xxxxxxxxxxx
Subject: [Condor-users] query on java jobs in condor???




I am using condor version  6.6.10 on windows. I want to run a java class which sends mails to user, upon finishing the job. This java class extends HttpServlet. I am submitting a dagman file to condor, so that upon completion of first job, the java class will start running and wil send a mail. The first job is being completed successfully, only the java class following the first job is not running. But, in dag.out file, it is showing as All Jobs Completed Successfully, though the mail is not being sent.


The following messages are being displayed in the error file:


java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Exception in thread "main"


My Dagman Submit Descriptor file is:


# FileName: printname.dag
Job name name.sub
Job result result.sub

PARENT name CHILD result



universe = vanilla
executable = printname.bat
output = printname.out
error = printname.err
log = printname.log



universe = vanilla
executable = C:\GridCOE\condor\examples\Test\javatest.bat



cd C:\j2sdk1.4.2_05\bin

java SendResultMail sri.harish@xxxxxxxxx


if i run javatest.bat directly from command prompt, it is sending mails without any errors. i am able to run simple java jobs on condor( say HelloWorld.java).


Awaiting your responses.




Sri Harish Koduri 

Ph :- 98806 90934

Office :- 080 28520408 (Ext: 1052)





The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***