Bruno Oliveira wrote:
Hi,
I want to submit a java job to Globus. I have a simple Hello World program, and i build the jar file.

I have the follow rsl:
<job> <executable>/home/vasco/Desktop/HelloWorld.jar</executable> <directory>${GLOBUS_USER_HOME}</directory> <stdout>${GLOBUS_USER_HOME}/stdout</stdout> <stderr>${GLOBUS_USER_HOME}/stderr</stderr> <fileStageIn> <transfer> <sourceUrl>gsiftp://debian9.estgf.ipp.pt:2811/home/vasco/Desktop/HelloWorld.jar <http://debian9.estgf.ipp.pt:2811/home/vasco/Desktop/HelloWorld.jar></sourceUrl> <destinationUrl>file:///${GLOBUS_USER_HOME}/output_java</destinationUrl> </transfer> </fileStageIn> <fileCleanUp> <deletion> <file>file:///${GLOBUS_USER_HOME}/output_java</file> </deletion> </fileCleanUp>
</job>

It is a simple test, but i got problems when i submit:

globusrun-ws -submit -S -f helloworld.rsl
Delegating user credentials...Done.
Submitting job...Done.
Job ID: uuid:ddbfef30-addc-11de-9c77-000874ac6b63
Termination time: 09/30/3009 16:18 GMT
Current job state: StageIn
Current job state: Failed
Destroying job...Done.
Cleaning up any delegated credentials...Done.
globusrun-ws: Job failed: The executable could not be started. starter: the job failed when the job manager attempted to run it


Apparently globus found the executable, but i dont know why this error happens.

Thanks for your help,
Best Regards,
Bruno Oliveira
Hi  Bruno,

it's not a globus problem, it's a java problem, and the problem lies here...

[snip]
<executable>/home/vasco/Desktop/HelloWorld.jar</executable>
[snip]

A jar file is never an executable for its own. So you can never execute

file.jar,

but you can execute:

java -jar file.jar

Would you need instead the above in your rsl file is the following

<executable>java</executable>
<argument>-jar</argument>
<argument>/home/vasco/Desktop/HelloWorld.jar</argument>

Try this, anf if 'java' as executable cannot befound, check your path.

Cheers

Alexander

Reply via email to