Glassfish 3.1.1 启用安全管理失败
我在 Windows 7 上安装了最新稳定版本的 glassfish 3.1.1
多语言版本。目前我正在尝试设置一个包含多个实例的集群。我正在关注 http://javadude 上的教程.wordpress.com/2011/04/25/glassfish-3-1-clustering-tutorial/ 来做到这一点。在其中一个步骤中,我必须在 DAS
上使用 enable-secure-admin
命令。但是,当我运行它时,它会给我以下消息:
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.
有人知道如何解决这个问题吗?
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
GlassFish Server 附带一个证书来保护 DAS 和远程实例之间的通信。确保 $GF_HOME/glassfish/domains/domain1/config 目录中有 keystore.jks 文件(假设您的域是 domain1)。
如果密钥库存在,则确保 s1as 存在。这是我的输出:
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:
我昨天也遇到了同样的问题。在解决问题的同时,我还尝试运行更新工具。但更新工具并未开始,并出现此处描述的错误: http://java.net/jira/browse /GLASSFISH-14769
使 updatetool 可运行的解决方案之一是安装以下软件包:
完成此操作后,我还删除了 GlassFish 并再次安装 Glassfish 。 ..并且“asadmin启用安全管理”有效! :-)
我还注册了,如果没有上述安装的软件包,keystore.jks 不包含“glassfish-instance”证书。使用上述三个软件包重新安装 GlassFish 后,keystore.jks 包含“glassfish-instance”证书。因此,我认为错误消息“无法在...中找到别名 s1as”是不正确的,在这种情况下应该是“无法在...中找到别名 glassfish-instance”
I had the same problem yesterday. While resolving the problem I have also tried to run the update tool. But the updatetool was not starting with the error describes here: http://java.net/jira/browse/GLASSFISH-14769
One of the solution to make the updatetool runnable is to install the following packages:
After I make that I have also deleted GlassFish and install Glassfish again ... And "asadmin enable-secure-admin" works! :-)
I had also registered that without the above installed packages the keystore.jks don't contains the "glassfish-instance" certificate. After reinstall GlassFish with the three packages above the keystore.jks contains the "glassfish-instance" certificate. So I assume that the error message "Could not find the alias s1as in the ..." is not right and should be in this case "Could not find the alias glassfish-instance in the ..."