-
Bug
-
Resolution: Done
-
Major
-
None
-
jboss-fuse-6.2.1
-
None
-
%
-
-
mq-create --group client-group --profile client-broker-test client-broker-test
Error executing command: keytool failed with exit code: -1
Stacktrace:
ERROR | l Console Thread | MQServiceImpl | 142 - io.fabric8.fabric-core - 1.2.0.redhat-621211 | Failed to generate keystore.jks: keytool failed with exit code: -1 java.io.IOException: keytool failed with exit code: -1 at io.fabric8.service.MQServiceImpl.createOrUpdateMQProfile(MQServiceImpl.java:141) at io.fabric8.core.jmx.MQManager.createOrUpdateProfile(MQManager.java:487) at io.fabric8.commands.MQCreateAction.doExecute(MQCreateAction.java:130) at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33) at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91] at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[18:org.apache.aries.proxy.impl:1.0.5] at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[18:org.apache.aries.proxy.impl:1.0.5] at io.fabric8.commands.$MQCreate1762957616.execute(Unknown Source)[mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.5:] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.karaf.shell.console.jline.Console.run(Console.java:197)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[37:org.apache.karaf.shell.console:2.4.0.redhat-621211] |
Note: JAVA_HOME and PATH environment variables are assigned:
echo $JAVA_HOME
/opt/java/jdk1.8.0_91/
echo $PATH
/opt/java/jdk1.8.0_91//jre/bin:...
Also, "keytool" command can be executed via command line:
$ keytool
Key and Certificate Management Tool
Commands:
-certreq Generates a certificate request
-changealias Changes an entry's alias
-delete Deletes an entry
-exportcert Exports certificate
-genkeypair Generates a key pair
-genseckey Generates a secret key
-gencert Generates certificate from a certificate request
-importcert Imports a certificate or a certificate chain
-importpass Imports a password
-importkeystore Imports one or all entries from another keystore
-keypasswd Changes the key password of an entry
-list Lists entries in a keystore
-printcert Prints the content of a certificate
-printcertreq Prints the content of a certificate request
-printcrl Prints the content of a CRL file
-storepasswd Changes the store password of a keystore
Use "keytool -command_name -help" for usage of command_name