0
1I’m having this problem in my Hibernate Validity to Newly established conection, when doing the query, it loses the session, only after giving several F5 the session back.. can anyone help me? ... follow the image of Error. 1.Context. xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/appjsf" allowCasualMultipartParsing="true">
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Manager
className="org.apache.catalina.session.
PersistentManager"maxActiveSessions="-1"
maxIdleBackup="-1" maxIdleSwap="-1"
minIdleSwap="-1" saveOnRestart="false">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
<Resources cacheMaxSize="10240000"
cacheObjectMaxSize="512000" cachingAllowed="true"/>
<Resource name="jdbc/appjsf"
auth="Container"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/appjsf"
username="deus"
password="*****"
testOnBorrow="true"
testWhileIdle="true"
maxIdle="233"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
initialSize="34"
type="javax.sql.DataSource"
maxPoolSize="20"
minPoolSize="5"
acquireIncrement="1"
maxActive="300"
timeBetweenEvictionRunsMillis="30000"
removeAbandoned="true"
removeAbandonedTimeout="60"
logAbandoned="true"
validatonQuery="SELECT 1"
validationInterval="34000"
abandonWhenPercentageFull="50"
closeMethod="close" />
<ResourceLink name="jdbc/appjsf"
global="jdbc/appjsf"
type="javax.sql.DataSource" />
</Context>
You can show your code that is responsible for the connection?
– Weslley Tavares
I posted two links with XML images
– Geraldo Araujo
You posted this as answers. Change this friend.
– Weslley Tavares
This is my context.xml file.
– Geraldo Araujo