An Error Occurred:

//websystems-theme/22tabsp/template.xhtml @22,67 test="#{SiteFace.currentDomain eq 'cartorios.net'}" //websystems-theme/22tabsp/template.xhtml @22,67 test="#{SiteFace.currentDomain eq 'cartorios.net'}": javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: null; nested exception is: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

+ Stack Trace

com.sun.facelets.tag.TagAttributeException: //websystems-theme/22tabsp/template.xhtml @22,67 test="#{SiteFace.currentDomain eq 'cartorios.net'}" //websystems-theme/22tabsp/template.xhtml @22,67 test="#{SiteFace.currentDomain eq 'cartorios.net'}": javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
	java.rmi.RemoteException: null; nested exception is: 
	javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
	at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
	at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:49)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
	at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
	at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
	at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
	at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
	at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
	at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
	at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
	at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
	at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
	at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:145)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:871)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:558)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:490)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:382)
	at br.com.escriba.websystems.web.servlet.filter.ProcessaConteudoFilter.run(ProcessaConteudoFilter.java:59)
	at java.lang.Thread.run(Thread.java:619)
Caused by: javax.el.ELException: //websystems-theme/22tabsp/template.xhtml @22,67 test="#{SiteFace.currentDomain eq 'cartorios.net'}": javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
	java.rmi.RemoteException: null; nested exception is: 
	javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
	at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
	... 47 more
Caused by: javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
	java.rmi.RemoteException: null; nested exception is: 
	javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at br.com.escriba.websystems.session.interfaces._SiteSessionRemote_Wrapper.getByURL(br/com/escriba/websystems/session/interfaces/_SiteSessionRemote_Wrapper.java)
	at br.com.escriba.websystems.web.faces.BasicFacesBean.getCurrentSite(BasicFacesBean.java:151)
	at br.com.escriba.websystems.web.faces.SiteFace.getCurrentSite(SiteFace.java:96)
	at br.com.escriba.websystems.web.faces.SiteFace.getCurrentDomain(SiteFace.java:436)
	at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
	at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
	at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
	at com.sun.el.parser.AstEqual.getValue(AstEqual.java:54)
	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
	... 48 more

+ Component Tree

<PartialTraversalViewRootImpl locale="pt_BR" renderKitId="HTML_BASIC" rendered="true" transient="false" viewId="/conteudo.xhtml">
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>#{SiteFace.currentSite.stCliDenominacao}</title>
<title>#{ConteudoFace.conteudo.cntDescricao} - Cartório de notas em São Paulo</title>
</PartialTraversalViewRootImpl>

+ Scoped Variables

Request Parameters
NameValue
None
Request Attributes
NameValue
prettyContextcom.ocpsoft.pretty.PrettyContext@7a4931db
Session Attributes
NameValue
SiteFacebr.com.escriba.websystems.web.faces.SiteFace@5b685f95
cachedSitebr.com.escriba.websystems.entity.Site[stId=90]
conteudoDinamico4
currentBaseSite22notas.com.br
Application Attributes
NameValue
ADAPTER_LIST[com.sun.xml.ws.transport.http.servlet.ServletAdapter@4520360d[name=], com.sun.xml.ws.transport.http.servlet.ServletAdapter@625e31bf[name=], com.sun.xml.ws.transport.http.servlet.ServletAdapter@658b3988[name=], com.sun.xml.ws.transport.http.servlet.ServletAdapter@1489df7c[name=]]
24/05/2018 06:49:07 - Generated by Facelets