[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] Condor SOAP call help needed
- Date: Tue, 9 Apr 2013 15:38:54 +0530
- From: Batsayan Das <batsayan.das@xxxxxxx>
- Subject: [HTCondor-users] Condor SOAP call help needed
My objective is to write a java program which submits a condor job via SOAP web service.
I am using CondorVersion: 7.9.2 in ubuntu 12.04, and using tannenba-extending-condor.ppt as a reference.
I have installed axis2-1.6.2 and apache-ant-1.9.0.
I set the following in $CODOR_CONFIG
ENABLE_SOAP = TRUE
ENABLE_WEB_SERVER = TRUE
ALLOW_SOAP = */*
QUEUE_ALL_USERS_TRUSTED = TRUE
SCHEDD_ARGS = -p 9666
Copied the Condor’s WSDL files condorCollector.wsdl and condorSchedd.wsdl from lib/webservice/ to a temprary directory and then run the following commands
bash$ wsdl2java.sh -uri condorSchedd.wsdl -d adb -s -ss -sd -ssi
bash$ wsdl2java.sh -uri condorCollector.wsdl -d adb -s -ss -sd -ssi
It generates the following tree
| |-- condorCollector.wsdl
| |-- condorSchedd.wsdl
| `-- services.xml
Now I run the following command
bash$ ant jar.all
It generates the class file along with condorSchedd.aar and condorSchedd-test-client.jar
Now I open a simple java project from eclips IDE, and include the condorSchedd.aar and condorSchedd-test-client.jar as the external JAR library.
Now I add the following line in the sample java program ( this lines comes from the tannenba-extending-condor.ppt)
Schedd schedd = new Schedd("http://10.135.0.30:9666");
ClassAd ad = new ClassAd(schedd.getJobAd(cluster, job));
I got message "Schedd cannot be resolved to a type" and "ClassAd cannot be resolved to a type" .
I am not very good in java, is there anything wrong I am doing in the entire process from wsdl file compilation to jar file generation to adding jar files as external jar for the submitter java application?
Thanks a lot.
Tata Consultancy Services
Experience certainty. IT Services
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you