<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Datasource published always in "Republish" state
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/cprietom">Carlos Prieto</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/message/758958#758958">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello everybody,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm facing a strange problem when republishing an app in JBoss inside Eclipse. This is my environment:</p><p>- Windows 7</p><p>- Eclipse Ganymede 3.4.0</p><p><span>- JBoss Tools 3.0.3 (installed from </span><a class="jive-link-external-small" href="http://download.jboss.org/jbosstools/updates/JBossTools-3.0.3.GA" target="_blank">http://download.jboss.org/jbosstools/updates/JBossTools-3.0.3.GA</a><span> via the "Software Updates..." menu in Eclipse)</span></p><p>- JBoss 4.2.2 Server</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>When I start the server with the app deployed, the state of the EAR within the server reaches the "Synchronized" state when it finishes starting. BUT the XML with the datasource deployed remains in the "Republish" state (see the uploaded image with the JBoss Server view and the uploaded XML with the datasource).</p><p>The application works fine but, when I make any minor change to any XHTML of my app and hit the "Publish" of my server (I have the JBoss server configured not to publish changes automatically), the following two lines are thrown to the console output:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>10:36:35,909 INFO  <a class="" href="https://community.jboss.org/message/758958#758958#758958/ConnectionFactoryBindingService">Datasource published always in "Republish" state</a> Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=oficinaVirtual-REGISTRO-ds' from JNDI name 'java:oficinaVirtual-REGISTRO-ds'</p><p>10:36:35,960 INFO  <a class="" href="https://community.jboss.org/message/758958#758958#758958/ConnectionFactoryBindingService">Datasource published always in "Republish" state</a> Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=oficinaVirtual-REGISTRO-ds' to JNDI name 'java:oficinaVirtual-REGISTRO-ds'</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and, after that, my application crashes when I try to access it again. As I haven't made any changes to the XML that contains the datasource, it shouldn't unbound and bound again. How could I avoid this behaviour?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This is the error I receive when I access the application after republishing it:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>10:36:42,241 WARN  <a class="" href="https://community.jboss.org/message/758958#758958#758958/JDBCExceptionReporter">Datasource published always in "Republish" state</a> SQL Error: 0, SQLState: null</p><p>10:36:42,241 ERROR <a class="" href="https://community.jboss.org/message/758958#758958#758958/JDBCExceptionReporter">Datasource published always in "Republish" state</a> You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)</p><p>10:36:42,245 ERROR <a class="" href="https://community.jboss.org/message/758958#758958#758958/STDERR">Datasource published always in "Republish" state</a> 11-sep-2012 10:36:42 com.sun.facelets.FaceletViewHandler handleRenderException</p><p>GRAVE: Error Rendering View[/home.xhtml]</p><p>javax.el.ELException: /home.xhtml: org.hibernate.exception.GenericJDBCException: Cannot open connection</p><p>          at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:48)</p><p>          at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)</p><p>          at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)</p><p>          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)</p><p>          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)</p><p>          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)</p><p>          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)</p><p>          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)</p><p>          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)</p><p>          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)</p><p>          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)</p><p>          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)</p><p>          at com.corpme.mercantil.utils.FacesServletWrapper.service(FacesServletWrapper.java:40)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at com.corpme.mercantil.utils.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:71)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)</p><p>          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)</p><p>          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)</p><p>          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)</p><p>          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)</p><p>          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)</p><p>          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)</p><p>          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)</p><p>          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)</p><p>          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)</p><p>          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</p><p>          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)</p><p>          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)</p><p>          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)</p><p>          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)</p><p>          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)</p><p>          at java.lang.Thread.run(Thread.java:662)</p><p>Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection</p><p>          at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)</p><p>          at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)</p><p>          at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)</p><p>          at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)</p><p>          at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)</p><p>          at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)</p><p>          at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)</p><p>          at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)</p><p>          at org.hibernate.loader.Loader.doQuery(Loader.java:673)</p><p>          at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)</p><p>          at org.hibernate.loader.Loader.doList(Loader.java:2220)</p><p>          at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)</p><p>          at org.hibernate.loader.Loader.list(Loader.java:2099)</p><p>          at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)</p><p>          at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)</p><p>          at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)</p><p>          at com.corpme.mercantil.model.registro.dao.ovseccion.OvSeccionSearchDAO.find(OvSeccionSearchDAO.java:46)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>          at java.lang.reflect.Method.invoke(Method.java:597)</p><p>          at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)</p><p>          at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)</p><p>          at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)</p><p>          at com.corpme.mercantil.model.registro.dao.ovseccion.OvSeccionSearchDAO_$$_javassist_8.find(OvSeccionSearchDAO_$$_javassist_8.java)</p><p>          at com.corpme.mercantil.oficinaVirtual.session.Home.init(Home.java:65)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>          at java.lang.reflect.Method.invoke(Method.java:597)</p><p>          at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)</p><p>          at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)</p><p>          at org.jboss.seam.transaction.Ro</p><p>10:36:42,245 ERROR <a class="" href="https://community.jboss.org/message/758958#758958#758958/STDERR">Datasource published always in "Republish" state</a> llbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)</p><p>          at com.corpme.mercantil.oficinaVirtual.session.Home_$$_javassist_7.init(Home_$$_javassist_7.java)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>          at java.lang.reflect.Method.invoke(Method.java:597)</p><p>          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)</p><p>          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)</p><p>          at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)</p><p>          at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)</p><p>          at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)</p><p>          at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)</p><p>          at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)</p><p>          at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)</p><p>          ... 52 more</p><p>Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)</p><p>          at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)</p><p>          at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)</p><p>          at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)</p><p>          ... 111 more</p><p>Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.</p><p>          at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:387)</p><p>          at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)</p><p>          at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)</p><p>          ... 113 more</p><p>10:36:42,246 WARN  <a class="" href="https://community.jboss.org/message/758958#758958#758958/lifecycle">Datasource published always in "Republish" state</a> executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@3b5487e) threw exception</p><p>javax.el.ELException: /home.xhtml: org.hibernate.exception.GenericJDBCException: Cannot open connection</p><p>          at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:48)</p><p>          at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)</p><p>          at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)</p><p>          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)</p><p>          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)</p><p>          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)</p><p>          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)</p><p>          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)</p><p>          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)</p><p>          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)</p><p>          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)</p><p>          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)</p><p>          at com.corpme.mercantil.utils.FacesServletWrapper.service(FacesServletWrapper.java:40)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at com.corpme.mercantil.utils.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:71)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)</p><p>          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)</p><p>          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)</p><p>          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)</p><p>          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)</p><p>          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)</p><p>          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)</p><p>          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)</p><p>          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)</p><p>          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)</p><p>          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)</p><p>          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</p><p>          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)</p><p>          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)</p><p>          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)</p><p>          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)</p><p>          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)</p><p>          at java.lang.Thread.run(Thread.java:662)</p><p>Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection</p><p>          at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)</p><p>          at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)</p><p>          at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)</p><p>          at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)</p><p>          at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)</p><p>          at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)</p><p>          at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)</p><p>          at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)</p><p>          at org.hibernate.loader.Loader.doQuery(Loader.java:673)</p><p>          at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)</p><p>          at org.hibernate.loader.Loader.doList(Loader.java:2220)</p><p>          at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)</p><p>          at org.hibernate.loader.Loader.list(Loader.java:2099)</p><p>          at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)</p><p>          at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)</p><p>          at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)</p><p>          at com.corpme.mercantil.model.registro.dao.ovseccion.OvSeccionSearchDAO.find(OvSeccionSearchDAO.java:46)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>          at java.lang.reflect.Method.invoke(Method.java:597)</p><p>          at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)</p><p>          at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)</p><p>          at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)</p><p>          at com.corpme.mercantil.model.registro.dao.ovseccion.OvSeccionSearchDAO_$$_javassist_8.find(OvSeccionSearchDAO_$$_javassist_8.java)</p><p>          at com.corpme.mercantil.oficinaVirtual.session.Home.init(Home.java:65)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>          at java.lang.reflect.Method.invoke(Method.java:597)</p><p>          at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)</p><p>          at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)</p><p>          at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)</p><p>          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>          at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)</p><p>          at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)</p><p>          at com.corpme.mercantil.oficinaVirtual.session.Home_$$_javassist_7.init(Home_$$_javassist_7.java)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>          at java.lang.reflect.Method.invoke(Method.java:597)</p><p>          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)</p><p>          at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)</p><p>          at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)</p><p>          at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)</p><p>          at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)</p><p>          at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)</p><p>          at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)</p><p>          at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)</p><p>          ... 52 more</p><p>Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)</p><p>          at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)</p><p>          at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)</p><p>          at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)</p><p>          ... 111 more</p><p>Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.</p><p>          at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:387)</p><p>          at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)</p><p>          at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)</p><p>          ... 113 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/758958#758958">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>