|
|
|
Re: Call EJB from RAP on JBoss [message #66622 is a reply to message #65708] |
Fri, 14 December 2007 22:57 |
Eclipse User |
|
|
|
Originally posted by: b.muskalla.gmx.net
Thanks!
Val wrote:
> Hi
>
> I was glad to help, have added a new faq with name : "How do I remote
> call EJB's from an Jboss 4.x AS"
>
> Cheers,
> Val
>
> Benjamin Muskalla wrote:
>> For those who are interested: this problem was discussed on the equinox
>> newsgroup.
>>
>> Val - do you have any interest to share your experiences with the other
>> RAP devs? Like adding a new FAQ (http://wiki.eclipse.org/RapFaq) entry? :)
>>
>> Greets
>> Benny
>>
>> Val wrote:
>>> Hi
>>>
>>> I have deployed RAP as a war on Jboss
>>> I want to call EJBs through the local interface which are deployed in
>>> an ear on JBoss.
>>>
>>> When trying to get an instance of the EJB I have an ClassCastError
>>>
>>> Here is the code I use :
>>>
>>> InitialContext ctx = new InitialContext();
>>> Object obj = ctx.lookup("TestLocal");
>>> TestLocalHome home = (TestLocalHome) obj;
>>>
>>> and the error :
>>>
>>> java.lang.ClassCastException: $Proxy85 cannot be cast to
>>> test.interfaces.TestLocalHome
>>>
>>> in the file launch.ini of the war I have :
>>>
>>> osgi.parentClassloader=app
>>> osgi.contextClassLoaderParent=ccl
>>>
>>> Thanks for your help
>>> Val
|
|
|
Powered by
FUDForum. Page generated in 0.05365 seconds