Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] [External] : Re: Any idea why on Java 11 the GlassFish Client Container might be failing to see the Client Container classloader?
  • From: Lukas Jungmann <lukas.jungmann@xxxxxxxxxx>
  • Date: Fri, 5 Mar 2021 21:55:23 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RyvXhbBXW5OGN97u4IGF7ahiZ7qNxBSzhMbBn19ZIGk=; b=JbyNIswYepKuDMknJIQzGx7gVjqoHwJbEdITNoMurk/dY4Nkfcsg+8lgAPaQXAdNK1deu1BmDIGVq0Flm0M2oOMtAhrkICAi1f86V4tSIaLgAFyzhVvG5POj5+6ycjNjVpKjWFmvrae66dMG+aEfQfevAjd2gnC/y8ttzq2T3nwhkjuwlNSslW6/Hsd2prBalVeJuDZVfzqE9uCh+5P7Z4zlihjfgrEkSie99HlQwbw1KNmfBFG+Ol0a2ZAxUzfTjHNSiCn8w5fyHk8egPBIJ+7qDCq8Yu+NeABXW2kvHcOZzVCwybtRDlck7DAoLN0+zMHlUa52+7p68idp3vRLwg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ogv1226NidhmigXPmMSddUB90906ObTWCBtd1DAE3Ki3BCMr2B5pjhxWe7JmS8Zg4wJSgqaK59AM8NVk06m7urvi//by/C7IUyd1pURB/ZMuSreSM4dXow5TlfApF9ngCwcZkuvjp+bQT+PKFS1gVL5gYSykSmGEKYKqdxIx8G9GNc2qhMFg7jmL8DPL0gBpwfy6HFsGN/tx///lVSjhV0txMAq8llse4BSJQtEHfERHwV+1j0Vvy2sqXRbDJ18UhNWPOgr8NkOcIqgFzLJl0dnQoazeXO/engdWmsBmWAoBjlvbJWK5oBskCaCW73HZoUsb7BBrfXx49clWL4K0fQ==
  • Delivered-to: glassfish-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/glassfish-dev/>
  • List-help: <mailto:glassfish-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXEgOmuN2I8MSGyE+JaJIcytzZx6p17nAp
  • Thread-topic: [glassfish-dev] [External] : Re: Any idea why on Java 11 the GlassFish Client Container might be failing to see the Client Container classloader?

> I wonder whether the location that Java looks for when -Djava.system.class.loader is used has changed in JDK 11.

I wouldn't be surprised if it is changed.


>But seemingly the java command was before able to load that named class from somewhere else. Does the manifest of the target jar counts as a classpath for the "-Djava.system.class.loader" option?

I'm not sure, would have to try that. But instead of using '-cp' + '-jar', I'd try '-Djava.class.path=...' + '-jar', see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ClassLoader.html#getSystemClassLoader()

thanks,
--lukas


Kind regards,
Arjan



Back to the top