spring_security 安全验证框架报错 一堆求帮助

zwyancc 2013-03-27 10:16:41
问题如下:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myAuthorizationFilter' defined in file [D:\Tomcat 6.0\webapps\spring_security\WEB-INF\classes\applicationContext-security.xml]: Cannot

Could not instantiate bean class [com.huaxin.security.MySecurityMetadataSource]: Constructor threw exception; nested exception is org.springframework.dao.I


by: org.hibernate.exception.SQLGrammarException: could not execute query


Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
...全文
105 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zwyancc 2013-03-28
  • 打赏
  • 举报
回复
'com.huaxin.security.MySecurityMetadataSource#1acdd78' defined in file [D:\apache-tomcat-7.0.37\webapps\spring_security\WEB-INF\classes\applicationContext-security.xml]: <!-- 认证过滤器 --> <beans:bean id="securityFilter" class="com.huaxin.security.MySecurityFilter"> <!-- 用户拥有的权限 --> <beans:property name="authenticationManager" ref="myAuthenticationManager" /> <!-- 用户是否拥有所请求资源的权限 --> <beans:property name="accessDecisionManager" ref="myAccessDecisionManager" /> <!-- 资源与权限对应关系 --> <beans:property name="securityMetadataSource" ref="mySecurityMetadataSource" /> </beans:bean> <!-- 实现了UserDetailsService的Bean --> 就是这里对应的东西全部找不到
zwyancc 2013-03-28
  • 打赏
  • 举报
回复
求帮助 大牛们
zwyancc 2013-03-27
  • 打赏
  • 举报
回复
我感觉不是applicationContext-.xml 找不到 缺什么包吗 ,查了好几个小时, 求指点 在这下的例子 http://blog.csdn.net/k10509806/article/details/6369131 跑不通

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧