From users-return-26535-archive-asf-public=cust-asf.ponee.io@tomee.apache.org Sun Mar 4 15:37:52 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C117E180649 for ; Sun, 4 Mar 2018 15:37:51 +0100 (CET) Received: (qmail 63944 invoked by uid 500); 4 Mar 2018 14:37:50 -0000 Mailing-List: contact users-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tomee.apache.org Delivered-To: mailing list users@tomee.apache.org Received: (qmail 63933 invoked by uid 99); 4 Mar 2018 14:37:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2018 14:37:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 58E91C00C8 for ; Sun, 4 Mar 2018 14:37:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.485 X-Spam-Level: *** X-Spam-Status: No, score=3.485 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rafPIZBoinmX for ; Sun, 4 Mar 2018 14:37:48 +0000 (UTC) Received: from n4.nabble.com (n4.nabble.com [162.253.133.72]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id AE1675F181 for ; Sun, 4 Mar 2018 14:37:47 +0000 (UTC) Received: from mben.nabble.com (localhost [127.0.0.1]) by n4.nabble.com (Postfix) with ESMTP id 27D0119195B17 for ; Sun, 4 Mar 2018 07:37:46 -0700 (MST) Date: Sun, 4 Mar 2018 07:37:46 -0700 (MST) From: ishwar To: users@tomee.apache.org Message-ID: <1520174266160-0.post@n4.nabble.com> Subject: After update tomee version ,getting error "jdbc/mydb is not bound in this Context" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/demmo UserName root Password root JtaManaged false InitialSize 50 MaxActive 100 MaxIdle 3 LogAbandoned true apache-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 true Web.xml is same. Likes following. MySQL Datasource example jdbc/mydb javax.sql.DataSource The 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