Netbeans 创建 Glassfish 域的管理员用户和密码?

发布于 2024-10-02 22:18:46 字数 714 浏览 0 评论 0原文

当我使用 netbeans (6.9) 创建“开发”glassfish (3.1) 域时,不需要密码。一切都很神奇。

第一眼看上去不错。直到您真正需要知道管理员用户和密码。

正常的组合 admin / adminadmin 实际上不起作用。

另外,普通的主密码 changeit 也无济于事。

有谁知道 netbeans 在创建 glassfish 域时使用哪些凭据?

当然,我尝试使用 asadmin 创建一个域。但是 NetBeans 不太喜欢这些域,即 NetBeans 开始要求输入密码,域的自动启动不再起作用。烦恼无穷无尽。

更新1:

我尝试按照建议使用空密码,但这也不起作用:

Authentication failed for user: admin
with password from password file: …\Domain.properties
(Usually, this means invalid user name and/or password)
Command create-file-user failed.

我是在坚硬的岩石和深蓝色的大海之间吗? NetBeans 创建的域不能与命令行一起使用,而命令行创建的域也不能与 netbeans 一起使用吗?

When I create a “development” glassfish (3.1) domain with netbeans (6.9) then no passwords are needed. Everything works magically.

Nice on the first glance. Until you actually need to know the admin user and password.

The normal combination admin / adminadmin does not actually work.

Also the normal master password changeit won't get me anywhere.

Does anybody knows which credentials netbeans uses when creating a glassfish domain?

Of course I tried to create a domain using asadmin. But then NetBeans does not like these domains all that much, i.e. NetBeans starts to ask for passwords, automatic start of domain does not work any more. Trouble without end.

Update 1:

I tried to use empty passwords as suggested but this does not work either:

Authentication failed for user: admin
with password from password file: …\Domain.properties
(Usually, this means invalid user name and/or password)
Command create-file-user failed.

Am I between the hard rock and the deep blue sea here? NetBeans created domains don't work with command-line and command-line created domains don't work with netbeans?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

皇甫轩 2024-10-09 22:18:46

好吧,我自己想出来了(再次 - 我什么时候才能最终获得自学者徽章?)

问题是管理员用户:

--user anonymous

没有记录。我只在 config/admin-keyfile 中找到它。正如 vkraemer 所建议的那样,密码确实为空:

AS_ADMIN_MASTERPASSWORD=
AS_ADMIN_PASSWORD=

感谢您的帮助。

Well I figured it out myself (again - when will I finally get my self learner badge?)

The problem is that the admin user is:

--user anonymous

no where documented. I only found it in the config/admin-keyfile. The password then is indeed empty as vkraemer suggested:

AS_ADMIN_MASTERPASSWORD=
AS_ADMIN_PASSWORD=

Thanks for the help.

强辩 2024-10-09 22:18:46

最明显的答案缺失了吗? Netbeans->服务->玻璃鱼 ->属性->密码显示?

Most obvious answer missing? Netbeans - > Services - > Glassfish -> Properties -> Password show?

冬天旳寂寞 2024-10-09 22:18:46

如果您使用 NetBeans 创建开发域,则它没有密码。向各种命令发送一个会导致问题。

If you use NetBeans to create a development domain, it does not have a password. Sending one to the various commands will cause problems.

灼疼热情 2024-10-09 22:18:46

首先,使用admin/adminadmin登录管理控制台,然后更改密码。之后,您将能够从 Netbeans 进行连接。我用 Netbeans 8 做到了这一点。

First, login to the Administration Console using admin/adminadmin and then change the password. After that, you will be able to connect from Netbeans. I did that with Netbeans 8.

总以为 2024-10-09 22:18:46

删除开发环境中的用户名、密码。

Remove username, password in development environment.

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