1 2 3 Previous Next 36 Replies Latest reply on Aug 5, 2013 4:01 PM by amiller Go to original post
      • 15. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
        john.genoese

        Same result.

         

        <?xml version="1.0" encoding="UTF-8"?>

        <!-- Persistence deployment descriptor for dev profile -->

        <persistence xmlns="http://java.sun.com/xml/ns/persistence"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"

            version="1.0">

            <persistence-unit name="waimap_pu" transaction-type="JTA">

                <provider>org.hibernate.ejb.HibernatePersistence</provider>

                <jta-data-source>java:jboss/datasources/waimap_ds</jta-data-source>

                <properties>

                    <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />

                    <property name="hibernate.hbm2ddl.auto" value="validate" />

                    <property name="hibernate.show_sql" value="true" />

                    <property name="hibernate.format_sql" value="true" />

                    <property name="jboss.entity.manager.factory.jndi.name"

                        value="java:app/waimap_puEntityManagerFactory" />

                    <property name="hibernate.default_schema" value="waimap" />

                    <property name="hibernate.listeners.envers.autoRegister" value="false"/>

                    <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled" />

                    <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled" />

                    <property name="jboss.as.jpa.managed" value="false" />

                </properties>

            </persistence-unit>

         

        </persistence>

         

        Caused by: java.lang.ClassNotFoundException: org.jboss.as.jpa.hibernate3.infinispan.SharedInfinispanRegionFactory from [Module "deployment.waimap.ear:main" from Service Module Loader]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                ... 14 more

         

        The accidentally duplicated line didn't appear to have any effect.


        • 16. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
          smarlow

          I made a small code change to move the Infinispan dependencies to a different class that shouldn't be called when deploying the jboss-seam-booking.ear (attached to the first message in this forum post.)  Output that I'm getting when doing the app is here.

           

          Code changes (if you want to test against my as7 branch) are here.

           

          Scott

          • 17. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
            smarlow
            • 18. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
              glsilver

              I'm getting the same error when I try to deploy my persistence jar to JBoss 7.1.1, only I'm using a shared hibernate 3 module, as described in the documentation under "Sharing the Hibernate 3.5 or greater JPA persistence provider...". I created an org.hibernate:3 module with the following module.xml as instructed:

               

              <module xmlns="urn:jboss:module:1.0" name="org.hibernate" slot="3">

                  <resources>

                      <resource-root path="hibernate-core-3.6.6.Final.jar"/>

                      <resource-root path="hibernate-commons-annotations-3.2.0.Final.jar"/>

                      <resource-root path="hibernate-entitymanager-3.6.6.Final.jar"/>

                      <resource-root path="javassist-3.12.0.GA.jar"/>

                      <resource-root path="antlr-2.7.6.jar"/> 

                      <resource-root path="commons-collections-3.2.1.jar"/> 

                      <resource-root path="dom4j-1.6.1.jar"/>

                      <!-- Insert other Hibernate 3 jars to be used here -->

                  </resources>

               

                  <dependencies>

                      <module name="org.jboss.as.jpa.hibernate" slot="3"/>

                      <module name="asm.asm"/>

                      <module name="javax.api"/>

                      <module name="javax.persistence.api"/>

                      <module name="javax.transaction.api"/>

                      <module name="javax.validation.api"/>

                                  <module name="org.infinispan"/>

                      <module name="org.javassist"/>

                      <module name="org.slf4j"/>

                  </dependencies>

              </module>

               

              And, in my persistence.xml, I set the jboss.as.jpa.providerModule property to "org.hibernate:3", rather than "hibernate3-bundled".

               

              If I set the property, jboss.as.jpa.managed, to false, as you suggested, my jar deploys without errors, but only because it never loads the persistent unit, so that doesn't work for me. 

              • 19. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                smarlow

                Glen,

                 

                Probably would be better if you  start a new discussion here

                 

                Scott

                • 20. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                  marcob39

                  Hi Glen,

                  I am facing the same problem, sorry but I think this might be the right place to continue the discussion as I dont see that the problem has been solved.

                  I am following this thread for a couple of days now trying all the suggested solutions to get a very minimalistic ear file deployed with hibernate 3 on as 7.1.1.Final, unfortunately nothing seems to help: either (with  <property name="jboss.as.jpa.managed" value="false" />) persistent unit is not loaded at all or I got the same java.lang.NoClassDefFoundError: org/jboss/as/jpa/hibernate3/infinispan/SharedInfinispanRegionFactory Exception as the other guys in this thread.

                  Is there any running/deployable example app using hibernate3 on as7.1.1 respectivley any bug fix release planned?

                   

                  These are the files that I tried out in every possible combination, I even commented out all infinispan dependency occurrences in all module.xml files nothing helped

                   

                  persistence.xml

                  <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />

                  <property name="hibernate.hbm2ddl.auto" value="validate" />

                  <property name="hibernate.generate_statistics" value="true" />

                  <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled" />

                   

                  jboss-deployment-structure.xml

                  <jboss-deployment-structure>

                      <deployment name="myEar-ear.ear">

                          <exclusions>

                              <module name="org.hibernate" />

                              <module name="org.hibernate.validator" />

                          </exclusions>

                      </deployment>

                  </jboss-deployment-structure>

                   

                  modules/org/jboss/as/jpa/hibernate/3/module.xml

                   

                  <dependencies>

                          <module name="javax.annotation.api"/>

                          <module name="javax.persistence.api"/>

                          <module name="javax.transaction.api"/>

                          <module name="org.hibernate" slot="3" optional="true" services="import"/>  <!-- org.hibernate:3 must be created manually with Hibernate 3 jars -->

                          <module name="org.hibernate.validator"/>

                          <module name="org.infinispan" optional="true"/>

                          <module name="org.jboss.as.clustering.infinispan" optional="true"/>

                          <module name="org.jboss.as.jpa.spi"/>

                          <module name="org.jboss.as.naming"/>

                          <module name="org.jboss.as.server"/>

                          <module name="org.jboss.jandex"/>

                          <module name="org.jboss.logging"/>

                          <module name="org.jboss.msc"/>

                          <module name="org.jboss.vfs"/>

                      </dependencies>

                  • 21. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                    kblurry

                    from https://community.jboss.org/thread/198552

                     

                    This worked for me.Add jboss-deployment-structure.xml with contents. I am using 7.1.1 "Brontes"

                     

                    <jboss-deployment-structure>
                      <deployment>
                        <dependencies>
                          <module name="org.hibernate" />
                          <module name="org.hibernate.envers" />
                          <module name="org.hibernate.validator" />
                        </dependencies>
                        <resources>
                            <resource-root path="hibernate-core-4.0.1.Final.jar"/>
                            <resource-root path="hibernate-commons-annotations-4.0.1.Final.jar"/>
                            <resource-root path="hibernate-entitymanager-4.0.1.Final.jar"/>
                            <resource-root path="hibernate-infinispan-4.0.1.Final.jar"/>
                            <resource-root path="hibernate-envers-4.0.1.Final.jar"/>
                                  <resource-root path="hibernate-validator-4.2.0.Final.jar"/>
                        </resources>
                       </deployment>
                    </jboss-deployment-structure>

                    • 22. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                      mashrur

                      I have got the same problem. Its already an old thread. I see no solution here. And no updates for JBoss 7.1.1 either. Where should we go? How can one rely on this kind of support?!!

                      • 23. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                        smarlow

                        Hibernate 3.3 doesn't contain integration code to work with Infinispan 5.x.  Hibernate 3.6.x does contain Infinispan 4.x integration code but Infinispan 4.x is different than 5.x.  There were attempts made to hack on a solution but nothing came out of that.

                         

                        For local (non-clustered) second level cache use, you could try to use one of the cache providers that work with Hibernate 3.3.  Let us know if that helps or not.

                        • 24. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                          smarlow

                          Also, if you could switch to Hibernate 4.1.x, that works with Infinispan 5.x.

                          • 25. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                            mashrur

                            Hi Scott! Thanks for the prompt response.

                            I updated my hibernate version to 4.1.7 Final.

                            My jboss-deployment-structure looks like this >

                            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

                              <deployment> 

                                <exclusions>

                                <module name="org.apache.log4j" />

                                  <module name="javax.faces.api" slot="main"/>

                                  <module name="com.sun.jsf-impl" slot="main"/>

                                  <module name="org.hibernate"/>      

                                  <module name="org.javassist" />

                                  <module name="org.hibernate.validator" />     

                                  <module name="org.jboss.logging" />

                                  <module name="javax.persistence.api" />

                                  <module name="org.jboss.interceptor" />

                                 </exclusions>   

                              </deployment>

                            </jboss-deployment-structure>

                             

                            So, I expected JBoss would allow me to use my own hibernate. But, since I have removed <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled" /> from persistence.xml, it started to use its own hibernate [4.0.1]. Then from a doc https://docs.jboss.org/author/display/AS71/JPA+Reference+Guide ,

                            Property
                            Purpose
                            jboss.as.jpa.providerModuleis the name of the persistence provider module (default is org.hibernate). Should be hibernate3-bundled if Hibernate 3 jars are in the application archive (adapterModule and adapterClass will automatically be set for hibernate3-bundled).  Should be application, if a persistence provider is packaged with the application.

                            So, I also tried with  <property name="jboss.as.jpa.providerModule" value="application" />

                            Here I am now:

                             

                            10:15:52,923 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

                            10:15:53,338 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                            10:15:53,437 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                            10:15:54,895 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                            10:15:54,895 INFO  [org.xnio] XNIO Version 3.0.3.GA

                            10:15:54,923 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                            10:15:54,938 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

                            10:15:55,043 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                            10:15:55,084 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

                            10:15:55,087 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

                            10:15:55,100 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

                            10:15:55,180 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

                            10:15:55,289 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

                            10:15:55,298 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

                            10:15:55,364 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                            10:15:55,365 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

                            10:15:55,374 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]

                            10:15:55,420 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final

                            10:15:55,613 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA

                            10:15:55,671 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                            10:15:56,226 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory F:\work\softwares\Application Servers\JBoss\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\standalone\deployments

                            10:15:56,370 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found com.misl.treasury.ui.war in deployment directory. To trigger deployment create a file called com.misl.treasury.ui.war.dodeploy

                            10:15:57,113 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on localhost/127.0.0.1:4447

                            10:15:57,136 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

                            10:15:57,139 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:9999

                            10:15:57,304 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                            10:15:57,338 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "com.misl.treasury.ui.war"

                            10:16:07,333 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'

                            10:16:07,337 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'

                            10:16:07,382 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for persistenceUnit

                            10:16:07,896 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment com.misl.treasury.ui.war

                            10:16:08,759 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016005: Starting Services for CDI deployment: com.misl.treasury.ui.war

                            10:16:08,882 INFO  [org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900 1.1.5 (AS71)

                            10:16:09,237 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011402: Starting Persistence Unit Service 'com.misl.treasury.ui.war#persistenceUnit'

                            10:16:09,355 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-6) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                            10:16:09,362 INFO  [org.hibernate.Version] (MSC service thread 1-6) HHH000412: Hibernate Core {4.0.1.Final}

                            10:16:09,365 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-6) HHH000206: hibernate.properties not found

                            10:16:09,368 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-6) HHH000021: Bytecode provider name : javassist

                            10:16:09,385 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-6) HHH000204: Processing PersistenceUnitInfo [

                                      name: persistenceUnit

                                      ...]

                            10:16:09,679 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: com.misl.treasury.domain.models.deals.NostroMsdDeal

                            10:16:09,683 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: com.misl.treasury.domain.models.deals.VostroDeal

                            10:16:09,687 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: com.misl.treasury.domain.models.deals.NostroMtdrDeal

                            10:16:09,694 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: com.misl.treasury.domain.models.deals.BorrowingDeal

                            10:16:09,749 WARN  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-6) HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections

                            10:16:09,818 ERROR [stderr] (MSC service thread 1-6) log4j:ERROR Could not find value for key log4j.appender.A1

                             

                             

                            10:16:09,820 ERROR [stderr] (MSC service thread 1-6) log4j:ERROR Could not instantiate appender named "A1".

                             

                             

                            10:16:09,867 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.persistenceunit."com.misl.treasury.ui.war#persistenceUnit": org.jboss.msc.service.StartException in service jboss.persistenceunit."com.misl.treasury.ui.war#persistenceUnit": 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_23]

                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]

                                      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

                            Caused by: javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory

                                      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                                      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

                            Caused by: org.hibernate.HibernateException: Could not instantiate dialect class

                                      at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:82)

                                      at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:64)

                                      at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:176)

                                      at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                                      at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                                      at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                                      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

                                      at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

                                      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

                                      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

                                      at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

                                      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

                                      ... 9 more

                            Caused by: java.lang.ClassCastException: org.hibernate.dialect.Oracle10gDialect cannot be cast to org.hibernate.dialect.Dialect

                                      at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:73)

                                      ... 20 more

                             

                             

                            10:16:09,912 INFO  [org.jboss.as] (MSC service thread 1-5) JBAS015951: Admin console listening on http://127.0.0.1:9990

                            10:16:09,915 ERROR [org.jboss.as] (MSC service thread 1-5) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 17517ms - Started 363 of 855 services (414 services failed or missing dependencies, 77 services are passive or on-demand)

                            10:16:10,120 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "com.misl.treasury.ui.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"com.misl.treasury.ui.war#persistenceUnit\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"com.misl.treasury.ui.war#persistenceUnit\": Failed to start service"}}

                            10:16:10,577 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment com.misl.treasury.ui.war in 456ms

                            10:16:10,582 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                            JBAS014777:   Services which failed to start:      service jboss.persistenceunit."com.misl.treasury.ui.war#persistenceUnit": org.jboss.msc.service.StartException in service jboss.persistenceunit."com.misl.treasury.ui.war#persistenceUnit": Failed to start service

                             

                             

                            10:16:10,593 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"com.misl.treasury.ui.war#persistenceUnit\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"com.misl.treasury.ui.war#persistenceUnit\": Failed to start service"}}}}

                            • 26. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                              smarlow

                              No, either update the as7/modules/org/hibernate/main jars + module.xml or use the Hibernate 4.x version included in that folder.  I want to address the issue that prevents you from bundling the Hibernate 4.1.7 jars with your app but haven't gotten to it yet.

                              • 27. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                                mashrur

                                Updated my version to 4.0.1.Final. Nothing changes.

                                By the way, why should we alaways try to hack rather than follow a formal prescribed way? There should be a way to use my own hibernate bundles, whatever version I like, within my app. JBoss seems too much nosy on this.

                                • 28. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                                  smarlow

                                  Updated my version to 4.0.1.Final. Nothing changes.

                                  Did you update your jboss-deployment-structure.xml (stop excluding the Hibernate module) + persistence.xml files (remove the jboss.as.jpa.providerModule)? 

                                   

                                   

                                  By the way, why should we alaways try to hack rather than follow a formal prescribed way? There should be a way to use my own hibernate bundles, whatever version I like, within my app. JBoss seems too much nosy on this.

                                  If we added Infinispan integration code and other code changes (e.g. JPA 2.0 compliance, using the JBoss logging framework), the result would be very similar to what you get in Hibernate 4.1.x. 

                                  • 29. Re: CNFE: InfinispanRegionFactory in app. using Hibernate 3.3 on AS 7.1.1. Bug?
                                    pgmjsd

                                    This thread seemed to have veered off course from the original question about Hibernate 3.3 and JBoss AS 7.1.1

                                     

                                    Was there any resolution?  I see https://issues.jboss.org/browse/AS7-4313 was resolved in 7.1.2.Final (EAP), but that is not available in the JBoss maven repository for some reason.