Whats the version of the server?
1.6.0 or trunk?

[]s,
Thiago.



On Thu, Nov 28, 2013 at 2:15 PM, Leonardo K. Shikida <[email protected]>wrote:

> Hi
>
> Just noticed that when I code something like
>
>         ejbContainer = EJBContainer.createEJBContainer(p);
>         context = ejbContainer.getContext();
>
>         networkDriversConfigurationFacadeEJB =
> (NetworkDriversConfigurationFacadeEJB2)
>
> context.lookup("java:global/NEAS/"+NetworkDriversConfigurationFacadeEJB2.class.getSimpleName());
>
> and NetworkDriversConfigurationFacadeEJB2 is a class that does not
> implement any interface, it works.
>
> but if I implement any interface in NetworkDriversConfigurationFacadeEJB2,
> I get an exception like
>
>  java.lang.ClassCastException: com.sun.proxy.$Proxy105 cannot be cast to...
>
> is that expected?
>
> []
>
> Leo
>

Reply via email to