【问题标题】:AccessControlException when using Spring Security with OpenID将 Spring Security 与 OpenID 一起使用时出现 AccessControlException
【发布时间】:2010-12-09 21:36:45
【问题描述】:

我尝试在 Google App Engine 中使用 OpenID 实现 Spring Security,但我得到了一个 'java.security.AccessControlException: 拒绝访问' RequestURI /j_spring_openid_security_check

如果我使用 '-D--enable_all_permissions=true' 作为 VM,它工作正常 论据。

有什么想法吗?

谢谢, 拉尔夫

【问题讨论】:

  • 我遇到了同样的错误。你有没有为 GAE 解决过这个问题?
  • 我在 GAE 上的 spring-security 中遇到了类似的错误。然后我切换到旧版本的spring-security,即3.0.1,问题就解决了。但是请注意,我没有使用 OpenID。

标签: java spring google-app-engine openid spring-security


【解决方案1】:

想法 1 - 查看异常堆栈跟踪以尝试找出正在发生的事情。

想法 2 - 在 SpringSecurity 论坛上提问和/或提交错误报告。

我还注意到,当您在 Java 安全沙箱中运行时,许多 Java 代码会中断。 SpringSecurity 的正常用例是在没有沙盒的情况下在 J2EE 容器(例如 servlet)中运行。你在做什么听起来……嗯……不同。

【讨论】:

猜你喜欢
  • 2011-01-11
  • 2021-07-19
  • 2021-09-03
  • 2011-01-15
  • 2011-04-16
  • 2011-01-23
  • 2014-12-20
  • 2019-09-27
  • 2017-09-02
相关资源
最近更新 更多