Glassfish 3.1.1 启用安全管理失败

发布于 2024-12-28 14:59:46 字数 854 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蒲公英的约定 2025-01-04 14:59:46

GlassFish Server 附带一个证书来保护 DAS 和远程实例之间的通信。确保 $GF_HOME/glassfish/domains/domain1/config 目录中有 keystore.jks 文件(假设您的域是 domain1)。

如果密钥库存在,则确保 s1as 存在。这是我的输出:

$ keytool -list -keystore keystore.jks

输入密钥库密码:

密钥库类型:JKS
密钥库提供商:SUN

您的密钥库包含 2 个条目

glassfish-instance,2011 年 7 月 19 日,PrivateKeyEntry,
证书指纹(MD5):19:E3:36:F6:2E:DA:7C:E0:6A:17:18:19:19:71:86:61
s1as,2011 年 7 月 19 日,PrivateKeyEntry,
证书指纹(MD5):B1:0D:11:F9:5C:CD:FB:FA:B3:E5:D9:35:9D:44:02:EE

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: SUN

Your 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

东风软 2025-01-04 14:59:46

我昨天也遇到了同样的问题。在解决问题的同时,我还尝试运行更新工具。但更新工具并未开始,并出现此处描述的错误: http://java.net/jira/browse /GLASSFISH-14769
使 updatetool 可运行的解决方案之一是安装以下软件包:

  • compat-libstdc++
  • compat-libgcc
  • 32 位 libidn (RPM 名称中带有 i386 的软件包)

完成此操作后,我还删除了 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:

  • compat-libstdc++
  • compat-libgcc
  • 32-bit libidn (the one with i386 in the RPM name)

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 ..."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文