WebSphere Application Server - Re: classcast exception when casting localhome object to localhome

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > September 2006 > Re: classcast exception when casting localhome object to localhome





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: classcast exception when casting localhome object to localhome

2006-09-22, 7:31 pm

hello All

as the info center says....
In order for a module or a bean to reference the local interface of an enterprise bean, the referenced bean must be included in the same enterprise application (EAR) as the module or bean that is referencing it

I got into the same problem and try different things because I though it was the approach (use local interface whit in the same jvm) but the spec only requires it for the same EAR, I think it should be supported some how for anything running in the same J
VM

As Rschnier said the applications are in different classloaders so the objects are different in runtime

Robert I try what you say but it does not find the class in the parent classloader (java.lang.NoClassDefFoundError) I guess that the class is only in the ear owner classloader but in the parent classloader.

JDP

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com