0 Replies Latest reply on Oct 15, 2015 2:22 AM by suraj sharma

    Infinispan ClassNotFoundException while using hibernate3-bundled jars on Jboss-7.1.1

    suraj sharma Newbie

      I am migrating my application from Jboss 5.1.0 GA to JBoss 7.1.1 using hibernate3 bundeled jars. While starting the server I am getting the below Exception

       

      11:35:39,577 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      11:35:39,812 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      11:35:39,920 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      11:35:40,756 INFO  [org.xnio] XNIO Version 3.0.3.GA

      11:35:40,756 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      11:35:40,765 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      11:35:40,774 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      11:35:40,793 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      11:35:40,798 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      11:35:40,816 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      11:35:40,823 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      11:35:40,840 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

      11:35:40,856 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service

      11:35:40,859 INFO  [org.jboss.as.security] (MSC service thread 1-4) JBAS013100: Current PicketBox version=4.0.7.Final

      11:35:40,883 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      11:35:40,899 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      11:35:40,917 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]

      11:35:40,929 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      11:35:41,043 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      11:35:41,090 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA

      11:35:41,130 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.driver.OracleDriver (version 11.2)

      11:35:41,423 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      11:35:41,424 WARN  [org.jboss.as.messaging] (MSC service thread 1-1) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal

      11:35:41,455 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory D:\jboss-as-7.1.1.Final\standalone\deployments

      11:35:41,459 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment sampleds-ear.ear

      11:35:41,461 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on localhost/127.0.0.1:4447

      11:35:41,499 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-1) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=D:\jboss-as-7.1.1.Final\standalone\data\messagingjournal,bindingsDirectory=D:\jboss-as-7.1.1.Final\standalone\data\messagingbindings,largeMessagesDirectory=D:\jboss-as-7.1.1.Final\standalone\data\messaginglargemessages,pagingDirectory=D:\jboss-as-7.1.1.Final\standalone\data\messagingpaging)

      11:35:41,506 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-1) Waiting to obtain live lock

      11:35:41,532 INFO  [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-1) Using NIO Journal

      11:35:41,573 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/sampledsDatasource]

      11:35:41,582 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      11:35:41,593 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:/sampledsDatasource]

      11:35:41,667 INFO  [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-1) Waiting to obtain live lock

      11:35:41,669 INFO  [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-1) Live Server Obtained live lock

      11:35:41,975 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:9999

      11:35:42,003 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found sampleds-ear.ear in deployment directory. To trigger deployment create a file called sampleds-ear.ear.dodeploy

      11:35:43,335 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-1) Started Netty Acceptor version 3.2.5.Final-a96d88c localhost:5455 for CORE protocol

      11:35:43,338 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-1) Started Netty Acceptor version 3.2.5.Final-a96d88c localhost:5445 for CORE protocol

      11:35:43,341 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-1) Server is now live

      11:35:43,342 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-1) HornetQ Server version 2.2.13.Final (HQ_2_2_13_FINAL_AS7, 122) [6c2e272e-6ff6-11e5-bdc1-7427ead4dc9e]) started

      11:35:43,345 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) trying to deploy queue jms.queue.ExpiryQueue

      11:35:43,362 INFO  [org.jboss.as.messaging] (MSC service thread 1-7) JBAS011601: Bound messaging object to jndi name java:/jms/queue/ExpiryQueue

      11:35:43,376 INFO  [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory

      11:35:43,379 INFO  [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:/RemoteConnectionFactory

      11:35:43,381 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-3) trying to deploy queue jms.topic.testTopic

      11:35:43,386 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-6) JBAS010406: Registered connection factory java:/JmsXA

      11:35:43,395 INFO  [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-6) HornetQ resource adaptor started

      11:35:43,396 INFO  [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-6) IJ020002: Deployed: file://RaActivatorhornetq-ra

      11:35:43,399 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-5) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]

      11:35:43,427 INFO  [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name java:/topic/test

      11:35:43,428 INFO  [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/topic/test

      11:35:43,430 INFO  [org.jboss.as.messaging] (MSC service thread 1-1) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory

      11:35:43,432 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-4) trying to deploy queue jms.queue.DLQ

      11:35:43,435 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:/jms/queue/DLQ

      11:35:43,462 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "sampleds-ear.ear"

      11:35:43,482 WARN  [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service thread 1-5) loader-repository element in jboss-app.xml is deprecated and has been ignored

      11:35:47,253 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry iText-toolbox.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/sampleds-ear.ear/lib/itext.jar"  does not point to a valid jar for a Class-Path reference.

      11:35:47,256 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry iText-toolbox-2.1.2.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/sampleds-ear.ear/lib/itext.jar"  does not point to a valid jar for a Class-Path reference.

      11:35:47,259 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry bcmail-jdk14-138.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/sampleds-ear.ear/lib/itext.jar"  does not point to a valid jar for a Class-Path reference.

      11:35:47,262 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry bcprov-jdk14-138.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/sampleds-ear.ear/lib/itext.jar"  does not point to a valid jar for a Class-Path reference.

      11:35:47,270 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "sampleds.war"

      11:35:47,270 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "sampleds-gen.jar"

      11:35:47,270 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "jboss-seam.jar"

      11:35:47,270 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "sampleds-ejb.jar"

      11:35:47,433 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for sampleds

      11:35:47,690 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("org.apache.log4j:main") which may be changed or removed in future versions without notice.

      11:35:47,693 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("org.apache.log4j:main") which may be changed or removed in future versions without notice.

      11:35:47,698 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      11:35:47,701 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      11:35:47,705 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      11:35:47,708 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      11:35:47,712 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("org.jboss.as.jpa.hibernate:3") which may be changed or removed in future versions without notice.

      11:35:47,715 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.sampleds-ear.ear" is using a private module ("org.jboss.as.jpa.hibernate:3") which may be changed or removed in future versions without notice.

      11:35:47,716 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5) JBAS018567: Deployment "deployment.sampleds-ear.ear.sampleds.war" is using a private module ("org.jboss.as.jpa.hibernate:3") which may be changed or removed in future versions without notice.

      11:35:47,721 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5) JBAS018567: Deployment "deployment.sampleds-ear.ear.sampleds.war" is using a private module ("org.jboss.as.jpa.hibernate:3") which may be changed or removed in future versions without notice.

      11:35:47,724 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5) JBAS018567: Deployment "deployment.sampleds-ear.ear.sampleds.war" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      11:35:47,727 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5) JBAS018567: Deployment "deployment.sampleds-ear.ear.sampleds.war" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.

      11:35:47,801 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named EjbSynchronizations in deployment unit subdeployment "jboss-seam.jar" of deployment "sampleds-ear.ear" are as follows:

       

       

        java:global/sampleds-ear/jboss-seam/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

        java:app/jboss-seam/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

        java:module/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

        java:global/sampleds-ear/jboss-seam/EjbSynchronizations

        java:app/jboss-seam/EjbSynchronizations

        java:module/EjbSynchronizations

       

       

      11:35:47,806 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named TimerServiceDispatcher in deployment unit subdeployment "jboss-seam.jar" of deployment "sampleds-ear.ear" are as follows:

       

       

        java:global/sampleds-ear/jboss-seam/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

        java:app/jboss-seam/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

        java:module/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

        java:global/sampleds-ear/jboss-seam/TimerServiceDispatcher

        java:app/jboss-seam/TimerServiceDispatcher

        java:module/TimerServiceDispatcher

       

       

      11:35:49,133 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named UserDataImpl in deployment unit subdeployment "sampleds-ejb.jar" of deployment "sampleds-ear.ear" are as follows:

       

       

        java:global/sampleds-ear/sampleds-ejb/UserDataImpl!com.sampleds.UserData

        java:app/sampleds-ejb/UserDataImpl!com.sampleds.UserData

        java:module/UserDataImpl!com.sampleds.UserData

        java:global/sampleds-ear/sampleds-ejb/UserDataImpl

        java:app/sampleds-ejb/UserDataImpl

        java:module/UserDataImpl

       

       

      11:35:49,142 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named AdminDataImpl in deployment unit subdeployment "sampleds-ejb.jar" of deployment "sampleds-ear.ear" are as follows:

       

       

        java:global/sampleds-ear/sampleds-ejb/AdminDataImpl!com.sampleds.AdminData

        java:app/sampleds-ejb/AdminDataImpl!com.sampleds.AdminData

        java:module/AdminDataImpl!com.sampleds.AdminData

        java:global/sampleds-ear/sampleds-ejb/AdminDataImpl

        java:app/sampleds-ejb/AdminDataImpl

        java:module/AdminDataImpl

       

       

      11:35:49,164 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named MultiDataService in deployment unit subdeployment "sampleds-ejb.jar" of deployment "sampleds-ear.ear" are as follows:

      11:35:49,180 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.jboss.as.jpa.hibernate3.infinispan.InfinispanRegionFactory in Module "org.jboss.as.jpa.hibernate:3" from local module loader @46b8c8e6 (roots: D:\jboss-as-7.1.1.Final\modules): java.lang.LinkageError: Failed to link org/jboss/as/jpa/hibernate3/infinispan/InfinispanRegionFactory (Module "org.jboss.as.jpa.hibernate:3" from local module loader @46b8c8e6 (roots: D:\jboss-as-7.1.1.Final\modules))

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_35]

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_35]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_35]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_35]

        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.as.jpa.hibernate3.HibernatePersistenceProviderAdaptor.<clinit>(HibernatePersistenceProviderAdaptor.java:49)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_35]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_35]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_35]

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_35]

        at java.lang.Class.newInstance0(Class.java:355) [rt.jar:1.6.0_35]

        at java.lang.Class.newInstance(Class.java:308) [rt.jar:1.6.0_35]

        at org.jboss.as.jpa.processor.PersistenceProviderProcessor.deploy(PersistenceProviderProcessor.java:101)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        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]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

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

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

      Caused by: java.lang.NoClassDefFoundError: org/hibernate/cache/infinispan/InfinispanRegionFactory

        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_35]

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_35]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_35]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_35]

        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]

        ... 39 more

      Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.infinispan.InfinispanRegionFactory from [Module "org.jboss.as.jpa.hibernate:3" from local module loader @46b8c8e6 (roots: D:\jboss-as-7.1.1.Final\modules)]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

        ... 45 more

       

       

      11:35:49,224 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.jboss.as.jpa.hibernate3.infinispan.SharedInfinispanRegionFactory in Module "org.jboss.as.jpa.hibernate:3" from local module loader @46b8c8e6 (roots: D:\jboss-as-7.1.1.Final\modules): java.lang.LinkageError: Failed to link org/jboss/as/jpa/hibernate3/infinispan/SharedInfinispanRegionFactory (Module "org.jboss.as.jpa.hibernate:3" from local module loader @46b8c8e6 (roots: D:\jboss-as-7.1.1.Final\modules))

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.as.jpa.hibernate3.HibernatePersistenceProviderAdaptor.<clinit>(HibernatePersistenceProviderAdaptor.java:49)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_35]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_35]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_35]

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_35]

        at java.lang.Class.newInstance0(Class.java:355) [rt.jar:1.6.0_35]

        at java.lang.Class.newInstance(Class.java:308) [rt.jar:1.6.0_35]

        at org.jboss.as.jpa.processor.PersistenceProviderProcessor.deploy(PersistenceProviderProcessor.java:101)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        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]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

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

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

      Caused by: java.lang.NoClassDefFoundError: org/jboss/as/jpa/hibernate3/infinispan/InfinispanRegionFactory

        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_35]

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_35]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_35]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_35]

        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]

        ... 23 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.as.jpa.hibernate3.infinispan.InfinispanRegionFactory from [Module "org.jboss.as.jpa.hibernate:3" from local module loader @46b8c8e6 (roots: D:\jboss-as-7.1.1.Final\modules)]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

        ... 29 more

       

       

      11:35:49,270 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.unit."sampleds-ear.ear".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."sampleds-ear.ear".INSTALL: Failed to process phase INSTALL of deployment "sampleds-ear.ear"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        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]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

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

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

      Caused by: java.lang.NoClassDefFoundError: org/jboss/as/jpa/hibernate3/infinispan/SharedInfinispanRegionFactory

        at org.jboss.as.jpa.hibernate3.HibernatePersistenceProviderAdaptor.<clinit>(HibernatePersistenceProviderAdaptor.java:49)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_35]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_35]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_35]

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_35]

        at java.lang.Class.newInstance0(Class.java:355) [rt.jar:1.6.0_35]

        at java.lang.Class.newInstance(Class.java:308) [rt.jar:1.6.0_35]

        at org.jboss.as.jpa.processor.PersistenceProviderProcessor.deploy(PersistenceProviderProcessor.java:101)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        ... 5 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.as.jpa.hibernate3.infinispan.SharedInfinispanRegionFactory from [Module "org.jboss.as.jpa.hibernate:3" from local module loader @46b8c8e6 (roots: D:\jboss-as-7.1.1.Final\modules)]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

        ... 14 more

       

       

      The below is my jboss-deployment-structure.xml

       

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

        <deployment> 

          <exclusions> 

            <module name="org.hibernate" slot="main"/> 

          </exclusions> 

              <dependencies> 

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

                <module name="org.dom4j" export="true"/> 

                <module name="org.apache.commons.logging" export="true"/> 

                <module name="org.apache.commons.collections" export="true"/> 

                <module name="javax.faces.api" slot="1.2" export="true"/> 

                <module name="com.sun.jsf-impl" slot="1.2" export="true"/> 

                <module name="org.slf4j" export="true"/> 

              </dependencies> 

        </deployment> 

        <sub-deployment name="sampletest.war">  

            <exclusions> 

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

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

                 <module name="org.hibernate" slot="main"/>

                <module name="org.hibernate" slot="main"/>

              </exclusions> 

              <dependencies> 

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

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

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

              </dependencies> 

        </sub-deployment>  

        <sub-deployment name="sampletest-ejb.jar"> 

          <exclusions> 

            <module name="org.hibernate" slot="main"/> 

          </exclusions> 

        </sub-deployment> 

      </jboss-deployment-structure>

       

      And the below is my persistence.xml

       

      <?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="sampletest" >

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

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

       

       

        <properties>

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

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

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

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

        <property name="hibernate.jdbc.batch_size" value="20" />

      <!-- <property name="transaction.flush_before_completion" value="true" /> -->

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

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

        value="java:/sampleEntityManagerFactory" />

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

        </properties>

        </persistence-unit>

      </persistence>

       

      But I am not using infinispan in my project and I dont want to load infispan. I also tried by adding jboss-as-jpa-hibernate3-7.1.1.final to ear lib, still getting the same exception.

       

      Please let me know how can I stop loading infispan classes, since I am not using them in my project.