see forum thread: https://community.jboss.org/message/802846#802846 looks like attempting to install in external AS7 following the steps below causes installation errors. 1. unzip jboss-as-dist-7.1.1.Final.zip 2. unzip rhq-server-4.6.0.zip 3. remove the "jbossas" folder in rhq-server-4.6.0 4. export RHQ_SERVER_JBOSS_HOME to the folder of jboss-as-7.1.1.Final 5. go to bin directory of rhq-server-4.6.0 6. run "sh rhq-server.sh start" to start RHQ 7. edit rhq-server.properties, enable auto install 8. run "sh rhq-install.sh" to install RHQ. you get this error from the installer console output: 10:12:45,319 WARN [org.rhq.enterprise.server.installer.ServerInstallUtil] Could not generate a new cert with a proper domain name, will use the original keystore 10:12:45,320 WARN [org.rhq.enterprise.server.installer.ServerInstallUtil] Failed to restore the original keystore from backup - please rename [/home/mazz/bin/jbossas/jboss-as-7.1.1.Final/standalone/configuration/rhq.keystore.backup] to [/home/mazz/bin/jbossas/jboss-as-7.1.1.Final/standalone/configuration/rhq.keystore] 10:12:45,326 INFO [org.rhq.enterprise.server.installer.ServerInstallUtil] Creating https connector... 10:12:45,572 ERROR [org.rhq.enterprise.server.installer.Installer] An error occurred: org.rhq.common.jbossas.client.controller.FailureException: Failed to add new connector [https]: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"JBAS014671: Failed services" => {"jboss.web.connector.https" => "org.jboss.msc.service.StartException in service jboss.web.connector.https: JBAS018007: Error starting web connector"}}}} at org.rhq.common.jbossas.client.controller.WebJBossASClient.addConnector(WebJBossASClient.java:176) [rhq-jboss-as-dmr-client-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT] at org.rhq.enterprise.server.installer.ServerInstallUtil.setupWebConnectors(ServerInstallUtil.java:1233) [rhq-installer-util-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT] at org.rhq.enterprise.server.installer.InstallerServiceImpl.install(InstallerServiceImpl.java:285) [rhq-installer-util-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT] at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:130) [rhq-installer-util-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT] at org.rhq.enterprise.server.installer.Installer.main(Installer.java:57) [rhq-installer-util-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_11] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_11] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_11] at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_11] at org.jboss.modules.Module.run(Module.java:260) at org.jboss.modules.Main.main(Main.java:291)
Created attachment 712137 [details] patch for fix while the problem was more easily exposed when installing to an external AS7 server, it was a more general issue with creating self-signed cert in the keystore and initializing the truststore if it doesn't exist. The problem is now fixed. I'm having problems pushing to the remote repo right now. I will attach patch.txt with the fix. Once I am able to successfully push, I will add a commit with the git hash. To test this is easy - unzip the RHQ distro. *Before doing anything*, remove these two files: <rhq-install-dir>/jbossas/standalone/configuration/rhq.keystore <rhq-install-dir>/jbossas/standalone/configuration/rhq.truststore Now install normally (no need to try to install in an external AS7, the problem would have shown, and is fixed, if installing in the AS7 that comes with RHQ). This would have failed to install prior to this fix. The server should install and run successfully with the fix.
git commit to master: c317c173dac2515ce2a3207dfb952b06668d4eea