Glassfish 服务器 3 密码后启动失败
我从本地主机向 glassfish 添加了管理员密码:4848 在添加密码之前,我能够从 netbeans 启动服务器,现在我只能从控制台启动它。
在 netbeans 中,我收到 Glassfish server 3 start failed 错误和 INFO: User [] from host localhost does not have admin access。
我将以下内容添加到 glassfish-web.xml 中。我想我也需要将密码添加到代码中的某个位置,但我找不到在哪里
<security-role-mapping>
<role-name>admin</role-name>
<group-name>asadmin</group-name>
</security-role-mapping>
I added password to glassfish for admin from localhost:4848
Before adding the password I was able to start the server from netbeans, now I can only start it from console.
In netbeans I get the Glassfish server 3 start failed error and INFO: User [] from host localhost does not have administration access.
I added the following to glassfish-web.xml. I guess I need to add the password too to somewhere in code but I can't find where
<security-role-mapping>
<role-name>admin</role-name>
<group-name>asadmin</group-name>
</security-role-mapping>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
下载 7.1 后,Netbeans 开始在启动时询问密码,当我输入密码时我可以部署。我无法在以前的版本上部署。也许我现在可以从 Netbeans 启动服务器,但我习惯了从控制台启动它。
After downloading 7.1, Netbeans started asking password on start up, when I enter the password I can deploy. I could not deploy on previous version. Probably I can start the server from Netbeans now but I got used to starting it from the console.
对我有用:尝试首先通过 http://localhost:4848/management/admin 在浏览器中登录,然后在IDE上部署
worked for me: try logging first in browser via http://localhost:4848/management/admin, then deploy on IDE