mineeye 2010-04-30 14:46
浏览 416
已采纳

class not found org.hibernate.dialect.SQLServerDialect

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\JavaHome\EclipseSource\eclipse\spage.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\environment\WEB-INF\classes\config\spring-context.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.SQLServerDialect





hibernate.hbm2ddl.auto=create
hibernate.show_sql=true
hibernate.dialect=org.hibernate.dialect.SQLServerDialect

hibernate.current_context_session_class=thread




xht/test/man/domain/Man.hbm.xml



我已经看过了。。。 hibernate3 里面也有这个 .class 文件 数据库驱动的jar包 buildpath 里面也已经引入了! 网上查了也没什么具体原因。。。

  • 写回答

1条回答

  • WdWheyr 2010-04-30 16:17
    关注

    可能是包冲突找到 asm-util-2.2.3,asm-2.2.3,asm-commons-2.2.3
    把他们删掉试试

    你看一下这个配置文件
    [code="java"]<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">




    com.microsoft.jdbc.sqlserver.SQLServerDriver


    jdbc:microsoft:sqlserver://210.77.144.201:10002;DatabaseName=sune


    sa


    lG_XhncnL@.dsfhj







    com/suntravel/sunes/user/User.hbm.xml




    org.hibernate.dialect.SQLServerDialect
    true
    org.hibernate.cache.EhCacheProvider

    true
    10








    true



    /WEB-INF/ehcache.xml














    PROPAGATION_REQUIRED
    PROPAGATION_REQUIRED,readOnly
    PROPAGATION_REQUIRED,readOnly



    [/code]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog