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. Regards, Dheepak Ra Infosys Technologies Ltd From:
condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of sri.harish@xxxxxxxxx Hi, 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 My Dagman Submit Descriptor file is: # FileName: printname.dag PARENT name CHILD result name.sub: universe = vanilla result.sub: universe = vanilla javatest.bat:
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. Regards Sri Harish Koduri Ph :- 98806 90934 Office :- 080 28520408
(Ext: 1052)
|