8 Replies Latest reply on Mar 18, 2016 3:35 AM by krupa3884

    Using infinispan in websphere application server

    krupa3884

      Hi,

       

      We have bundled infinispan  7.2.5 minimal version's jars inside our application WAR as we want to use infinispan cache in embedded mode.

      This works fine when application works on jboss.

      However, when application is deployed on IBM websphere 8.5 application server, we are getting below errors while starting the application-

       

      1. Caused by: java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource
      2. at java.net.URLClassLoader.findClass(URLClassLoader.java:599)
      3. at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:198)
      4. at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:711)
      5. at java.lang.ClassLoader.loadClass(ClassLoader.java:688)
      6. at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:113)
      7. at java.lang.ClassLoader.loadClass(ClassLoader.java:658)
      8. at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
      9. at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
      10. at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:583)
      11. at java.lang.ClassLoader.loadClass(ClassLoader.java:658)
      12. ... 59 more

       

      For this, I tried putting c3p0-0.9.2.1.jar inside WAR after which got next error as below-

       

      Caused by: java.lang.ClassNotFoundException: org.jboss.logmanager.Logger

      at java.net.URLClassLoader.findClass(URLClassLoader.java:599)

      at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:198)

      at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:711)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:688)

      at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:113)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:658)

      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)

      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)

      at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:583)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:658)

      ... 59 more

       

      For this, I added jboss-logmanager-1.2.2.GA.jar inside WAR and got next error-

       

           Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LocationAwareLogger

      at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:110)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:658)

      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)

      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)

      at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:583)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:658)

      ... 59 more

       

      For this I added slf4j-api-1.7.13.jar and then got next error-

       

       

      [3/8/16 12:01:19:310 IST] 00000066 AnnotatedElem E AnnotatedElementFactory error Unable to create AnnotatedType for class : [org.infinispan.persistence.jpa.JpaStore$1]. Exception cause : [java.lang.ClassNotFoundException: org.hibernate.Session]

      java.lang.NoClassDefFoundError: org.hibernate.Session

      at java.lang.Class.getDeclaredMethodsImpl(Native Method)

      at java.lang.Class.getDeclaredMethods(Class.java:702)

      at org.apache.webbeans.util.SecurityUtil$PrivilegedActionForClass.run(SecurityUtil.java:137)

      at java.security.AccessController.doPrivileged(AccessController.java:229)

      at org.apache.webbeans.util.SecurityUtil.doPrivilegedGetDeclaredMethods(SecurityUtil.java:84)

      at org.apache.webbeans.portable.AnnotatedElementFactory.newAnnotatedType(AnnotatedElementFactory.java:101)

      at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:478)

      at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)

      at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)

      at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)

      at com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)

      at com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)

      at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)

      at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)

      at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)

      at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)

      at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)

      at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)

      at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)

      at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)

      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1170)

      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)

      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)

      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)

      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:769)

      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2172)

      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)

      at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)

      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)

      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)

      at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)

      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1783)

      Caused by: java.lang.ClassNotFoundException: org.hibernate.Session

      at java.net.URLClassLoader.findClass(URLClassLoader.java:599)

      at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:198)

      at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:711)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:688)

      at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:113)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:658)

      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)

      at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)

      at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:583)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:658)

      ... 33 more

       

      I want to understand how to use infinispan embedded jars inside application WAR inside Websphere?

       

      (Note- if I remove infinispan-embedded-7.2.5.Final.jar out of WAR and map it to the EAR as a references shared library by placing it somewhere outside EAR, application and caching works fin without getting any of above errors.)

        • 1. Re: Using infinispan in websphere application server
          nadirx

          I assume you are not use maven. Could you please list the JARs you are using as well as the configuration. I'd not use c3p0 if possible but rely on your container's managed datasource instead.

          • 2. Re: Using infinispan in websphere application server
            krupa3884

            Yes. I am not using maven.

            Below is the list of jars from infinispan embedded suite which are put inside our application WAR.

             

            asm-2.2.3.jar

            asm-commons-2.2.3.jar

            asm-tree-2.2.3.jar

            forms_rt-6.0.5.jar

            cache-api-1.0.0.jar

            forms-1.0.7.jar

            jdom-1.0.jar

            log4j-1.2.16.jar

            jboss-transaction-api_1.1_spec-1.0.1.Final.jar

            infinispan-embedded-7.2.5.Final.jar

            infinispan-embedded-query-7.2.5.Final.jar     

             

            Apart from above jars, we have below jars and some more jars having only application specific classes.           

             

            ant.jar

            bcmail-jdk14-130.jar

            bcprov-jdk14-130.jar

            bctsp-jdk14-130.jar

            catalina.jar

            com.ibm.ws.portletcontainer.jar

            commonj-twm.jar

            commons-beanutils-1.7.0.jar

            commons-codec-1.3.jar

            commons-collections-3.2.jar

            commons-configuration-1.4.jar

            commons-dbcp-1.4.jar

            commons-digester-1.8.jar.

            commons-el.jar

            commons-io-1.4.jar

            commons-lang-2.3.jar

            commons-logging-1.1.1.jar

            commons-pool-1.5.jar

            ConfigParser.jar

            cssparser-0.9.5.jar

            css-validator.jar

            disruptor-3.2.0.jar

            dom4j-1.6.jar

            el-api.jar

            hk2-api-2.4.0-b12.jar

            hk2-locator-2.4.0-b12.jar

            hk2-utils-2.4.0-b12.jar

            htmlparser.jar

            itext-2.1.5.jar

            j2ee.jar

            jasper.jar

            JasperAllFonts.jar

            jasper-el.jar

            jasperreports-3.7.5.jar

            javax.annotation-api-1.2.jar

            javax.inject-2.4.0-b12.jar

            javax.ws.rs-api-2.0.1.jar

            jcommon-1.0.15.jar

            jdom.jar

            jersey-client.jar

            jersey-container-servlet-core.jar

            jersey-guava-2.18.jar

            jersey-media-jaxb.jar

            jersey-server.jar

            jfreechart-1.0.13.jar

            json.jar

            jsp-api.jar

            jxl-2.6.10.jar

            jtidy-r938.jar

            log4j-api-2.3.jar

            log4j-core-2.3.jar

            mx4j.jar

            org.eclipse.core.runtime_3.3.100.v20070530.jar

            org.eclipse.equinox.common_3.3.0.v20070426.jar

            org.eclipse.jdt.core_3.2.3.v_686_R32x.jar

            org.eclipse.osgi_3.3.0.v20070530.jar

            org.hamcrest.core_1.1.0.jar

            PD.jar

            quartz-all-1.6.0.jar

            portlet-api-2.0.jar

            radien-5.0.jar

            relaxngDatatype.jar

            sac.jar

            serializer.jar

            servlet-api.jar

            stcommsrvrtk.jar

            tomcat-coyote.jar

            tomcat-juli.jar

            validation-api-1.1.0.Final.jar

            velocity-1.5.jar

            wp.auth.base.jar

            wp.auth.cmd.jar

            wp.base.jar

            wp.model.api.jar

            wp.pe.api.standard.jar

            wsdl4j.jar

            xalan-2.7.0-2000-11-27.jar

            xercesImpl.jar

            xml-apis.jar

            xmleditor.jar

            xmlpull-1.1.3.1.jar

            xmleditor.jar

            xpp3_min-1.1.4c.jar

            xsom.jar

            xstream-1.4.7.jar

             

            Can you please let me know exactly what configuration I need to share with you?

            Below is the cache names configuration we have used-

             

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

            <infinispan

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

                  xsi:schemaLocation="urn:infinispan:config:7.2 http://www.infinispan.org/schemas/infinispan-config-7.2.xsd"

                  xmlns="urn:infinispan:config:7.2">

             

             

             

             

            <jgroups>

                  <stack-file name="udp" path="udp.xml"/>

                

               </jgroups>

              

               <cache-container >

              

               <transport stack="udp" cluster="infinispan-cluster"  node-name="Node-A" />

               <!--  <local-cache name="TableCache">

                    <eviction

                       max-entries="5000"

                       strategy="FIFO"

                    />

                    <expiration

                       interval="500000"

                       lifespan="600000000"

                       max-idle="100000000"

                    />

               </local-cache>-->

              

              

               <invalidation-cache name="UserLevelTableCache" mode="ASYNC">

                     <eviction

                       max-entries="5000"

                       strategy="FIFO"

                    />

                    <expiration

                       interval="500000"

                       lifespan="600000"

                       max-idle="100000"

                    />

                    </invalidation-cache>

                   

                  <!--  <distributed-cache name="UserLevelTableCache" mode="ASYNC" owners="2">

                      <eviction

                        max-entries="5000"

                        strategy="FIFO"

                     />

                     <expiration

                        interval="5000"

                        lifespan="60000"

                        max-idle="10000"

                    />

                   </distributed-cache>-->

              <invalidation-cache name="BankLevelCache" mode="ASYNC">

                     <eviction

                       max-entries="5000"

                       strategy="FIFO"

                    />

                    <expiration

                       interval="500000"

                       lifespan="600000000000"

                       max-idle="10000000000"

                    />

               </invalidation-cache>

               <invalidation-cache name="UserProfileLevelCache" mode="ASYNC">

                     <eviction

                       max-entries="5000"

                       strategy="FIFO"

                    />

                    <expiration

                       interval="40000000"

                       lifespan="800000000000"

                       max-idle="90000000000"

                    />

               </invalidation-cache>

              

               

              

              

             

             

              

              

                </cache-container>

            </infinispan>

            • 3. Re: Using infinispan in websphere application server
              galder.zamarreno

              > Caused by: java.lang.ClassNotFoundException: org.hibernate.Session

               

              ^ Seems like you have hibernate jar file missing?    

              • 4. Re: Using infinispan in websphere application server
                krupa3884

                Yes. We dont have hibernat jar inside the WAR as our application does not need it. Hibernate jar is also not part of infinispan minimal suite which we are using.

                Do we need to explicitly add it in our WAR when using infinispan on websphere? What all such jars/additional chnages/config are required when using infinispan embedded cache on websphere?

                 

                Thanks,

                Krupa

                • 5. Re: Using infinispan in websphere application server
                  sannegrinovero

                  The JPACacheStore requires Hibernate ORM

                  • 6. Re: Using infinispan in websphere application server
                    krupa3884

                    Included hibernate-3.0.1.jar .

                    Getting below error post that-

                    [3/17/16 12:39:09:627 IST] 00000067 BeansDeployer E BeansDeployer deploy

                                                     java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException

                      at org.apache.webbeans.portable.AnnotatedElementFactory.newAnnotatedType(AnnotatedElementFactory.java:141)

                      at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:478)

                      at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)

                      at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)

                      at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)

                      at com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)

                      at com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)

                      at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)

                      at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)

                      at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)

                      at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)

                      at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)

                      at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)

                      at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)

                      at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)

                      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1170)

                      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)

                      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)

                      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)

                      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:769)

                      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2172)

                      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)

                      at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

                      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)

                      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)

                      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)

                      at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)

                      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1783)

                    Caused by: java.lang.ArrayIndexOutOfBoundsException

                      at org.apache.webbeans.portable.AbstractAnnotatedCallable.setAnnotatedParameters(AbstractAnnotatedCallable.java:66)

                      at org.apache.webbeans.portable.AnnotatedConstructorImpl.<init>(AnnotatedConstructorImpl.java:56)

                      at org.apache.webbeans.portable.AnnotatedElementFactory.newAnnotatedType(AnnotatedElementFactory.java:117)

                      ... 27 more

                     

                    What must be wrong here. Also, is there any documentation to refer for using infinispan on websphere?

                    • 7. Re: Using infinispan in websphere application server
                      sannegrinovero

                      Hi,

                      Hibernate 3 is very old and no longer maintained.

                      As a general rule, do not expect that any version of a library will be compatible. Infinispan 7.2.5 was released and tested with version 4.3.8.Final of Hibernate ORM; to find out I checked the sources of that tag on github:

                       

                      https://github.com/infinispan/infinispan/blob/7.2.5.Final/bom/pom.xml#L69

                       

                      That generally means that any Hibernate ORM version 4.3.x should work, but for example 4.2.0.Final and 5.0.0.Final will not be compatible.

                       

                      Also remember: Hibernate ORM 4.3.8.Final will also have dependencies; the good news is that we include them all in the distributions: Hibernate - Browse /hibernate4/4.3.8.Final at SourceForge.net

                       

                       

                      I don't know if the ArrayIndexOutOfBoundsException relates to the Hibernate version problem or if that is a different problem; you would need to share a larger stacktrace, but please fix the Hibernate dependencies first.

                       

                      About having some WebSphere documentation: personally I don't know. Other people on this forum do test it for sure: I would recommend to open a new question so that they might see your question?

                      • 8. Re: Using infinispan in websphere application server
                        krupa3884

                        Hi,

                        I removed Hibernate 3 and included hibernate hibernate-core-4.3.8.Final.jar downloaded from Hibernate - Browse /hibernate4/4.3.8.Final at SourceForge.net. However, the arrayindexoutofboundexception still persists.

                         

                        below is the stacktrace containing error-

                        [3/18/16 12:27:13:374 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.baseEvent field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:378 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.beanManager field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:378 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.baseEvent field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:379 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.beanManager field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:379 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.baseEvent field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:380 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.beanManager field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:380 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.baseEvent field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:380 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.beanManager field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:383 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.baseEvent field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:383 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.beanManager field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:384 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.baseEvent field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:384 IST] 00000065 AbstractInjec W   CWNEN0040W: The org.infinispan.cdi.event.AbstractEventBridge.beanManager field or method was configured to be injected multiple times.

                        [3/18/16 12:27:13:388 IST] 00000065 webapp        I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web Module: FEBAWeb.war.

                        [3/18/16 12:27:13:410 IST] 00000065 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key default_host/corp

                        [3/18/16 12:27:14:160 IST] 00000065 WebContainerL I WebContainerLifecycle startApplication OpenWebBeans Container is starting...

                        [3/18/16 12:27:20:953 IST] 00000065 BeansDeployer E BeansDeployer deploy

                                                         java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException

                          at org.apache.webbeans.portable.AnnotatedElementFactory.newAnnotatedType(AnnotatedElementFactory.java:141)

                          at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:478)

                          at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)

                          at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)

                          at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)

                          at com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)

                          at com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)

                          at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)

                          at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)

                          at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)

                          at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)

                          at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)

                          at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)

                          at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)

                          at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)

                          at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1170)

                          at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)

                          at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)

                          at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)

                          at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:769)

                          at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2172)

                          at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)

                          at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

                          at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)

                          at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)

                          at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)

                          at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)

                          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1783)

                        Caused by: java.lang.ArrayIndexOutOfBoundsException

                          at org.apache.webbeans.portable.AbstractAnnotatedCallable.setAnnotatedParameters(AbstractAnnotatedCallable.java:66)

                          at org.apache.webbeans.portable.AnnotatedConstructorImpl.<init>(AnnotatedConstructorImpl.java:56)

                          at org.apache.webbeans.portable.AnnotatedElementFactory.newAnnotatedType(AnnotatedElementFactory.java:117)

                          ... 27 more

                         

                         

                        [3/18/16 12:27:20:974 IST] 00000065 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on E:\WAS8.5\AppSrv27\logs\ffdc\server1_abda9503_16.03.18_12.27.20.9633389621904955671959.txt com.ibm.ws.webcontainer.webapp.WebGroup 131

                        [3/18/16 12:27:21:144 IST] 00000065 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on E:\WAS8.5\AppSrv27\logs\ffdc\server1_abda9503_16.03.18_12.27.21.1402250395763509985057.txt com.ibm.ws.webbeans.services.JCDIWebListener.contextDestroyed() 28

                        [3/18/16 12:27:21:145 IST] 00000065 webapp        E com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0015E: Failure to initialize Web application FEBAWeb.war

                         

                        We dont get this error if infinispan-embedded-7.2.5.Final.jar is removed from lib folder inside our WAR and linked to the EAR as shared library by placing it in some other location.