Installer does not run install -dis correctly on Windows
Description
Environment
Acceptance / Success Criteria
blocks
Lucidchart Diagrams
Activity

Markus von Rüden October 22, 2014 at 11:12 AM
I fixed the Stacktrace issue in OpenNMS with pull request https://github.com/OpenNMS/opennms/pull/141
I had to not print the stacktrace when warning about the "CSDVersion" not found issue.

Markus von Rüden October 20, 2014 at 8:42 AM
I fixed the "NoClassDefFound"-Exception by correcting the classpath and main class with commit https://github.com/OpenNMS/installer/commit/7e8b72f2e354f53b0d2fa6a249a4897d0e6b5eee

Markus von Rüden October 20, 2014 at 7:41 AMEdited
I managed to figure out the correct command line argument
However there seems to be a problem while determining the windows version:
==============================================================================
OpenNMS Installer
==============================================================================Configures PostgreSQL tables, users, and other miscellaneous settings.
DEBUG: Looks like we're on Windows... Validating.
WARNING: Unable to retrieve the value for SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion
com.sun.jna.platform.win32.Win32Exception: The system cannot find the file specified.
at com.sun.jna.platform.win32.Advapi32Util.registryGetStringValue(Advapi32Util.java:495)
at org.opennms.install.IPv6Validator.getStringFromRegistry(IPv6Validator.java:162)
at org.opennms.install.IPv6Validator.isPlatformIPv6Ready(IPv6Validator.java:65)
at org.opennms.install.Installer.checkIPv6(Installer.java:308)
at org.opennms.install.Installer.install(Installer.java:199)
at org.opennms.install.Installer.main(Installer.java:967)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:366)
at java.lang.Thread.run(Thread.java:722)
DEBUG: Windows NT Version 6,3, Build 9600 (Service Pack 0)
At Step 9/10 I get an exception.