[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


[Resin-interest] Adding port 80 to resin.conf

2010-04-30 Thread Abdalmonem Tharwat Galila
When I add http address=* port=80 to resin.conf to redirect the user from 
http://localhost to https://localhost ,  all website can working in http , but 
I want all site  to work in https. Problem No 1.
I want login.jsp to work in https only.


All the Best,
Abdalmonem Tharwat Galila
System Engineer ,
Technical Resources Department.
Ministry of Communications  Information Technology
Office Tel.: +2 02 35341582 - +2 02 35341300
Mobile: +2 010 0049068
Fax : +2 02 35370537
Website: http:\\www.mcit.gov.eghttp://www.mcit.gov.eg/
E-mail: agal...@mcit.gov.egmailto:agal...@mcit.gov.eg

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


Re: [Resin-interest] Adding port 80 to resin.conf

2010-04-30 Thread Scott Ferguson
Abdalmonem Tharwat Galila wrote:

  

  

 *From:* resin-interest-boun...@caucho.com 
 [mailto:resin-interest-boun...@caucho.com] *On Behalf Of *Abdalmonem 
 Tharwat Galila
 *Sent:* 30 أبريل, 2010 09:59 م
 *To:* resin-interest@caucho.com
 *Subject:* [Resin-interest] Adding port 80 to resin.conf
 *Importance:* High

  

 When I add http address=”*” port=80 to resin.conf to redirect the 
 user from http://localhost to https://localhost ,  all website can 
 working in http , but I want all site  to work in https. “Problem No 1”.

 I want login.jsp to work in https only.

The cleanest solution is probably to create two separate virtual hosts, 
because you want the http vs https to act like different sites.

The configuration would look something like:

resin ...
cluster id=
  ...
  host id=hostname
 ... !-- port 80 --
  /host

  host id=hostname:443
 !-- ssl --
  /host

-- Scott

  

  

 All the Best,

 Abdalmonem Tharwat Galila

 System Engineer ,

 Technical Resources Department.

 Ministry of Communications  Information Technology

 Office Tel.: +2 02 35341582 - +2 02 35341300

 Mobile: +2 010 0049068

 Fax : +2 02 35370537

 Website: http:\\www.mcit.gov.eg http://www.mcit.gov.eg/

 E-mail: agal...@mcit.gov.eg mailto:agal...@mcit.gov.eg

  

 

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



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