From users-return-26537-apmail-tomee-users-archive=tomee.apache.org@tomee.apache.org Mon Mar 5 12:35:06 2018 Return-Path: X-Original-To: apmail-tomee-users-archive@www.apache.org Delivered-To: apmail-tomee-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08ABF18E7E for ; Mon, 5 Mar 2018 12:35:06 +0000 (UTC) Received: (qmail 23285 invoked by uid 500); 5 Mar 2018 12:35:05 -0000 Delivered-To: apmail-tomee-users-archive@tomee.apache.org Received: (qmail 23239 invoked by uid 500); 5 Mar 2018 12:35:05 -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 23228 invoked by uid 99); 5 Mar 2018 12:35:05 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2018 12:35:05 +0000 Received: from mail-qt0-f173.google.com (mail-qt0-f173.google.com [209.85.216.173]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 950B0204 for ; Mon, 5 Mar 2018 12:35:04 +0000 (UTC) Received: by mail-qt0-f173.google.com with SMTP id z14so20084670qti.2 for ; Mon, 05 Mar 2018 04:35:04 -0800 (PST) X-Gm-Message-State: AElRT7H9QjVniCeN4RQ9Zn9iy30pqdlX0yPlrbplsijT4GnBDS8mLkyo 9GSohsCSwf9LqeJF5HON6TsKKaZzUOb8lh/79Og= X-Google-Smtp-Source: AG47ELsmVK6L5zMbl50XkCeF2WBisgBLcGmjKY6d88r8lhwILepHtasJOqdP8LgDH0rvQFvo08O4dA/UOscAKmFC380= X-Received: by 10.200.54.100 with SMTP id n33mr21302387qtb.271.1520253303739; Mon, 05 Mar 2018 04:35:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.214.132 with HTTP; Mon, 5 Mar 2018 04:35:03 -0800 (PST) From: Violeta Georgieva Date: Mon, 5 Mar 2018 14:35:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: org.apache.commons.codec filtered by the classloader but not provided by TomEE WebProfile To: users@tomee.apache.org Content-Type: multipart/alternative; boundary="001a11357b90235a180566a98e17" --001a11357b90235a180566a98e17 Content-Type: text/plain; charset="UTF-8" Hi, I have an EAR file with "lib" folder that contains "commons-codec" and a WAR file that uses the libraries located in the "lib" folder. I do not have issues with the other libraries in that folder but with "commons-codec" I receive the exception below. I'm using TomEE 7.0.4 WebProfile and in that distribution there is no "commons-codec" provided by TomEE itself because of this I'm providing it with the EAR file. While debugging I saw that "org.apache.commons.codec" is intentionally filtered by the classloader https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/util/classloader/URLClassLoaderFirst.java#L305 How it is supposed to provide this library so that my application can use it? Thanks, Violeta java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64 org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:208) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) --001a11357b90235a180566a98e17--