2012-02-11 83 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