3 Replies Latest reply on Feb 21, 2012 10:41 AM by Dominik Grupp

    Persistence error after migration from tomcat

    Dominik Grupp Newbie

      Hello,

       

      after getting AS7 and the quickstarts up and running I wonder where I can continue reading other than https://docs.jboss.org/author/display/AS71/Documentation. I am in search for documentation which e.g. explains why in the quickstart examples no web.xml was necessary or what are the specifics of using hibernate with AS7.

       

      After migrating my multimodule project from tomcat I cannot deploy it on AS7 due to the below error message. Looks like something is missing in persistence.xml - where can I find information on what exactly it is (name, content,...)?

       

      08:45:36,103 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.persistenceunit."jatpresent.war#jatPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."jatpresent.war#jatPU": Failed to start service
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
      Caused by: java.lang.UnsupportedOperationException: The application must supply JDBC connections
      at org.hibernate.service.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:62)
      at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
      at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:146)
      at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:460)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)
      at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      ... 3 more

      08:45:36,400 INFO  [org.jboss.as.server] (management-handler-threads - 7) JBAS015870: Deploy of deployment "jatpresent.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"jatpresent.war#jatPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jatpresent.war#jatPU\": Failed to start service"}}

       

      Regards,

       

      Michael