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

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