Glassfish:如何调查角色/群体问题 [英] Glassfish: how to investigate roles/groups problems

查看:143
本文介绍了Glassfish:如何调查角色/群体问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在生产中使用JDBC Realm进行身份验证的Glassfish服务器。
它运行良好,但需要更改所有角色/组。我在一个测试环境中开发了一个新版本的web应用程序,通过更改glassfish-web.xml和web.xml来将它们与db for groups中的groups表中的组进行对比,以便进行测试。一切都完美无瑕。所以我将Web应用程序移到生产环境中,并更新了生产数据库中的组表的内容。
身份验证正常,但角色无法识别。我怎样才能调查这个问题?我检查了生产数据库和组表是好的,可以访问选择。 Glassfish-web.xml和web.xml与测试环境相同。这是一个真正的脑力激荡。我可以给出的唯一解释是Glassfish-web.xml由于不明原因而被丢弃,或者旧文件仍然存在并从除web-inf目录以外的其他位置读取。



感谢您的任何帮助

GlassFish根文件夹下的文件夹+ \domains 。如果您不确定自己在哪个域,默认情况下它是 domain1 。在这个文件夹下,你应该有一个名为 applications 的文件夹。该文件夹包含所有应用程序的部署版本,并且它是检查应用程序 Glassfish-web.xml 配置文件的地方。



无论如何,如果你有这种问题,一个 Clean&生成您的项目,然后进行重新部署,通常可以工作。


I have a Glassfish server in production which uses JDBC Realm for authentication. It works well, but there is the need to change all the roles/groups. I developed a new version of the web application in a test environment changing glassfish-web.xml and web.xml to align them with the groups contained in the groups table on the db for test. Everything works flawlessly. So I moved the web application to the production environment and updated the content of the groups table on production db. The authentication works well but roles are not recognized. How can I investigate this problem ? I checked the production db and the groups table is fine and can be accessed for select. Glassfish-web.xml and web.xml are the same of the test enviroment. This is a real brain teaser. The only explanation I can give is that Glassfish-web.xml is discarded for unknown reasons or the old file is still present and read from some other location than web-inf directory.

Thanks for any help

Filippo

解决方案

Explore your domain's folder under GlassFish root folder + \domains. If you are unsure what domain you are on, it is domain1 by default. Under this folder you should have a folder called applications. This folder contains the deployed version of all your applications, and it's the place where to check your application's Glassfish-web.xml configuration file.

Anyway, if you are having this kind of problems, a Clean & Build of your project, followed by a redeploy, usually works.

这篇关于Glassfish:如何调查角色/群体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆