eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
382 stars 143 forks source link

Installer sets AS_JAVA incorrectly and other JDK related problems #20136

Closed glassfishrobot closed 11 years ago

glassfishrobot commented 11 years ago

When running the installer for the b82 web profile, I'm seeing the following behavior related to the JDK selection page.

1. The installer is not finding the version of JDK 7 that I have installed. I have both a C:\Program Files (x86)\Java directory and a C:\Program Files\Java directory. In the latter is the jdk1.7.0_17 directory, the only valid JDK for GF 4 that I have on my system. The installer says it could not find a valid JDK and that I must choose one using the 2nd radio button.

2. I choose the jdk1.7.0_17 directory and the installer continues but is unable to create the domain. The installer says that the configuration was completed successfully even though the domain creation failed.

3. In the glassfish\config\asenv.bat file, I have the following line:

set AS_JAVA=C:\Program Files (x86)\Java

which is incorrect. This cause asadmin to not function correctly.

4. The uninstall fails with an error about not being able to find the required version of the JDK in the directory listed in (3).

Environment

Windows 7

Affected Versions

[4.0_dev]

glassfishrobot commented 6 years ago
glassfishrobot commented 11 years ago

@glassfishrobot Commented @ssevozen said: Item 1. is caused by openInstaller framework's limited ability to reliably detect all Windows JDK installations, especially 64 bit JDK installations. At this point we can't do much about this since we really need to extend openInstaller JDK handling interfaces. This part will have to be deferred to future release.

Items 2. and 3. are due to the fact that installer logic still does not always pick up explicitly provided JDK location in typical installation scenario and incorrectly falls back on the parent directory of the JDK used for installer runtime . This is handled in GlassFish specific install configuration code and will be fixed

Item 4. is side effect of 3. so will be implicitly fixed.

glassfishrobot commented 11 years ago

@glassfishrobot Commented @ssevozen said:

Not a regression, but issues are becoming more visible and prominent for newer Windows releases. There is significant usability impact on Windows installation since JDK selection is not reliable and subsequent default domain creation and product runtime are severely affected.

openInstaller related part of the fix will be deferred due to relatively high cost and risk. However, changes to GlassFish installer configuration code are low/moderate risk .

No.

Regular Windows installer testing should be sufficient to identify regressions. Some FishCat program participants cover this functionality, too.

b85

N/A

glassfishrobot commented 11 years ago

@glassfishrobot Commented tmueller said: Approved for 4.0. Please create a separate issue for #1 and add a comment to this issue with the number of the issue.

glassfishrobot commented 11 years ago

@glassfishrobot Commented @ssevozen said: Filed issue #20330 to track the first item. Other items addressed in b85.

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-20136

glassfishrobot commented 11 years ago

@glassfishrobot Commented Reported by tmueller

glassfishrobot commented 11 years ago

@glassfishrobot Commented Marked as fixed on Wednesday, April 17th 2013, 3:07:25 am