1 I have this problem in my Hibernate session Validity a newly established conection, when doing the query, it miss the session, only after giving several F5 the session back .. can anyone help me? ... follows the image of the Error. 1.Context.xml
<?xmlversion="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>