1 2 3 Previous Next 33 Replies Latest reply: Jan 9, 2013 12:34 PM by jjgl7 RSS

    Infinispan Hibernate 2nd level caching not working

    Nick . Novice

      Hi,

           I'm trying to integrated Hibernate and Hibernate 2nd level cache using Infinispan through Jboss modules, for that i have added the following Dependencies in my META-INF/MANIFEST.MF file

       

      Dependencies: org.apache.log4j export, org.slf4j export, javax.jcr export,org.javassist export, org.hibernate export,org.hibernate.infinispan export, org.codehaus.jackson.jackson-mapper-asl export

       

      But when i try to build Hibernate SessionFactory i'm getting the following error.

       

      org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.infinispan.JndiInfinispanRegionFactory]

      11:59:28,139 ERROR [java.lang.RuntimeException] (http-127.0.0.1-127.0.0.1-8080-1) could not instantiate RegionFactory [org.hibernate.cache.infinispan.JndiInfinispanRegionFactory]: org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.infinispan.JndiInfinispanRegionFactory]

                at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:400) [hibernate-core-4.0.0.Final.jar:]

                at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:248) [hibernate-core-4.0.0.Final.jar:]

                at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.0.Final.jar:]

                at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.0.Final.jar:]

                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.0.Final.jar:]

                at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

                at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

                at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

                at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

                at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

                at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:49) [egov-infrastructure.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

                at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85) [ehcache-web-2.0.3.jar:]

                at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86) [ehcache-web-2.0.3.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

                at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.1.0.RELEASE.jar:]

                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.1.0.RELEASE.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.6.Final.jar:]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.CR1-SNAPSHOT.jar:]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.6.Final.jar:]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.6.Final.jar:]

                at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.6.Final.jar:]

                at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.6.Final.jar:]

                at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.6.Final.jar:]

                at java.lang.Thread.run(Thread.java:619) [:1.6.0]

      Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.cache.infinispan.JndiInfinispanRegionFactory]

                at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141) [hibernate-core-4.0.0.Final.jar:]

                at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:383) [hibernate-core-4.0.0.Final.jar:]

                ... 33 more

      Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.cache.infinispan.JndiInfinispanRegionFactory

                at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99) [hibernate-core-4.0.0.Final.jar:]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [:1.6.0]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [:1.6.0]

                at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138) [hibernate-core-4.0.0.Final.jar:]

                ... 34 more

       

       

      Does anybody have any idea why this ClassNotFound is coming even the JBoss_HOME/modules/org/hibernate/infinispan/ is having hibernate-infinispan.jar

       

       

      Thanks

      Nick

        • 1. Re: Infinispan Hibernate 2nd level caching not working
          Brent Douglas Newbie

          Try deleting this lline from your persistence.xml:

           

          <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.infinispan.JndiInfinispanRegionFactory"/>

          • 2. Re: Infinispan Hibernate 2nd level caching not working
            Nick . Novice

            Hi Brent,

                   We are not using persistence.xml but hibernate.cfg.xml and i have tried by removed the same in hibernate.cfg.xml but it gives a different error as below.

             

             

            org.hibernate.cache.NoCachingEnabledException: Second-level cache is not enabled for usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]

            17:17:18,849 ERROR [java.lang.RuntimeException] (http-127.0.0.1-127.0.0.1-8080-3) Second-level cache is not enabled for usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]: org.hibernate.cache.NoCachingEnabledException: Second-level cache is not enabled for usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]

              at org.hibernate.cache.internal.NoCachingRegionFactory.buildEntityRegion(NoCachingRegionFactory.java:68) [hibernate-core-4.0.0.Final.jar:]

              at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:340) [hibernate-core-4.0.0.Final.jar:]

              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.0.Final.jar:]

              at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

              at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

              at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

              at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

              at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:49) [egov-infrastructure.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

              at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85) [ehcache-web-2.0.3.jar:]

              at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86) [ehcache-web-2.0.3.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

              at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.1.0.RELEASE.jar:]

              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.1.0.RELEASE.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.6.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.CR1-SNAPSHOT.jar:]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.6.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.6.Final.jar:]

              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.6.Final.jar:]

              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.6.Final.jar:]

              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.6.Final.jar:]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0]

             

             

             

             

            The following is my cfg after the change u have suggested

             

             

            <hibernate-configuration>

              <session-factory>

             

            <!--

              <property name="hibernate.cache.region.factory_class">org.hibernate.cache.infinispan.JndiInfinispanRegionFactory</property>

              <property name="hibernate.cache.infinispan.cachemanager">java:jboss/infinispan/hibernate</property>

            -->

             

             

              <property name="hibernate.cache.use_second_level_cache">true</property>

              <property name="hibernate.cache.use_query_cache">true</property>

              <property name="hibernate.cache.use_minimal_puts">true</property>

              <property name="hibernate.search.lucene_version">LUCENE_34</property>

              <property name="hibernate.dialect">org.hibernate.dialect.PostgresPlusDialect</property>

              <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>

              <property name="hibernate.transaction.jta.platform">org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform</property>

              <property name="hibernate.transaction.flush_before_completion">true</property>

              <property name="hibernate.transaction.auto_close_session">true</property>

              <property name="hibernate.jdbc.use_streams_for_binary">false</property>

              <property name="hibernate.show.sql">false</property>

              </session-factory>

            </hibernate-configuration>

            • 3. Re: Infinispan Hibernate 2nd level caching not working
              Brent Douglas Newbie

              Sorry, I just assumed you were using jpa. I have no experience with using hibernate directly. Maybe try setting the factory class to org.jboss.as.jpa.hibernate.cache.infinispan.InfinispanRegionFactory which is the default for hibernate 4 jpa.

              • 4. Re: Infinispan Hibernate 2nd level caching not working
                Nick . Novice

                I have tried using org.jboss.as.jpa.hibernate.cache.infinispan.InfinispanRegionFactory and i'm getting the following error

                 

                Caused by: org.hibernate.cache.CacheException: Unable to start region factory

                          at org.hibernate.cache.infinispan.InfinispanRegionFactory.start(InfinispanRegionFactory.java:282) [hibernate-infinispan-4.0.0.Final.jar:]

                          at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:272) [hibernate-core-4.0.0.Final.jar:]

                          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.0.Final.jar:]

                          at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

                          at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

                          at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

                          at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

                          at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

                          ... 24 more

                Caused by: java.lang.NullPointerException

                          at org.hibernate.cache.infinispan.InfinispanRegionFactory.defineGenericDataTypeCacheConfigurations(InfinispanRegionFactory.java:389) [hibernate-infinispan-4.0.0.Final.jar:]

                          at org.hibernate.cache.infinispan.InfinispanRegionFactory.start(InfinispanRegionFactory.java:278) [hibernate-infinispan-4.0.0.Final.jar:]

                 

                 

                 

                 

                When i was trying to do it through JndiInfinispanRegionFactory i noticed few things more....

                 

                1) JBoss is not registring any JNDI with java:jboss/infinispan/hibernate

                 

                2) When i try to put hibernate-infinispan.xxx.jar inside JBOSS_HOME/modules/org/hibernate/main and declared resource root for that jar in module.xml, ClassNotFoundException is not coming.

                 

                Which means there is there something either Hibernate or JBoss Module to take care. Hibernate is using some ClassLoaderImpl to load JndiInfinispanRegionFactory class but its not available in that class loader .

                • 5. Re: Infinispan Hibernate 2nd level caching not working
                  Matt Filion Newbie

                  JBoss 7.1 has the modules not configured quite right. I had to make a couple changes to remove the Class Loading problems.

                  1. [jboss7.1_home]\modules\org\hibernate\infinispan\main\modules.xml add a line within <dependencies> for javax.api, <module name="javax.api"/>
                  2. Within my ear files, jboss-deployment-structure.xml file I added the following dependencies,
                    1. <module name="javax.api" />
                    2. <module name="javax.persistence.api" />
                    3. <module name="org.hibernate" />

                    4. <module name="org.hibernate.infinispan" />

                    5. <module name="org.infinispan" />

                   

                  All that did was reveal a problem where the hibernate cache manager is not ending up on JNDI, or not ending up there on time (race condition). I'm able to use a CacheManager within a MDB using the following so I know cache is loading and ending up on JNDI.

                   

                  MDB Code:

                  @Produces

                  @ApplicationScoped

                  @Resource(lookup = "java:jboss/infinispan/repository_storage")

                  private EmbeddedCacheManager     cacheContainer;

                   

                  Cache definition within standalone.xml:

                  <cache-container name="repository_storage" default-cache="cachedb">

                      <local-cache name="cachedb"/>

                  </cache-container>

                   

                  I wasn't successful getting past the JNDI name issue. I ended up using 7.0 instead and everything seems to be working now.

                  • 6. Re: Infinispan Hibernate 2nd level caching not working
                    Nick . Novice

                    Hi Matt,

                                 I have tried it but didn work for me. We can't think about down grading JBoss AS 7

                    • 7. Re: Infinispan Hibernate 2nd level caching not working
                      Brent Douglas Newbie

                      Nick . wrote:

                       

                      When i was trying to do it through JndiInfinispanRegionFactory i noticed few things more....

                       

                      1) JBoss is not registring any JNDI with java:jboss/infinispan/hibernate

                       

                      Have a look at your standalone.xml. Are you registering it with jndi?

                       

                              <subsystem xmlns="urn:jboss:domain:infinispan:1.1" default-cache-container="cluster">
                                  ...
                                  <cache-container name="hibernate" default-cache="local-query" jndi-name="java:jboss/infinispan/hibernate">
                                      ...
                      
                                  </cache-container> 
                                  ...
                              </subsystem>
                      
                      
                      
                      • 8. Re: Infinispan Hibernate 2nd level caching not working
                        Matt Filion Newbie

                        The CacheManger still cant be found once I add a jndi-name for it. I'm not sure what else to try with JBoss7.1.

                         

                        standard.xml

                        <cache-container name="hibernate" default-cache="local-query" jndi-name="java:jboss/infinispan/hibernate">

                                        <local-cache name="local-query">

                                            <transaction mode="NON_XA"/>

                                            <eviction strategy="LRU" max-entries="10000"/>

                                            <expiration max-idle="100000"/>

                                        </local-cache>

                                        <invalidation-cache mode="SYNC" name="entity">

                                            <transaction mode="NON_XA"/>

                                            <eviction strategy="LRU" max-entries="10000"/>

                                            <expiration max-idle="100000"/>

                                        </invalidation-cache>

                                        <replicated-cache mode="ASYNC" name="timestamps">

                                            <transaction mode="NON_XA"/>

                                            <eviction strategy="NONE"/>

                                        </replicated-cache>

                                    </cache-container>

                         

                        persistence.xml

                         

                                                      <property name="hibernate.cache.region.factory_class"    value="org.hibernate.cache.infinispan.JndiInfinispanRegionFactory" />

                                                      <property name="hibernate.cache.infinispan.cachemanager" value="java:jboss/infinispan/hibernate" />

                         

                        Eception

                        Caused by: org.hibernate.cache.CacheException: Unable to retrieve CacheManager from JNDI [java:jboss/infinispan/hibernate]

                                  at org.hibernate.cache.infinispan.JndiInfinispanRegionFactory.locateCacheManager(JndiInfinispanRegionFactory.java:75)

                                  at org.hibernate.cache.infinispan.JndiInfinispanRegionFactory.createCacheManager(JndiInfinispanRegionFactory.java:64)

                                  at org.hibernate.cache.infinispan.InfinispanRegionFactory.start(InfinispanRegionFactory.java:268)

                                  at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:272)

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

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

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

                                  ... 9 more

                        • 9. Re: Infinispan Hibernate 2nd level caching not working
                          Scott Marlow Master

                          I'm not sure if it will make a difference but it would be good to know if the nightly (AS7) build works any better or not.  The link to download from is here.

                          • 10. Re: Infinispan Hibernate 2nd level caching not working
                            Nick . Novice

                            Hi Brent,

                                         First of all i can't able to test your suggestion to fix JNDI problem with out fixing the ClassNotFound issue.

                             

                            I will update my current scenario.

                             

                            JBoss AS 7 + Hibernate + Infinispan integration is tightly focused on JPA based application, but unfortunalty we are not using JPA. All we have an EAR  with out EJB or JPA but with plain Hibernate, Spring, Struts2.

                             

                            The following is my manifest file to integrate with JBoss provided hibernate module

                             

                            Manifest-Version: 1.0

                            Dependencies: org.apache.log4j export, org.slf4j export, javax.jcr export,org.javassist export,org.infinispan export,org.hibernate.envers export, org.hibernate export, org.hibernate.infinispan export, org.codehaus.jackson.jackson-mapper-asl export

                             

                            With this entry i was getting ClassNotFoundException for org.hibernate.cache.infinispan.JndiInfinispanRegionFactory.

                            I was able to resolved it by editing modules/org/hibernate/main/module.xml file by adding a dependency like below.

                             

                            <dependencies>

                            .....

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

                            ....

                            </dependencies>

                             

                            but now i'm getting a different exception now as follows.

                             

                            17:56:02,893 ERROR [org.egov.infstr.client.filter.HibSessionServletFilter] (http-127.0.0.1-127.0.0.1-8080-2) java.lang.NoClassDefFoundError: javax/naming/NamingException

                            17:56:03,172 ERROR [org.egov.EGOVRuntimeException] (http-127.0.0.1-127.0.0.1-8080-2) javax/naming/NamingException: java.lang.NoClassDefFoundError: javax/naming/NamingException

                                      at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0]

                                      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0]

                                      at java.lang.Class.getConstructor0(Class.java:2699) [:1.6.0]

                                      at java.lang.Class.getConstructor(Class.java:1657) [:1.6.0]

                                      at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:383) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:248) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                      at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                             

                             

                            If this problem get resolved then only i can test for ur suggestion. Please let me know if you have any idea to over come this issue

                            • 11. Re: Infinispan Hibernate 2nd level caching not working
                              Scott Marlow Master

                              Nick,

                               

                              To address the NamingException issue, try adding a dependency on org.jboss.as.naming to your manifest file (module org.jboss.as.jpa.hibernate:4 also includes a dependency on the naming module).

                               

                              Scott

                              • 12. Re: Infinispan Hibernate 2nd level caching not working
                                Nick . Novice

                                Thanks Scott, unfortunatly it didn work out. Even i have tried putting the org.jboss.as.naming in org/hibernate/main/module.xml as a dependency.

                                 

                                asper ur suggestion now my MANIFEST is like below

                                 

                                Manifest-Version: 1.0

                                Dependencies: org.apache.log4j export, org.slf4j export, javax.jcr export,org.jboss.as.naming export, org.javassist export,org.infinispan export,org.hibernate.envers export, org.hibernate export, org.hibernate.infinispan export, org.codehaus.jackson.jackson-mapper-asl export

                                • 13. Re: Infinispan Hibernate 2nd level caching not working
                                  Scott Marlow Master

                                  hmm, I thought you might of needed some additional (internal) classes but I guess not.  If there is more to the exception call stack (perhaps in as7/standalone/log/server.log), can you post it.

                                  • 14. Re: Infinispan Hibernate 2nd level caching not working
                                    Nick . Novice

                                    Since i'm using log level DEBUG its very huge, so i'm posting log scrap.

                                     

                                    21:35:16,543 DEBUG [org.jboss.jca.core.connectionmanager.pool.idle.IdleRemover] (http-127.0.0.1-127.0.0.1-8080-1) Register pool: SemaphoreArrayListManagedConnectionPool@163b[pool=postgresPool] (interval=1800000)

                                     

                                     

                                    21:35:16,543 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http-127.0.0.1-127.0.0.1-8080-1) postgresPool: getConnection(null, null) [0/15]

                                     

                                     

                                    21:35:16,566 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] (queueListenerContainer-1) Initiating transaction commit

                                     

                                     

                                    21:35:16,651 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] (queueListenerContainer-1) Creating new transaction with name [queueListenerContainer]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT

                                     

                                     

                                    21:35:16,651 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) Trying reconnection attempt 0

                                     

                                     

                                    21:35:16,651 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) Trying to connect at the main server using connector :org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0

                                     

                                     

                                    21:35:16,651 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) ClientSessionFactoryImpl received backup update for live/backup pair = org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0 / null but it didn't belong to org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0

                                     

                                     

                                    21:35:16,630 DEBUG [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] (http-127.0.0.1-127.0.0.1-8080-1) Database ->

                                           name : PostgreSQL

                                        version : 9.0.4.14

                                          major : 9

                                          minor : 0

                                     

                                     

                                    21:35:16,651 DEBUG [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] (http-127.0.0.1-127.0.0.1-8080-1) Driver ->

                                           name : PostgreSQL Native Driver

                                        version : PostgreSQL 9.1 JDBC4 (build 901)

                                          major : 9

                                          minor : 1

                                     

                                     

                                    21:35:16,652 DEBUG [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] (http-127.0.0.1-127.0.0.1-8080-1) JDBC version : 4.0

                                     

                                     

                                    21:35:17,829 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] (queueListenerContainer-1) Initiating transaction commit

                                     

                                     

                                    21:35:17,830 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] (queueListenerContainer-1) Creating new transaction with name [queueListenerContainer]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT

                                     

                                     

                                    21:35:17,831 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) Trying reconnection attempt 0

                                     

                                     

                                    21:35:17,831 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) Trying to connect at the main server using connector :org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0

                                     

                                     

                                    21:35:17,831 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) ClientSessionFactoryImpl received backup update for live/backup pair = org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0 / null but it didn't belong to org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0

                                     

                                     

                                    21:35:18,845 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] (queueListenerContainer-1) Initiating transaction commit

                                     

                                     

                                    21:35:18,846 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] (queueListenerContainer-1) Creating new transaction with name [queueListenerContainer]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT

                                     

                                     

                                    21:35:18,846 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) Trying reconnection attempt 0

                                     

                                     

                                    21:35:18,846 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) Trying to connect at the main server using connector :org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0

                                     

                                     

                                    21:35:18,846 DEBUG [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (queueListenerContainer-1) ClientSessionFactoryImpl received backup update for live/backup pair = org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0 / null but it didn't belong to org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0

                                     

                                     

                                    21:35:18,908 INFO  [org.hibernate.dialect.Dialect] (http-127.0.0.1-127.0.0.1-8080-1) HHH000400: Using dialect: org.hibernate.dialect.PostgresPlusDialect

                                     

                                     

                                    21:35:18,920 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (http-127.0.0.1-127.0.0.1-8080-1) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException

                                     

                                     

                                    21:35:18,922 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http-127.0.0.1-127.0.0.1-8080-1) postgresPool: returnConnection(dfb412, false) [1/14]

                                     

                                     

                                    21:35:18,930 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Automatic flush during beforeCompletion(): enabled

                                     

                                     

                                    21:35:18,930 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Automatic session close at end of transaction: enabled

                                     

                                     

                                    21:35:18,930 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) JDBC batch size: 15

                                     

                                     

                                    21:35:18,930 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) JDBC batch updates for versioned data: disabled

                                     

                                     

                                    21:35:18,931 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Scrollable result sets: enabled

                                     

                                     

                                    21:35:18,931 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Wrap result sets: disabled

                                     

                                     

                                    21:35:18,931 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) JDBC3 getGeneratedKeys(): enabled

                                     

                                     

                                    21:35:18,931 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Connection release mode: auto

                                     

                                     

                                    21:35:18,931 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (http-127.0.0.1-127.0.0.1-8080-1) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.JtaTransactionFactory

                                     

                                     

                                    21:35:18,935 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Default batch fetch size: 1

                                     

                                     

                                    21:35:18,935 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Generate SQL with comments: disabled

                                     

                                     

                                    21:35:18,935 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Order SQL updates by primary key: disabled

                                     

                                     

                                    21:35:18,935 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Order SQL inserts for batching: disabled

                                     

                                     

                                    21:35:18,935 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Query translator: org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory

                                     

                                     

                                    21:35:18,937 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (http-127.0.0.1-127.0.0.1-8080-1) HHH000397: Using ASTQueryTranslatorFactory

                                     

                                     

                                    21:35:18,937 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Query language substitutions: {}

                                     

                                     

                                    21:35:18,937 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) JPA-QL strict compliance: disabled

                                     

                                     

                                    21:35:18,937 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Second-level cache: enabled

                                     

                                     

                                    21:35:18,937 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Query cache: enabled

                                     

                                     

                                    21:35:18,938 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Query cache factory: org.hibernate.cache.internal.StandardQueryCacheFactory

                                     

                                     

                                    21:35:18,939 DEBUG [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-127.0.0.1-8080-1) Cache region factory : org.hibernate.cache.infinispan.JndiInfinispanRegionFactory

                                     

                                     

                                    21:35:18,945 ERROR [org.egov.infstr.client.filter.HibSessionServletFilter] (http-127.0.0.1-127.0.0.1-8080-1) java.lang.NoClassDefFoundError: javax/naming/NamingException

                                     

                                     

                                    21:35:19,067 DEBUG [org.egov.infstr.client.filter.HibSessionServletFilter] (http-127.0.0.1-127.0.0.1-8080-1) <map/>

                                     

                                     

                                    21:35:19,071 ERROR [org.egov.EGOVRuntimeException] (http-127.0.0.1-127.0.0.1-8080-1) javax/naming/NamingException: java.lang.NoClassDefFoundError: javax/naming/NamingException

                                              at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0]

                                              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0]

                                              at java.lang.Class.getConstructor0(Class.java:2699) [:1.6.0]

                                              at java.lang.Class.getConstructor(Class.java:1657) [:1.6.0]

                                              at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:383) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:248) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:49) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85) [ehcache-web-2.0.3.jar:]

                                              at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86) [ehcache-web-2.0.3.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.8.Final.jar:]

                                              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]

                                              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.8.Final.jar:]

                                              at java.lang.Thread.run(Thread.java:619) [:1.6.0]

                                     

                                     

                                     

                                     

                                    21:35:19,074 ERROR [org.egov.infstr.client.filter.SetThreadLocals] (http-127.0.0.1-127.0.0.1-8080-1) Error occurred in SetThreadLocals Filter: org.egov.EGOVRuntimeException: javax/naming/NamingException

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:67) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:49) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85) [ehcache-web-2.0.3.jar:]

                                              at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86) [ehcache-web-2.0.3.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.8.Final.jar:]

                                              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]

                                              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.8.Final.jar:]

                                              at java.lang.Thread.run(Thread.java:619) [:1.6.0]

                                    Caused by: java.lang.NoClassDefFoundError: javax/naming/NamingException

                                              at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0]

                                              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0]

                                              at java.lang.Class.getConstructor0(Class.java:2699) [:1.6.0]

                                              at java.lang.Class.getConstructor(Class.java:1657) [:1.6.0]

                                              at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:383) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:248) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

                                              ... 24 more

                                     

                                     

                                     

                                     

                                    21:35:19,076 ERROR [org.egov.EGOVRuntimeException] (http-127.0.0.1-127.0.0.1-8080-1) Internal Server Error: org.egov.EGOVRuntimeException: javax/naming/NamingException

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:67) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:49) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85) [ehcache-web-2.0.3.jar:]

                                              at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86) [ehcache-web-2.0.3.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.8.Final.jar:]

                                              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]

                                              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.8.Final.jar:]

                                              at java.lang.Thread.run(Thread.java:619) [:1.6.0]

                                    Caused by: java.lang.NoClassDefFoundError: javax/naming/NamingException

                                              at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0]

                                              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0]

                                              at java.lang.Class.getConstructor0(Class.java:2699) [:1.6.0]

                                              at java.lang.Class.getConstructor(Class.java:1657) [:1.6.0]

                                              at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:383) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:248) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

                                              ... 24 more

                                     

                                     

                                     

                                     

                                    21:35:19,078 WARN  [net.sf.ehcache.constructs.web.filter.Filter] (http-127.0.0.1-127.0.0.1-8080-1) Throwable thrown during doFilter on request with URI: /egi/common/homepage.action and Query: nullInternal Server Error: org.egov.EGOVRuntimeException: Internal Server Error

                                              at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:55) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85) [ehcache-web-2.0.3.jar:]

                                              at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86) [ehcache-web-2.0.3.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.8.Final.jar:]

                                              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]

                                              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.8.Final.jar:]

                                              at java.lang.Thread.run(Thread.java:619) [:1.6.0]

                                    Caused by: org.egov.EGOVRuntimeException: javax/naming/NamingException

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:67) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:49) [egov-infrastructure.jar:]

                                              ... 21 more

                                    Caused by: java.lang.NoClassDefFoundError: javax/naming/NamingException

                                              at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0]

                                              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0]

                                              at java.lang.Class.getConstructor0(Class.java:2699) [:1.6.0]

                                              at java.lang.Class.getConstructor(Class.java:1657) [:1.6.0]

                                              at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:383) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:248) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

                                              ... 24 more

                                     

                                     

                                     

                                     

                                    21:35:19,080 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/egi].[default]] (http-127.0.0.1-127.0.0.1-8080-1) Servlet.service() for servlet default threw exception: java.lang.NoClassDefFoundError: javax/naming/NamingException

                                              at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0]

                                              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0]

                                              at java.lang.Class.getConstructor0(Class.java:2699) [:1.6.0]

                                              at java.lang.Class.getConstructor(Class.java:1657) [:1.6.0]

                                              at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:383) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:248) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                                              at org.egov.infstr.utils.HibernateUtil.createSessionFactory(HibernateUtil.java:74) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getSessionFactory(HibernateUtil.java:139) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:146) [egov-infrastructure.jar:]

                                              at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:159) [egov-infrastructure.jar:]

                                              at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:54) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:49) [egov-infrastructure.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85) [ehcache-web-2.0.3.jar:]

                                              at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86) [ehcache-web-2.0.3.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.8.Final.jar:]

                                              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]

                                              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.8.Final.jar:]

                                              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.8.Final.jar:]

                                              at java.lang.Thread.run(Thread.java:619) [:1.6.0]

                                     

                                     

                                     

                                     

                                    21:35:19,083 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]] (http-127.0.0.1-127.0.0.1-8080-1) Processing ErrorPage[exceptionType=java.lang.Throwable, location=/error/error.jsp]

                                     

                                     

                                    21:35:19,201 DEBUG [org.apache.struts.util.RequestUtils] (http-127.0.0.1-127.0.0.1-8080-1)  Looking for ActionForm bean instance in scope 'request' under attribute key 'errorForm'

                                     

                                     

                                    21:35:19,202 DEBUG [org.apache.struts.util.RequestUtils] (http-127.0.0.1-127.0.0.1-8080-1)  Creating new DynaActionForm instance of type 'org.apache.struts.action.DynaActionForm'

                                     

                                     

                                    2

                                    1 2 3 Previous Next