Try adding the java environment variable(s) in the job description. A
basic example is here:
http://www.globus.org/toolkit/docs/4.2/4.2.1/execution/gram4/user/#gram4-user-specifyingsimplejob-jdd
Something like:
<environment>
<name>JAVA_HOME</name>
<value>PUT PATH HERE</value>
</environment>
-Stu
On Oct 8, 2009, at Oct 8, 9:06 AM, Bruno Oliveira wrote:
Thanks for the answers.
I executed the which command and set the correct path of java. Now
i have my rsl file like this:
<job>
<executable>/usr/lib/jdk1.5.0_17/bin/java</executable>
<argument>-jar </argument>
<argument>Projeccao.jar</argument>
<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
</sourceUrl>
<destinationUrl>file:///${GLOBUS_USER_HOME}/HelloWorld.jar</
destinationUrl>
</transfer>
</fileStageIn>
<fileCleanUp>
<deletion>
<file>file:///${GLOBUS_USER_HOME}/HelloWorld.jar</file>
</deletion>
</fileCleanUp>
</job>
The job ran without problems, but i don't have any stdout. In
stderr file I have the error:
Unrecognized option: -jar
Could not create the Java virtual machine.
The machine have the environment variable JAVA_HOME correctly
defined and i have this variable in the path.
thanks,
Best regards,
Bruno Oliveira
2009/10/1 Bruno Oliveira <[email protected]>
Thanks for your answer.
Now i got the message:
globusrun-ws: Job failed: Invalid executable path "java".
I have the JAVA_HOME environment variable correctly set, i can also
run the jar file by typing this: java -jar HelloWorld.jar, but when
i submit to globus i got the message:
globusrun-ws: Job failed: Invalid executable path "java".
My RSL now is:
<job>
<executable>java</executable>
<argument>-jar</argument>
<argument>/home/vasco/Desktop/HelloWorld.jar</argument>
<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
</sourceUrl>
<destinationUrl>file:///${GLOBUS_USER_HOME}/output_java</
destinationUrl>
</transfer>
</fileStageIn>
<fileCleanUp>
<deletion>
<file>file:///${GLOBUS_USER_HOME}/output_java</file>
</deletion>
</fileCleanUp>
</job>
Thanks for the help,
Best regards,
Bruno Oliveira
2009/9/30 Bruno Oliveira <[email protected]>
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
</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