From dev-return-189872-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Thu Mar 29 04:03:43 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 DABCD180652 for ; Thu, 29 Mar 2018 04:03:42 +0200 (CEST) Received: (qmail 5005 invoked by uid 500); 29 Mar 2018 02:03:41 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 4995 invoked by uid 99); 29 Mar 2018 02:03:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2018 02:03:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1684C1A062E for ; Thu, 29 Mar 2018 02:03:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.311 X-Spam-Level: X-Spam-Status: No, score=-2.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0hRrpNHNynVO for ; Thu, 29 Mar 2018 02:03:36 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1D8AC5F17B for ; Thu, 29 Mar 2018 02:03:36 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 95E8DE00A9 for ; Thu, 29 Mar 2018 02:03:35 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id B47CC61030; Thu, 29 Mar 2018 02:03:34 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 62224] SafeForkJoinWorkerThreadFactory breaks class loading on org.apache.naming.java.javaURLContextFactory Date: Thu, 29 Mar 2018 02:03:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 8 X-Bugzilla-Component: Catalina X-Bugzilla-Version: 8.5.x-trunk X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nobeh5@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: ---- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D62224 Behrooz Nobakht changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #3 from Behrooz Nobakht --- Extracting a minimal reproducible example is quite difficult for me. I will explain the current situation as is. Tomcat is used with a custom server.xml: Please note the definition of `Resource` in above. When accessing one of the HTTP endpoints on the app, a business objects wan= ts for the first time to gain access to the JNDI resource `java:env/comp/UserTransaction`.=20 Because there's no custom definition of NamingContext provider API, the def= ault is picked by javax.naming.InitialContext.=20 This is L313 of javax.naming.InitialContext in Java 1.8.0_172: defaultInitCtx =3D NamingManager.getInitialContext(myProps); `myProps` is filled by Catalina bootstrap to point to Apache Naming implementation. Going further down the stack, you will reach com.sun.naming.internal.VersionHelper12 at L61: return loadClass(className, getContextClassLoader()); The fix for ForkJoinWorkerThreadFactory means that there will be no context class loader, which means it will be "system" class loader and eventually l= eads to ClassNotFoundException. Hope this clarifies further the issue. --=20 You are receiving this mail because: You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org