Hi Dignesh

It looks like you're doing a remote EJB call over HTTP, or EJBD, is that
correct?

Your bean 'AbcBean' implements test.remote.interfaces.AuthenticationService
- double check that is in the classpath, both on the server side, and the
client side. For your exception, it looks like its missing on the client
side.

We're happy to take a look at your code if you have a simple example.

Thanks

Jon

Jon

On Thu, Apr 2, 2020 at 10:27 AM Dignesh Goyal <[email protected]> wrote:

> Hello Everyone -
>
> I am facing an issue with JNDI lookup with TomEE 8.0.0 . Below is the
> error which I am seeing in the log. Can someone from the team help on this
> to understand why the below error is seen.
>
> Caused by: javax.naming.NamingException: Cannot lookup
> '/global/abc/def-ejb/AbcBean!test.remote.interfaces.AuthenticationService'.
> [Root exception is java.rmi.RemoteException: Cannot read the response from
> the server.  The class for an object being returned is not located in this
> system:; nested exception is:
>         java.lang.ClassNotFoundException:
> test/remote/interfaces/AuthenticationService]
>         at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:453)
>         at
> java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
>         at
> test.dignesh.common.ejb.EjbBusinessObjectLoader.getRemoteBusinessObject(EjbBusinessObjectLoader.java:43)
>         at
> test.dignesh.common.ejb.EjbManager.getEjbObject(EjbManager.java:183)
>         at
> test.dignesh.common.ejb.EjbManager.getEjbObject(EjbManager.java:160)
>         at
> test.dignesh.common.services.BaseServices.executeEJB(BaseServices.java:192)
>         ... 2 more
> Caused by: java.rmi.RemoteException: Cannot read the response from the
> server.  The class for an object being returned is not located in this
> system:; nested exception is:
>         java.lang.ClassNotFoundException:
> test/remote/interfaces/AuthenticationService
>         at org.apache.openejb.client.Client.processRequest(Client.java:329)
>         at org.apache.openejb.client.Client.request(Client.java:140)
>         at
> org.apache.openejb.client.JNDIContext.request(JNDIContext.java:236)
>         at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:443)
>         ... 7 more
> Caused by: java.lang.ClassNotFoundException:
> test/remote/interfaces/AuthenticationService
>         at java.base/java.lang.Class.forName0(Native Method)
>         at java.base/java.lang.Class.forName(Class.java:398)
>         at
> org.apache.openejb.client.EjbObjectInputStream.resolveClass(EjbObjectInputStream.java:76)
>         at java.base/java.io
> .ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1886)
>         at java.base/java.io
> .ObjectInputStream.readClassDesc(ObjectInputStream.java:1772)
>         at java.base/java.io
> .ObjectInputStream.readClass(ObjectInputStream.java:1737)
>         at java.base/java.io
> .ObjectInputStream.readObject0(ObjectInputStream.java:1577)
>         at java.base/java.io
> .ObjectInputStream.readObject(ObjectInputStream.java:430)
>         at
> org.apache.openejb.client.EJBMetaDataImpl.readExternal(EJBMetaDataImpl.java:291)
>         at java.base/java.io
> .ObjectInputStream.readExternalData(ObjectInputStream.java:2136)
>         at java.base/java.io
> .ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2085)
>         at java.base/java.io
> .ObjectInputStream.readObject0(ObjectInputStream.java:1594)
>         at java.base/java.io
> .ObjectInputStream.readObject(ObjectInputStream.java:430)
>         at
> org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:99)
>         at org.apache.openejb.client.Client.processRequest(Client.java:327)
>         ... 10 more
>
>
> Thank you,
> Dignesh,
>
>
>
>

Reply via email to