Apache Tomcat/7.0.41 - Error report

Apache Tomcat/7.0.41 - Error report

type Exception report

message /resources/parts/cervees-list.xhtml @4,54 test="#{not empty cerveesBean.subCervees}" Error creating bean with name 'cerveesBean': Invocation of init method failed; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.faces.view.facelets.TagAttributeException: /resources/parts/cervees-list.xhtml @4,54 test="#{not empty cerveesBean.subCervees}" Error creating bean with name 'cerveesBean': Invocation of init method failed; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:331)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
	org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cerveesBean': Invocation of init method failed; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
	org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
	org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:382)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1215)
	org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1148)
	org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1225)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:63)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
	org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
	org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104)
	org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:71)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

java.util.NoSuchElementException: Timeout waiting for idle object
	org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:958)
	org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:71)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.41 logs.


Apache Tomcat/7.0.41

Apache Tomcat/7.0.41 - Error report

type Exception report

message /resources/parts/cervees-list.xhtml @4,54 test="#{not empty cerveesBean.subCervees}" Error creating bean with name 'cerveesBean': Invocation of init method failed; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.faces.view.facelets.TagAttributeException: /resources/parts/cervees-list.xhtml @4,54 test="#{not empty cerveesBean.subCervees}" Error creating bean with name 'cerveesBean': Invocation of init method failed; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:331)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
	org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cerveesBean': Invocation of init method failed; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
	org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
	org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:382)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1215)
	org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1148)
	org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1225)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:63)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
	org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
	org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104)
	org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:71)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

root cause

java.util.NoSuchElementException: Timeout waiting for idle object
	org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:958)
	org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:71)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
	org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
	org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
	org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
	org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
	org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(DefaultJpaDialect.java:70)
	org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:57)
	org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:332)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
	org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
	net.itorbit.darvak.biz.service.AdsContentService$$EnhancerByCGLIB$$28486676.findByPosition(<generated>)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:132)
	net.itorbit.darvak.site.bean.CacheController$2.load(CacheController.java:1)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	net.itorbit.darvak.site.bean.CerveesBean.initAdsList(CerveesBean.java:291)
	net.itorbit.darvak.site.bean.CerveesBean.init(CerveesBean.java:268)
	sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:331)
	net.itorbit.javaee.jsf.SpringViewScope.get(SpringViewScope.java:25)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:327)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
	org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:56)
	net.itorbit.javaee.jsf.DarvakSpringBeanFacesELResolver.getValue(DarvakSpringBeanFacesELResolver.java:36)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
	org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
	org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
	org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
	com.sun.faces.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:136)
	com.sun.faces.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:91)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:147)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:839)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.41 logs.


Apache Tomcat/7.0.41