After update tomee version ,getting error "jdbc/mydb is not bound in this Context"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

After update tomee version ,getting error "jdbc/mydb is not bound in this Context"

ishwar
After updating the tomee version from apache-tomee-jaxrs-1.5.2 To
apache-tomee-jaxrs-1.7.4, Getting following exception on thread but there
are other code is executing without thread its working fine.Name [jdbc/mydb]
is not bound in this Context. Unable to find
[jdbc].com.test.test1.PolicyManager-:getUserPreferences:
java.sql.SQLException: PooledConnection has already been
closed.apache-tomee-jaxrs-1.5.2 ->tomee.xml file.     JdbcDriver
com.mysql.jdbc.jdbc2.optional.MysqlDataSource      JdbcUrl
jdbc:mysql://localhost:3306/demo  UserName root  Password root   JtaManaged
false     InitialSize 50   MaxActive 100  MaxIdle 3 LogAbandoned
trueapache-tomee-jaxrs-1.7.4-> tomee.xml file.  JdbcDriver
com.mysql.jdbc.Driver       JdbcUrl jdbc:mysql://localhost:3306/demo
UserName root  Password root   JtaManaged false     InitialSize 50  
MaxActive 100  MaxIdle 3 LogAbandoned trueWeb.xml is same. Likes following.
MySQL Datasource example jdbc/mydb javax.sql.DataSourceThe error is coming
when the web Applicaiton creating the new thread for sending the
notificaiton.The same code is working on older version of apache tomee but
on new version, it is not working.any suggestion?



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html