Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 390286 - Please update java jdk on windows slave
Summary: Please update java jdk on windows slave
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CI Admin Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 19:48 EDT by David Williams CLA
Modified: 2012-10-01 02:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2012-09-24 19:48:28 EDT
According to the path I inherited, the VM on the windows box is "u2"

c:\java\jdk7u2\jre\bin\java

I think that's about a year old and now they are up to "u7"? (at oracle site) 
or "u10" from openjdk site. 

Not sure which you use, or even what I'd recommend (I've not kept up with non IBM JREs). I can research more if you don't know or have an established pattern. 

I'm hoping this might help eliminate the exact VM in use as a source of some of our "out of memory" errors (bug 390243)
Comment 1 Eclipse Webmaster CLA 2012-09-26 10:40:01 EDT
Ok, I've installed the latest JDK(7u7) in c:\java\jdk1.7.0_07 .

-M.
Comment 2 David Williams CLA 2012-09-26 17:56:29 EDT
I can run this version of Java, but ... it might be the cause of a problem related to "XSL transforms". See bug 390494. 

So, let me double check ... you used a "JDK" right (fuller version of JRE) ... not sure it does, but sometimes does. 

Is the old one on the "PATH" or is any "CLASSPATH" defined for the machine? (Either literally in it system environment variables, or in its "hudson slave" configuration?)
Comment 3 David Williams CLA 2012-09-26 18:07:11 EDT
Hmm, did find some info on web, such as 

http://stackoverflow.com/questions/10760798/securitymanager-and-xslt-extensions-in-java7-update4-broken

Not sure I want to suggest to install xalan 2.7.1 into endorsed libs ... but would be surprised the issue is still there (from u4 to u7). 

I may just revert to old VM, but would like to hear confirmation there's nothing about Java on PATH and no system-wide CLASSPATH defined. 

Thanks,
Comment 4 David Williams CLA 2012-09-26 21:57:54 EDT
I was able to reproduce the problem described in bug 390494 using a "u7" version of the Java VM, and I was able to test overcoming that problem by copying the 5 jars from Xalan 2.7.1 to the ...\jre\lib\endorsed directory. (The "endorsed" part of the directory path had to be created first).

But, not sure that's something "we" want to do on build.eclipse.org?
Comment 5 David Williams CLA 2012-09-26 21:59:30 EDT
Oh, meant to say, I'll drop back to u2 version we were using before, for now.
Comment 6 David Williams CLA 2012-09-27 02:45:18 EDT
Upon further reading, I think the xalan jars could go in the lib\ext directory ... the place for "extensions" to VM (as opposed to "replacements, which is what "endorsed" is for). I tried that on my local machine (instead of "endorsed" directory) and it worked fine. 

We should check if they happened to have been installed in the u2 version's lib\ext directory?

If so, their names would be
serializer.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
xsltc.jar 

[Though, don't think we need that last one.].
Comment 7 David Williams CLA 2012-09-27 15:06:09 EDT
As I mentioned in bug 390494, I've not been able to "work around" this issue in any simple fashion (i.e. without changing out code). 

We will stay on older VMs, or, you can add xalan jars to lib/ext directory. Since this is a reported VM bug 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7167657
that seems to effect both 1.6 and 1.7 releases, the "ext" approach seems reasonable to me. I can not imagine it would "break" anything else or any other uses ... just restores a missing function. 


You can download xalan 2.7.1 from 
http://xml.apache.org/xalan-j/downloads.html
site. 
I think some of their links are messed up or in transition, though, and I got my copy from their "archives" site: 
http://archive.apache.org/dist/xml/xalan-j/

I got 
http://archive.apache.org/dist/xml/xalan-j/xalan-j_2_7_1-bin.zip
unzipped into its own directory (there's a ton of docs and samples), and then copied the five jars mentioned above to the u7 ...lib/ext directory.
Comment 8 David Williams CLA 2012-10-01 02:15:31 EDT
(In reply to comment #7)
> As I mentioned in bug 390494, I've not been able to "work around" this issue
> in any simple fashion (i.e. without changing out code). 
> 

I think I have worked around this problem now, so no need to change ext dirs on systems. Just to close this off. Thanks.