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.
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
|-- build.xml
|-- condorCollector.wsdl
|-- condorSchedd.wsdl
|-- resources
| |-- condorCollector.wsdl
| |-- condorSchedd.wsdl
| `-- services.xml
`-- src
`-- condor
|-- AbortTransaction.java
|-- AbortTransactionResponse.java
|-- Base64DataAndStatus.java
|-- BeginTransaction.java
|-- BeginTransactionResponse.java
|-- ClassAdAttrType.java
Now I run the following command
bash$ ant
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.
Regards,
Batsayan Das
Tata Consultancy Services
Mailto: batsayan.das@xxxxxxx
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
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