Hello there,
installing GT 4.0.8 using Java 1.6 from the source installer I had to
apply the Java 1.6 patch as suggested at the beginning of the software
prerequisites:
http://www.globus.org/toolkit/docs/4.0/admin/docbook/ch03.html
After running "patch -p0 < java16.patch" I get the following error:
patching file source-trees/wsrf/java/core/source/build.xml
patching file source-trees/wsrf/java/core/source/pkgdata/pkg_data_src.gpt
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file
source-trees/wsrf/java/core/source/pkgdata/pkg_data_src.gpt.rej
This is the content of the pkg_data_src.gpt.rej file:
***************
*** 3,9 ****
<gpt_package_metadata Format_Version="0.01" Name="globus_java_ws_core">
- <Aging_Version Age="0" Major="0" Minor="17"/>
<Description>
The Java WS Core package
</Description>
--- 3,9 ----
<gpt_package_metadata Format_Version="0.01" Name="globus_java_ws_core">
+ <Aging_Version Age="0" Major="0" Minor="18"/>
<Description>
The Java WS Core package
</Description>
$ java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)
There is also another issue... in the software prerequisites page:
http://www.globus.org/toolkit/docs/4.0/admin/docbook/ch03.html
it is stated that, instead of applying the patch, you may just edit
the file source-trees/wsrf/java/core/source/build.xml so the lines
89-94 read:
<condition property="compiler.jvmarg" value="-source 1.4">
<or>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</or>
The lines 88-98 of the original build.xml read:
88: <condition property="compiler.jvmarg" value="-source 1.4">
89: <or>
90: <equals arg1="${ant.java.version}" arg2="1.5"/>
91: <equals arg1="${ant.java.version}" arg2="1.6"/>
92: </or>
93: </condition>
94: <condition property="compiler.jvmarg" value="">
95: <not>
96: <isset property="${compiler.jvmarg}"/>
97: </not>
98: </condition>
Either the lines to be modified are really 89-94, in which case the
resulting build.xml would appear as follow:
88: <condition property="compiler.jvmarg" value="-source 1.4">
89: <condition property="compiler.jvmarg" value="-source 1.4">
90: <or>
91: <equals arg1="${ant.java.version}" arg2="1.5"/>
92: <equals arg1="${ant.java.version}" arg2="1.6"/>
93: </or>
94:
95: <not>
96: <isset property="${compiler.jvmarg}"/>
97: </not>
98: </condition>
or the lines to be modified are actually 88-92, in which case there
would be nothing to change because the original build.xml already
contains those exact lines.
I find the instructions quite confusing. Can anybody cast some light
on this matter?
--
Marco Lackovic
http://grid.deis.unical.it/lackovic/