on 2007 Jul 19 1:19 PM
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.
Can you check if your application-j2ee-engine.xml has the destination service references? It should be as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
<application-j2ee-engine>
<reference
reference-type="hard">
<reference-target
provider-name="sap.com"
target-type="service">tcsecdestinations~service</reference-target>
</reference>
<provider-name>sap.com</provider-name>
<fail-over-enable
mode="disable"/>
</application-j2ee-engine>
Regards
Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.