[Resin-interest] Persistence Started Without any persistence.xml?

2010-04-30 Thread Georg Buschbeck
For some reason we want to control the setup of hibernate ourselves, so 
removed the persistence.xml from WEB-INF/classes/META-INF,  and 
redeployed our WAR,

what i get is this exception:

[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)


http://bugs.caucho.com/view.php?id=4003


did i forget something? what can i do to resolve this?

Thanks,

Georg

-- 
Georg Buschbeck
Information Technology

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 502
F  + 49 761 3 85 59 550
E  g...@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Persistence Started Without any persistence.xml?

2010-04-30 Thread Scott Ferguson
Georg Buschbeck wrote:
 For some reason we want to control the setup of hibernate ourselves, so 
 removed the persistence.xml from WEB-INF/classes/META-INF,  and 
 redeployed our WAR,

 what i get is this exception:

 [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)


 http://bugs.caucho.com/view.php?id=4003


 did i forget something? what can i do to resolve this?
   
Is it possible that a jar has a persistence.xml? If there's no 
persistence.xml (and no jpa-persistence-unit in the resin.xml or 
resin-web.xml), then Resin shouldn't be starting Hibernate at all.

-- Scott
 Thanks,

 Georg

   



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest