persistence@glassfish.java.net

Re: Problem loading Entity from EJB

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Tue, 27 Jun 2006 17:03:49 -0400

Mitesh Meswani wrote:

> toplink-essentials-agent.jar should not be needed on appclient.

Thanks Mitesh. Dyego, try it without that one. I've also updated the
stand-alone EJB client portion of our EJB FAQ to cover this case :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

 --ken

>
>
> Thanks,
> Mitesh
>
> Kenneth Saks wrote:
>
>> Dyego Souza Dantas Leal wrote:
>>
>>>
>>> THE PROBLEM IS SOLVED !!!! THIS IS NOT BUG , IS BUG IS IN MY BRAIN !!!
>>>
>>>
>>> In the client , the Toplink Essentials libs MUST in ClassPath
>>> (toplink-essentials.jar and toplink-essentials-agent.jar).... if
>>> not... the error occurs...
>>
>>
>> Dyego, are you sure you need both? Can someone comment on when each
>> of these jars is needed for a client that uses
>> the Java Persistence API. Our Application Client Container classpath
>> only includes
>> toplink-essentials.jar. Thanks.
>>
>> --ken
>>
>>>
>>>
>>> Please... put them in faq !!!!
>>>
>>>
>>> Hey Kenneth Saks !!! thank you in advance !!!
>>>
>>>
>>>
>>> Ken Cavanaugh escreveu:
>>>
>>>> Kenneth Saks wrote:
>>>>
>>>>> Dyego Souza Dantas Leal wrote:
>>>>>
>>>>>> Ok , same error occurs...
>>>>>>
>>>>>>
>>>>>> The Client Code:
>>>>>>
>>>>>>
>>>>>> TabelaCustaSessionRemote control =
>>>>>> client.getRemoteSessionBean(TabelaCustaSessionRemote.class);
>>>>>> System.out.println("getTabela(1)");
>>>>>> dummy.example.entity.Tabelacusta tabCustaRecuperado;
>>>>>> tabCustaRecuperado = control.getTabela(137);
>>>>>> System.out.println("The Object "+tabCustaRecuperado);
>>>>>>
>>>>>>
>>>>>> 27/06/2006 15:15:38
>>>>>> com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
>>>>>> WARNING: "IOP00810257: (MARSHAL) Could not find class"
>>>>>
>>>>>
>>>>>
>>>>> Corba team,
>>>>>
>>>>> Is there a debug flag that will print out which class is not being
>>>>> found?
>>>>
>>>>
>>>> Unfortunately there is no direct flag for this, but the ORB
>>>> transport debug flag may provide some information. It may in fact
>>>> add too much information in other areas.
>>>>
>>>> This can be enabled by setting the property
>>>> com.sun.corba.ee.ORBDebug to "transport".
>>>>
>>>> We should add the name of the class to the ORB log message when
>>>> this error occurs.
>>>>
>>>> Ken.
>>>>
>>>
>>>
>>
>>