I installed the last stable version of glassfish 3.1.1
multilingual on windows 7. Currently I am trying to setup a cluster with several instances. I am following the tutorial on http://javadude.wordpress.com/2011/04/25/glassfish-3-1-clustering-tutorial/ to do that. In one of the steps I have to use the enable-secure-admin
command on the DAS
. However, when I run it it gives me the following message:
C:\glassfish3\bin>asadmin.bat enable-secure-admin
remote failure: Error enabling secure admin : org.jvnet.hk2.config.TransactionFailure: java.lang.RuntimeException: java.lang.IllegalArgument
Exception: Could not find the alias s1as in the trust store
java.lang.RuntimeException: java.lang.IllegalArgumentException: Could not find the alias s1as in the trust store
Command enable-secure-admin failed.
Does anybody have any ideas how to resolve that?
Thanks, in advance.
GlassFish Server ships with a certificate to secure communication between the DAS and the remote instances. Make sure you have a keystore.jks file in $GF_HOME/glassfish/domains/domain1/config directory (assuming your domain is domain1).
If the keystore exists, then make sure s1as exists. Here's my output:
$ keytool -list -keystore keystore.jks
Enter keystore password:Keystore type: JKS
Keystore provider: SUNYour keystore contains 2 entries
glassfish-instance, Jul 19, 2011, PrivateKeyEntry,
Certificate fingerprint (MD5): 19:E3:36:F6:2E:DA:7C:E0:6A:17:18:19:19:71:86:61
s1as, Jul 19, 2011, PrivateKeyEntry,
Certificate fingerprint (MD5): B1:0D:11:F9:5C:CD:FB:FA:B3:E5:D9:35:9D:44:02:EE