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 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器