1 Reply Latest reply on Nov 16, 2011 3:01 PM by el_paso

    jboss, jpa and icefaces

    el_paso Newbie

      Hi, I'm trying to deploy a bundle wich use icefaces2, jpa 2 and connects to the latest mysql server. the problem is that I always get this error:

       

       

      20:44:49,824 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-8) HHH00204:Processing PersistenceUnitInfo [
      name: bead
      ...]
      20:44:50,105 WARN  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-8) HHH00181:No appropriate connection provider encountered, assuming application will be supplying connections
      20:44:50,120 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.persistenceunit."bead.war#bead": org.jboss.msc.service.StartException in service jboss.persistenceunit."bead.war#bead": Failed to start service
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_26]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_26]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_26]
      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: bead] Unable to build EntityManagerFactory
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:908)
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:884)
      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
      at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)
      at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
      ... 3 more
      Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
      at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:97)
      at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:67)
      at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:170)
      at org.hibernate.service.internal.BasicServiceRegistryImpl.configureService(BasicServiceRegistryImpl.java:80)
      at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:145)
      at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:118)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:70)
      at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2253)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2249)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1720)
      at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
      ... 9 more

      20:44:50,355 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "bead.war" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"bead.war#bead\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"bead.war#bead\": Failed to start service"}}
      20:44:50,386 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment bead.war in 44ms
      20:44:50,402 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"bead.war#bead\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"bead.war#bead\": Failed to start service"}}}}

       

       

       

      as I assume I've got problems with the persistence.xml (I'm new in this), but I'm not sure. Please help.