[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [glassfish-dev] What are the possible causes of remote JNDI lookup failures like https://github.com/eclipse-ee4j/glassfish/issues/25190?
|
- From: "Steve Millidge (Payara)" <steve.millidge@xxxxxxxxxxx>
- Date: Wed, 23 Oct 2024 13:12:59 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=payara.fish; dmarc=pass action=none header.from=payara.fish; dkim=pass header.d=payara.fish; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6AkoXY44tSaDaT03smulS2ygjIBNr3sPcRbk0GASq6g=; b=A2S+OBDlMz9K+t+oND799vVD1xjoQzFD+4jwliFJhF8ICK2qv8ZvQOt5yhqG9aEMFUlj4J/2x+flwjnJIDZY1SMaDo5spGhyhVBd+OCJRP6uc57tSwt2D/jYeHQ/WXrlWw1kpO46oSkYb5+h2bIkB2Y0RU9bQ1UFlL1uJHN+bTLZAdqkVwKoDCpDB/+ZBe0vSaHhgKSZued6C/pYUP7bNEB51bShXLZxdhdQciNinQN3HoAklxw65XepuYUNtiwIrwKloaGHNoQSTTbsoni1H/8XGzIm3zdcK/4UMhpQG55s62trTbmrg9qYdQ7GO0peNyv4lhqEnT1yHv5iLg2kiA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P2Da8mVBJVVwYP/BB+HuHEstKKJcncteKxzGl70GZ6Ykc+ttzXDA8VcOfZ6WeGG5DpwAyOtK8Kjv8BHa2GcV7ZMSmzOpqJlIRqqHgcFh8CoRRtEM2c2yTgfDlpCjD0Fk0IcmCHAb2Mnn8AnqouZJglU8+Qs7lwrVBS6XKEhCfhiBxDLQLwehOC+3Lq1XBZZwg/rkMTgBhyT1IzJsZcCOr6g30VqKDpQ7ajtkWDytICjb6p/011f8JEykPgD7SmMKtUhy9fslarWVhyG1hoabCOFHMvTuDoyeHM3LZTXK+HBENotvgSUb4/uzrvQg5hBvye0aCfe9tnbvYaUDDoboNA==
- 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: AQHbJJ8xhISorEPbmEaFw20reN2uw7KUJ8bHgAAhV4CAAAQT7Q==
- Thread-topic: [glassfish-dev] What are the possible causes of remote JNDI lookup failures like https://github.com/eclipse-ee4j/glassfish/issues/25190?
Not sure if a cnfe could cause that while traversing the JNDI reference.
There is something slightly different in the JNDI names
#com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleIF
Between Failed lookup above and the deployment name below
com_sun_ts_tests_common_vehicle_Stateless3VehicleBean#com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleIF
It's missing the bean prefix. I'm not sure if this is normal from memory. At this point I would be debugging the JNDI code on the server to list the jndi references :-(
From: Scott Marlow <smarlow@xxxxxxxxxx>
Sent: Wednesday, October 23, 2024 1:43:37 PM
To: Steve Millidge (Payara) <steve.millidge@xxxxxxxxxxx>; glassfish developer discussions <glassfish-dev@xxxxxxxxxxx>
Subject: Re: [glassfish-dev] What are the possible causes of remote JNDI lookup failures like https://github.com/eclipse-ee4j/glassfish/issues/25190?
On 10/23/24 6:46 AM, Steve Millidge (Payara) wrote:
Strangely the error originates from an inbound corba call which would suggest a remote EJB invocation. Is the EJB deploying successfully. You should see its name output during deployment on the server side.
The app client container deployment is trying to call a remote (deployed to EE server) EJB bean. It looks like the EJB did deploy as seen in the just copied server.log contents in comment
https://github.com/eclipse-ee4j/glassfish/issues/25190#issuecomment-2431958637 which does seem to show the ejb was deployed as per:
Portable JNDI names for EJB Stateless3VehicleBean: [java:global/jpa_core_EntityGraph_vehicles/jpa_core_EntityGraph_stateless3_vehicle_ejb/Stateless3VehicleBean!com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleIF,
java:global/jpa_core_Entity
Graph_vehicles/jpa_core_EntityGraph_stateless3_vehicle_ejb/Stateless3VehicleBean]]]
If there was a ClassNotFoundException (e.g. CNFE due to a missing class in the application) would that typically show up in the server.log during the JNDI lookup?
Or do we need to enable GlassFish DEBUG/TRACE logging to see CNFEs?
Scott
Hi,
Could the jndi lookup failure in
https://github.com/eclipse-ee4j/glassfish/issues/25190 be caused by deployment descriptors not being correct? Could it also be caused by classnotfound exceptions? Note that the included JNDI lookup exception doesn't include the cause (the cause should
at least be logged I think if there is an exception caught but ignored).
From the exception call stack included:
"
Suppressed: javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=ejb/Stateless3VehicleBean,Remote 3.x interface =com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleIF,ejb-link=Stateless3VehicleBean,lookup=,mappedName=,jndi-name=,refType=Session'
. Actual (possibly internal) Remote JNDI name used for lookup is '#com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleIF' [Root exception is javax.naming.NamingException: Lookup failed for #com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleIF
in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}] [Root
exception is javax.naming.NameNotFoundException: #com.sun.ts.tests.common.vehicle.stateless3.Stateless3VehicleIF not found]]
"
Other thoughts on the cause?
Scott