问题如下: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
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
解决方案 »
- 这是用的什么jdbc连接池技术
- 急急急,java 学员,做jsp时有了数据库访问类为什么还要个业务类啊?
- 简单页面阅读统计问题,初学者问
- 请问在那里设置? 我在server.xml里找了不过不知道如何设置
- JSP远程数据库链接问题
- 一个简单问题关于取数据库字段里存取了多个内容,急啊~~~~~~~~~~~~~~~~
- java程序从Sybase拿出数据显示中文问题?
- web server入门视频推荐。谢谢咯
- 在jbuilder9中做的applet程序可以运行,为什么在ie打开无法显示applet程序
- 请问 以下动态输出<td>怎么输出才不难看
- struts2 部署问题
- 求指教!Struts环境搭配完成后,启动tomcat如法找到struts.xml文件.40分
在这下的例子
http://blog.csdn.net/k10509806/article/details/6369131跑不通
<!-- 认证过滤器 -->
<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 -->就是这里对应的东西全部找不到