7 Replies Latest reply on Oct 5, 2005 10:23 PM by Viet

    The dialect was not set. Set the property hibernate.dialect.

    Jacek Laskowski Newbie

      Hi,

      I know I can change the property in jboss-portal.sar\conf\hibernate\hibernate.cfg.xml, but is there another way to set the default Hibernate dialect so that I don't have to extract/modify/save the file?

      The change is required as without it JBoss AS 4.0.3RC2 refuses the portal sar to be deployed.

      15:47:11,138 WARN [ServiceController] Problem starting service portal:service=Hibernate
      org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.
      at org.hibernate.dialect.Dialect.getDialect(Dialect.java:540)
      at org.hibernate.dialect.Dialect.getDialect(Dialect.java:562)
      at org.hibernate.tool.hbm2ddl.SchemaExport.(SchemaExport.java:77)
      at org.hibernate.tool.hbm2ddl.SchemaExport.(SchemaExport.java:53)
      at org.jboss.portal.core.hibernate.SessionFactoryBinder.createSchema(SessionFactoryBinder.java:278)
      at org.jboss.portal.core.hibernate.SessionFactoryBinder.startService(SessionFactoryBinder.java:181)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:287)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:187)
      at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:73)

      Jacek