cancel
Showing results for 
Search instead for 
Did you mean: 

Get SSO String failed in web dynpro

Former Member
0 Kudos

Hi, All

I was trying to get SSO in order to login the SAP System in web dynpro

In my DC, I had added "security.class" and "tc/sec/destinations/interface" as used DC.

In the web pynpro reference->Service references

I had added "tcsecdestinationsservice" and "tcsecdestinationsservice" 2 items.

My code is:

InitialContext ctx = null;

try {

ctx = new InitialContext();

} catch (NamingException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

//Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());

Object obj = null;

try {

obj = ctx.lookup(DestinationService.JNDI_KEY);

} catch (NamingException e1) {

// TODO Auto-generated catch block

e1.printStackTrace();

}

final DestinationService dstService = (DestinationService) obj;

RFCDestination dst1 = (RFCDestination) (dstService.getDestination("RFC",

"myDst"));

But when i build the project: An errror occurs :

"The type com.sap.security.core.server.util0.IDException cannot be resolved. It is indirectly referenced from required .class files"

So what is the reason?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Add this used DC:

com.sap.exception

Former Member
0 Kudos

Hi Kevin,

Did you get any solution for this problem as me too getting the same error?

Thanks & Best Regards,

Vivek

Former Member
0 Kudos

Hi, Vivek:

What i know you can use jsp to get the String of "MYSAPSSO2" from cookie, you shold combine the portal component with web dynpro

But i haven't managed to make it. So this is the idea, if you manage to make it, please tell me.