Skip to Content
author's profile photo Former Member
Former Member

Get SSO String failed in web dynpro

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2005 at 11:05 AM

    Hi Kevin,

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

    Thanks & Best Regards,

    Vivek

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:48 AM

    Add this used DC:

    com.sap.exception

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.