2012-02-11 125 views
0

我建立一个应用程序与(智能)GWT冬眠(实际上吉利德,或hibernate4gwt)和春季安全GWT + Spring Security的集成

顺便说一下,我对这些都很新颖。

到现在一切正常,但我最近添加了Spring安全功能,以实现身份验证系统。似乎有多种方式使这项工作,我看了几个教程。

我喜欢这里这个简单的想法:http://blog.maxmatveev.com/2011/06/gwt-and-spring-security-integration-as.html?showComment=1328698687249#c4823182825437196300

我也试过这一个(很多虚拟类等,但很好哦):http://seewah.blogspot.com/2009/02/gwt-and-spring-security.html

在这两种情况下,我有同样的问题,我在applicationContext.xml得到这个错误:

Error occured processing XML 'org/springframework/security/access/intercept/aopalliance/MethodSecurityInterceptor' 

在它发生在行的第一个链接:

<security:global-method-security secured-annotations="enabled" mode="aspectj"/> 

在第二个环节是发生在行:

<security:global-method-security secured-annotations="enabled" jsr250-annotations="disabled" /> 

我GOOGLE了这个问题,但我没有找到答案..

PS1:使用Eclipse的 3.6,我已经安装插件弹簧框架aspectJ

PS2:我没有在这里编写所有的代码,而是喜欢我使用的教程(会有太多的代码)。

也许有人可以帮助我。 预先感谢您。

回答

0

这可能是Spring/Spring Security版本的问题。

确保您已更新到最新版本(以处理元素security:global-method-security的属性mode="aspectj"),例如Spring-Security 3.1。

+0

我有最新版本:/ – user1138678 2012-02-13 15:21:02