嵌入式 Glassfish 3.1.1 的授权问题

发布于 2025-01-02 09:06:58 字数 338 浏览 4 评论 0原文

我正在使用 Embedded Glassfish 部署 Java EE 5 Web 应用程序。使用版本 3.1,我成功地:

将其部署在正常(非嵌入式)环境中;

基于第一步,创建嵌入式部署。

然后,事情发生了变化,我再也无法成功了。每次我尝试登录时,都会收到 403 错误,这意味着我的环境正常(可以进行身份​​验证),但我的授权规则不好!好的。你可以认为这显然是一个编码/配置问题,但事实是,当我不在嵌入式环境(现在是3.1.1版本)时,相同的.WAR可以部署并顺利运行。我刚刚尝试在 3.1.1 版本中重复上述两个步骤,但出现了相同的错误。

我对这个新的 GlassFish 版本可能做错了什么?

I'm using Embedded Glassfish to deploy a Java EE 5 web application. Using version 3.1 I was successful to:

Deploy it in a normal (not embedded) environment;

Based on the 1st step, create an embedded deploy.

Then, something changed that I cannot succeed anymore. Every time I try to log-in, I get a 403 error, meaning that my environment is working (could make authentication) but my authorization rules are not good! OK. You can think that it was obviously a codding/configuration problem, but the fact is that the same .WAR can be deployed and runs smoothly when I'm not at an embedded environment (now 3.1.1 version). I've just tried to repeat the two steps above to the 3.1.1 version, but the same error appear.

What can I be doing wrong to this new GlassFish version?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文