Bug 1190789 - Installer: Installation of EAP with installation script fails on Windows W2k8 servers
Summary: Installer: Installation of EAP with installation script fails on Windows W2k8...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Installer
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER3
: EAP 6.4.0
Assignee: jboss-set
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-09 15:56 UTC by Petr Kremensky
Modified: 2019-08-19 12:43 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:43:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Kremensky 2015-02-09 15:56:04 UTC
Description of problem:
 Installation of EAP on Windows W2k8 servers fails once an automatic installation script (auto.xml) is used:

...
Try to add to selection [Name: Native Webserver Windows-x86_64 and Index: 15]
Modify pack selection.
Pack [Name: Quickstarts and Index: 11] removed from selection.
Validation error.
Please enter a password.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi in java.library.pa
th, C:\Users\Administrator\AppData\Local\Temp\jansi-64.dll: The application has failed to start because its side-by-side
 configuration is incorrect. Please see the application event log for more detail]
        at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:184)
        at org.fusesource.hawtjni.runtime.Library.load(Library.java:142)
        at org.fusesource.jansi.internal.Kernel32.<clinit>(Kernel32.java:37)
        at org.fusesource.jansi.WindowsAnsiOutputStream.<clinit>(WindowsAnsiOutputStream.java:52)
        at org.jboss.aesh.terminal.WindowsTerminal.init(WindowsTerminal.java:53)
        at org.jboss.aesh.console.Console.setTerminal(Console.java:193)
        at org.jboss.aesh.console.Console.reset(Console.java:154)
        at org.jboss.aesh.console.Console.<init>(Console.java:105)
        at com.izforge.izpack.util.Shell.<init>(Shell.java:50)
        at com.izforge.izpack.util.Shell.getInstance(Shell.java:68)
        at com.izforge.izpack.panels.UserInputPanelAutomationHelper.getInputs(UserInputPanelAutomationHelper.java:323)
        at com.izforge.izpack.panels.UserInputPanelAutomationHelper.getAutoPromptVariable(UserInputPanelAutomationHelper.java:308)
        at com.izforge.izpack.panels.UserInputPanelAutomationHelper.getAutoPromptVariable(UserInputPanelAutomationHelper.java:246)
        at com.izforge.izpack.panels.UserInputPanelAutomationHelper.runAutomated(UserInputPanelAutomationHelper.java:197)
        at com.izforge.izpack.installer.AutomatedInstaller.installPanel(AutomatedInstaller.java:579)
        at com.izforge.izpack.installer.AutomatedInstaller.doInstall(AutomatedInstaller.java:519)
        at com.izforge.izpack.installer.Installer.main(Installer.java:173)

Version-Release number of selected component (if applicable):
 EAP 6.4.0.ER2

How reproducible:
 Always
  - reproduced on my virtual 2008_x64_sp2 server with OracleJDK_1.7.0_67 and OracleJDK_1.8.0_20
  - reproduced on dev99 (W2k8r2-x86_64) from MWQE lab with OracleJDK_1.7.0_67
  - failed to reproduce on 2012_x64_r2

Steps to Reproduce:
 1. "Generate installation script and properties file" at the end of installation (you can use default values for all installer screens)
 2. Uninstall EAP
   C:\>java -jar Users\Administrator\EAP-6.4.0\Uninstaller\uninstaller.jar -console
    Force the deletion of C:\Users\Administrator\EAP-6.4.0 [y/n] y
 3. Install EAP again, use installation script generated in step 1.
   C:\>java -jar jboss-eap-6.4.0.ER2-installer.jar auto.xml
   
Actual results:
 Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library.

Expected results:
 ...
 Unpacking complete.
 [ Processing finished ]
 [ Writing the uninstaller data ... ]
 [ Automated installation done ]

Additional info:
 - Regression against EAP 6.4.0.ER1 and EAP 6.3.0

Comment 1 Thomas Hauser 2015-02-09 18:05:48 UTC
This bug is due to a bad / older version of aesh / jansi being used in the izpack / installer-commons builds, which are dependencies of the installer. These have been changed to inherit the version from jboss-as-parent. A rebuilt installer with these changed dependencies no longer encounters this problem.

Note: This problem doesn't appear on my windows8 machine. It would be interesting to know why, but not particularly important.

Comment 2 Thomas Hauser 2015-02-25 16:49:18 UTC
I'm not able to reproduce this issue on dev103 with the ER2 installer.

Comment 3 Petr Kremensky 2015-03-02 08:21:10 UTC
Verified on EAP 6.4.0.ER3 installer.


Note You need to log in before you can comment on or make changes to this bug.