Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004003 [Resin] major always 04-19-10 08:21 05-19-10 17:15
Reporter georgbuschbeck View Status public  
Assigned To ferg
Priority normal Resolution no change required Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.4
  Product Build
Summary 0004003: Persistence Started Without any persistence.xml?
Description we decided to do the hibernate configuration by hand, and removed the persistence.xml, now the application doesn't startup without any persistence.xml, an empty one won't do it ...

i'll get this stacktrace so my code, doesn't seem to be involved ...


[17:16:57.820] {resin-15} 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:437)
                                at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:132)
                                at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2078)
                                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1302)
                                at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:854)
                                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
                                at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
                                at com.caucho.env.jpa.ManagerPersistenceUnit.createDelegate(ManagerPersistenceUnit.java:394)
                                at com.caucho.env.jpa.ManagerPersistenceUnit.start(ManagerPersistenceUnit.java:371)
                                at com.caucho.env.jpa.ManagerPersistence.startPersistenceUnits(ManagerPersistence.java:351)
                                at com.caucho.env.jpa.ManagerPersistence.environmentConfigureEnhancer(ManagerPersistence.java:573)
                                at com.caucho.loader.EnvironmentClassLoader.config(EnvironmentClassLoader.java:739)
                                at com.caucho.loader.EnvironmentClassLoader.bind(EnvironmentClassLoader.java:757)
                                at com.caucho.loader.EnvironmentClassLoader.start(EnvironmentClassLoader.java:782)
                                at com.caucho.server.webapp.WebApp.start(WebApp.java:2959)
                                at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:693)
                                at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:652)
                                at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.alarm(StartAutoRedeployAutoStrategy.java:177)
                                at com.caucho.server.deploy.DeployController.handleAlarm(DeployController.java:815)
                                at com.caucho.util.Alarm.handleAlarm(Alarm.java:450)
                                at com.caucho.util.Alarm.run(Alarm.java:422)
                                at com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901)
                                at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)


resin:/srv/resin.data/hosts$ ls -l myhost/webapps/ROOT/WEB-INF/classes/META-INF/
total 8
-rw-r--r-- 1 root root 5043 2010-04-19 13:36 persistence.xml.old
resin:/srv/resin.data/hosts$
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0004547)
georgbuschbeck
05-04-10 00:07

oops, my fault, there was a persistence.xml in one embedded jar
 

- Issue History
Date Modified Username Field Change
04-19-10 08:21 georgbuschbeck New Issue
05-04-10 00:07 georgbuschbeck Note Added: 0004547
05-19-10 17:15 ferg Assigned To  => ferg
05-19-10 17:15 ferg Status new => closed
05-19-10 17:15 ferg Resolution open => no change required


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker