2010/3/28 fred basset <fredbasset1...@gmail.com>: > Hi All, > > My QA guy came me with a problem where he now can't log into our > Tomcat web app. at all. The relevant log file is below. It looks > like Hibernate can't make a connection to MySQL. We can get to MySQL > fine from the command line, and tried restarting MySQL and Tomcat, got > the same result. Nothing has changed recently in the area of database > connectivity. The platform is Fedora Core 10, latest versions of > Tomcat, Hibernate and the JDK. Any ideas? > > Thkx, > Fred > > 26 Mar 10:57:22 ERROR main > org.springframework.web.servlet.DispatcherServlet - Context > initialization failed > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'sessionFactory' defined in ServletContext > resource [/WEB-INF/snaps-servlet.xml]: Invocation of init method > failed; nested exception is org.hibernate.HibernateException: > Hibernate Dialect must be explicitly set (...) > Caused by: org.hibernate.HibernateException: Hibernate Dialect must be > explicitly set > at > org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57) > at > org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39) > at > org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426) > at > org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128) > at > org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) > at > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
Looks like your Hibernate configuration is incomplete. Can it be that you are using some different configuration -- and not the one that you are expecting? Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org