From users-return-268736-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Tue Nov 12 15:00:15 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 71860180656 for ; Tue, 12 Nov 2019 16:00:15 +0100 (CET) Received: (qmail 34384 invoked by uid 500); 12 Nov 2019 15:00:11 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 34373 invoked by uid 99); 12 Nov 2019 15:00:11 -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; Tue, 12 Nov 2019 15:00:11 +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 DE911C056B for ; Tue, 12 Nov 2019 15:00:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qJWwi8XLk4YO for ; Tue, 12 Nov 2019 15:00:09 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::742; helo=mail-qk1-x742.google.com; envelope-from=nedim.kulovac@gmail.com; receiver= Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 5D0527DD7F for ; Tue, 12 Nov 2019 15:00:08 +0000 (UTC) Received: by mail-qk1-x742.google.com with SMTP id q70so14644387qke.12 for ; Tue, 12 Nov 2019 07:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RIq2ujEtlS10qHA3qTQkfdN6r15nFOS+hIwQPx/NP54=; b=IrOP0UvQiraygMOmJFl83X/1cV4AOeIDgv/ikrAz7d1neB/N5DafwupUX56HMhnl5G OBGNH5HL8fs97N7yR301GvH5Q3eNWHkfRjHrZcWerSp80xUjYcXmPhBpahZ6O9Zge7nU wIpXQ1md5HTJPEqoUY59Ym4E9Zce0lGS1IYp22VAWq+d9PSQjUKFjPpkpSZ0u1NtoUHt 1lJkQdaHe4ERN/sxYpkuxYZLHH/qP+OK7PMXjn3D1CrLn+IS74ibFpwFyPmgV4bY8dvW ucuTn/lEb89qc6m3o1/xI6K8coRVaulvRTucpKu+j+RaPD0L8dSONsclW1INvn/ARpma QXGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RIq2ujEtlS10qHA3qTQkfdN6r15nFOS+hIwQPx/NP54=; b=fDnH5j8JkB9rFOy6LGEmy7QF9sjdW7DljPgFiOOkqqSbOvXSKPurTPr2neP/GbNas7 y6SzJRSqzEeq/PD7wT2GWfmVDXE+NRj782L7ZqwpJWElSi2K+YwCHjw2/HjJw4xDQdL9 yGUTZmUY1AwLocsbAaGa4Twm8bO5GCptUlDkuoQpdXSgVVyWby/WDLek8J03d1XIWRH2 TQmmE02maYN6lfANDcUEDyV43Fvz6zwQHFX2ndr2HL90DUK+wlWVOYKJ+q30/Y9vdeqe 3XAu93QLNTJFdCyQ16YKy6d+2INUnJ/4lQbMspmfs1okgbJ9UBpk5GpJeMVAb9FAIX1c 7pVw== X-Gm-Message-State: APjAAAUhxEt6zQoHSihzT4SklJZu6hFzbyzcCuSN0nLuXjOQBlKB1BNx OfnXVhhCWdcIc0uieDFqN1GGD0KWh8veJoKxCtxY6bd1 X-Google-Smtp-Source: APXvYqyCVwSnyr3489a8j46EPHAdOAeGZNPx9uHNTSweof9B1cJykYtfgXBKH5lxvOIp2Z02NcPoKCWl5fUinjZOAJA= X-Received: by 2002:a05:620a:1505:: with SMTP id i5mr15986982qkk.64.1573570806704; Tue, 12 Nov 2019 07:00:06 -0800 (PST) MIME-Version: 1.0 References: <3842b8ad-ba44-1ef3-7bd0-46526533cb10@apache.org> In-Reply-To: <3842b8ad-ba44-1ef3-7bd0-46526533cb10@apache.org> From: Nedim Kulovac Date: Tue, 12 Nov 2019 15:59:55 +0100 Message-ID: Subject: Re: Tomcat Loader putting my modules to module-path as unnamed module To: Tomcat Users List Content-Type: multipart/alternative; boundary="000000000000f66dce05972780f8" --000000000000f66dce05972780f8 Content-Type: text/plain; charset="UTF-8" Man! I really didn't expect this answer! On Tue, Nov 12, 2019 at 3:27 PM Mark Thomas wrote: > On 12/11/2019 14:13, Nedim Kulovac wrote: > > Hi there. I had an issue with starting a modular Java 11 app. Basically, > I > > was wondering why my module-info. java does not require to use 'open' > > directive when using Spring Framework. I posted the question here > > > https://stackoverflow.com/questions/58737469/do-i-have-to-add-open-statement-in-module-info-java-to-open-module-for-reflectio?noredirect=1#comment103882923_58737469 > > and > > user Holger came with diagnosing that Tomcat loading my code as well as > > Spring through a custom class loader and that is why my modules and > Spring > > jars are not listed when I use --show-module-resolution, neither they > > appear in the classpath. To inspect is custom class loading done modular > or > > old style, he recommended putting > > System.out.println(SomeClass.class.getModule()); somewhere in code in the > > module. I did it and as a result, I got printed out 'unnamed module > > @595b34e5'. So the big question is: why is this happening and how can I > > resolve this? I want Tomcat to put my modules to module path normally, > not > > as an unnamed module. > > You can't. > > The Servlet API (nor any part of Java EE / Jakarta EE) does not make use > of the module system. > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > -- *Nedim Kulovac* --000000000000f66dce05972780f8--