Hello All,
We have EJBs that are using the destination service.
Here is part of the code:
InitialContext ctx = new InitialContext(); DestinationService dstService = (DestinationService) ctx.lookup(DestinationService.JNDI_KEY);
It worked fine until we upgraded from nw7.0 sp11 to nw7.0 sp12.
Now we get a ClassCastException in all those EJBs.
When I use the next code line:
Object obj = ctx.lookup(DestinationService.JNDI_KEY);
obj is of type com.sap.security.core.server.destinations.service.LocalDestinationServiceImpl
I didn't succeed getting any information on class LocalDestinationServiceImpl
but when I use the next code line instead:
LocalDestinationServiceImpl dstService2 = (LocalDestinationServiceImpl) ctx.lookup(DestinationService.JNDI_KEY);
I still get ClassCastException.
Anyone knows what can be the problem?
Thanks for you time, Adi.