Dialect class not found:  说的很清楚

解决方案 »

  1.   

    方言选择有问题吧.org.hibernate.HibernateException: Dialect class not found:
      

  2.   

    org.hibernate.dialect.SQLServerDialect没在classpath里面
      

  3.   

    ( Dialect ) ReflectHelper.classForName( dialectName ).newInstance();   public static Class  classForName(String  name) throws ClassNotFoundException  {
           try {
               ClassLoader  contextClassLoader = Thread.currentThread().getContextClassLoader();
               if (contextClassLoader!=null) {
                   return contextClassLoader.loadClass(name);
               } 
               else {
                   return Class.forName(name);
              }
           }
           catch (Exception  e) {
               return Class.forName(name);
           }
       }
      

  4.   

    是not   found不是有问题....
    说明你build的时候参数没穿进去吧...
    或者你的properties房的path不对吧...
      

  5.   

    是不是在properties中的java build path 中的libraries?我已经在这个里面加入了的啊?这个方言(org.hibernate.dialect.SQLServerDialect)实在Hibernate3中?
      

  6.   

    是:
       props.setProperty("hibernate.dialect", DatabaseParm.hibernate_dialect);//配置数据库方言 
    还是:
       props.setProperty("dialect", DatabaseParm.hibernate_dialect);//配置数据库方言 我记不清了……
      

  7.   

    Dialect class not found这个类没有被找到,你看看是不你道入包的时候出了问题
      

  8.   


    应该不是这个问题,如果没设置方言hibernate会抛其他异常,看源码就知道了
      

  9.   

    org.hibernate.HibernateException: Dialect class not found: 
    非常明显.....