How to connect to R/3 via JCo using MYSAPSSO2?

Hello!
I'm developing a J2EE application who resides in an EP with Single Sign On. I have to retrieve some data from R/3, the way I want to connect is via JCo using MYSAPSSO.
I have read that is possible to connect passing MYSAPSSO2 as <i>user</i> and its value as <i>password</i>. The java code in the jsp is something like this:
javax.servlet.http.Cookie [] my_cookies = request.getCookies();
java.util.Hashtable cks = new Hashtable();
for(int i=0;i<my_cookies.length;i++){
     cks.put(my_cookies<i>.getName(),java.net.URLDecoder.decode(my_cookies<i>.getValue()));
String user = "$MYSAPSSO2$";
String pass = (String)cks.get("MYSAPSSO2");
JCO.Client conex;
JCO.Repository rep;
boolean ok=true;
conex = JCO.createClient("000",user,pass,"es","192.168.0.1","00","","");
try{
     conex.connect();
     rep = new JCO.Repository("mirep",conex);
} catch (Exception e){
     out.write("<br>"e"<br>");
     ok = false;
if (ok)
     conex.disconnect();
We are working with EP6 SP2, WAS 6.20.
The error is:
com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Se ha recibido un ticket SSP que no se puede interpretar
(I translate you:)
RFC_ERROR_LOGON_FAILURE: unable to interpret a retrieved SSP ticket
Thank you all!!

Ok!
I have solve the problem. So, I was trying to connect via SSO within an user that was not registered in R/3 and I forgot it.
Sorry for the inconvenience.

Similar Messages

  • How to connect HP photosmart 3310 via wifi to mac os x 10.8

    How to connect HP Photosmart 3310 via wi fi to Mac OS X 10.8 computer
    This question was solved.
    View Solution.

    Printers do not have any routers built into them.  You buy a wireless router separately.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • HT204387 Hello!  Can anyone teach me how to connect iphone 4S to ipad retina using bluetooth. I tried, but the devices won't discover each other at all. I just wanted to connect to share contact details so I don't have to key in one by one.   Many thanks

    Hello!
    Can anyone teach me how to connect iphone 4S to ipad retina using bluetooth. I tried, but the devices won't discover each other at all. I just wanted to connect to share contact details so I don't have to key in one by one.
    Many thanks
    Injin

    You need to go to the App stores and find compatible apps. iOS device do not natively have to ability to transfer info to a computer via BT to a computer.
    With iOS 8 you can use AirDrop

  • How to connect sybase database in JDeveloper 11g using JConnect

    Hi
    How to connect sybase database in JDeveloper 11g using JConnect? Please help.

    User,
    It would help if you explained Sybase Jconnect instead of leaving us to google.
    At any rate, it appears you need to create a library definition in JDeveloper, add the appropriate JConnect JAR files to the library's classpath, and then add the library to your project.
    John

  • How to connect iphone 5 with ipad 2 using Bluetooth? When  I activate Bluetooth both devices search but not listing each other to pair or connect.

    How to connect iphone 5 with ipad 2 using Bluetooth? When  I activate Bluetooth both devices search but not listing each other to pair or connect.

    You can use Photo Transfer App to transfer photos from iPhone to iPad or vice versa using Bluetooth or WiFi
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/3dd129795daebebc4b8 741b057f5f70d.jpg
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/3af5c541040e15e3f6b 3356e4c55cbfc.jpg

  • How to screen capture windows 7 via parallels using 27" iMac

    How to screen capture windows 7 via parallels using 27" iMac

    Just like you would with a Mac. Command shift 3 captures the whole screen to yourMac desktop and command shift 4 will capture a selection to the Mac desktop.

  • Does anyone know how to connect there computer to the enternet using iphone

    I was wanting to know how to connect my computer to the internet using my iphone.

    You can't, not supported

  • How to connect APEX with MYSQL via Apex's Database link

    How do i connect APEX with MYSQL via Apex's Database link? The OBE doesn't go into specific detail about how to link the two.
    can someone please elaborate on what these are and where i can find them in mysql:
    Database Link Name      
    Connect To Schema      
    Password      
    Remote Hostname or IP      
    Remote Host Port      
    SID or Service Name      
    I need to link to mysql database so I can set up a 3D pie chart in apex

    Hi jononioo
    A database link is a device for connecting between Oracle database instances only. Oracle does have a method for connecting to other database systems (Transparent Gateway) but this is restricted to other commercial databases and I don't believe there is a gateway for Mysql. (I could be wrong)
    I don't know Mysql but maybe there is some way to push data to the Oracle instance. Other than that, is there any reason why the data has to reside in the Mysql database?
    Regards
    Andre

  • How to connect my Nokia 5230 to internet using Blu...

    I would like to be able to connect my mobile (Nokia 5230) to internet without using the GPRS connection.
    The only option I can see, is to connect my mobile to my PC (which has an internet connection) via bluetooth or USB and share the pc internet connection with my mobile.
    How can I do that?
    I would like to use OVI store but the only option is "Send to Mobile" It seems that it is not possible to download a file on the PC and then send it to the mobile . If I coudl share my PC internet connection with my mobile I will be in a position where I could use OVI store
    I found this post at,
    http://discussion.forum.nokia.com/forum/showthread.php?206301-How-to-connect-my-Nokia-5230-to-intern...
    While trying to find an answer to this.
    Sajit

    What you're asking is not possible. There was a piece of software called GNUBox that might have done the trick but it seems to be more or less abandoned.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • How to connect iphone 5 to ipad 2 using bluetooth

    for playing multiplayer games

    Use Bluetooth to  your iPhone, iPod touch, or iPad
    http://www.macworld.com/article/1159258/bluetooth_ing.html
    How to Connect an iPad to an iPhone Via Bluetooth ing
    http://techtips.salon.com/connect-ipad-iphone-via-bluetooth-ing-25472.html
    How to Pair Bluetooth Device to iPad
    http://www.ehow.com/how_6194904_pair-bluetooth-device-ipad.html
     Cheers, Tom

  • How to connect my loptop to my tv using hdmi

    how do i connect my loptop to my tv using hdmi i have it hooked up but how do i get tv to identify my computer 

    Try this: Connecting Notebook to TV with HDMINote that the Computer should be Shut Down when the HDMI cable is connected.Turn off both the computer and the TV.Connect the HDMI cable to the computer and TV.Switch on the TV.  Adjust the TV settings to receive HDMI audio.Boot the computer to allow it to detect the connection to the TV.Start > Control Panel > icon view >Sound >Playback tab > Select HDMI as Default Device > OK If it doesn’t “take” the first time, REPEAT one or more times. I hope this helps.Say “Thanks!” by clicking Kudos Star in the Post that helped you.Mark a Post “Accepted Solution” to say your issue is solved.  

  • How to connect my Iphone to the itune using my laptop?, how to connect my Iphone to the itune using my laptop?

    I cannot ofpen my iphone until i did'nt connect to itunes by using cable thrue laptop, i don't know how to connect.

    Sorry, you can't do what you want. So, pick one of the two computers & stick with that computer.

  • How to connect to ORACLE 10g Express Edition using struts?

    HI! There
    I am using Oracle Jdeveloper as IDE, JBoss as application server, Oracle 10G Express edition as DBMS. As I am new to Struts & Jboss, so Can anybody tell me that How to connect to Database? Please also give Struts-config.xml datasource config too.
    If someone can give a set of codes to enter and retrieve the data to/from database it will be really help full for me. Well connectivity with any version e.g. 9i, 10g, 10g XE will do......
    Thanks

    Well I have already configure a datasource in struts-config.xml as Stated below:
    <data-sources>
    <data-source>
    <set-property property="autoCommit" value="false"/>
    <set-property property="description" value="Data Source Config. for SMS"/>
    <set-property property="driverClass" value="oracle.jdbc.OracleDriver"/>
    <set-property property="maxCount" value="4"/>
    <set-property property="minCount" value="2"/>
    <set-property property="password" value="password"/>
    <set-property property="url" value="jdbc:oracle:thin:@127.0.0.1:1521:XE"/> <set-property property="user" value="sms"/>
    </data-source>
    </data-sources>
    Now the Only problem That I am facing is how to look up this data source from a Java file of Model layer.
    Please Guide me further

  • How to connect to DB on anaother computer using sqlplus?

    db name - GMNA
    server - tst033
    How to connect???
    sqlplus <user>@GMNA.tst033 - it does not work

    or you can even go with EZCONNECT
    sqlplus
    user/password@server:port/instance
    so
    user/password@tst033:1521/GMNA
    port can be ignored if defaulted to 1521.

  • WIP310-G2: how to connect to an specific VoIP provider using SIP ?

    Dear all,
    I just received a WIP310-G2 and I am wondering how -or whether- I can configure it to connect to an specific Internet based VoIP provider using SIP
    Cant seem to find how to do it....
    Thanks a lot,
    Alvaro

    You connect your WIP310 to your PC using an USB cable. Then lookup the IP-adresse on the phone and enter that into a browser.
    In the UI select Admin Logon and you can enter all the configuration details for your VoIP provider. I would recommned that you ask your VoIP provider to help you with a guide.
    I used a PAP2T configuration example that worked for my WIP310, which I got from my VoIP provider.

Maybe you are looking for

  • How to call external java functions in XSLT Mapping Programs

    Hi All, I am unable to call java programs in XSLT MAPPING. I tried by following the blog...but getting error : XSLT Mapping With JAVA Enhancement ( For Beginners) I need some input from you all. Waiting For quick reply. Rgds Somu.

  • ? How to compare whats in my Micro to what's in my Rhapsody Libra

    Hi, I just got my Micro Zen this weekend at Wallyworld. And I love it. I am currently using the Rhapsody to go subscription and it says I have some 827 tracks in it right now. I wasn't thinking when I first started using my Micro (first time MP3 owne

  • Standard Transaction

    Hi, Can anyone help me with a standard transaction with Tree control? where the columns in Tree control should be editable. Pls help Thanks in advance

  • I have less than 200 pictures on my iPhone, but it is showing that I have over 1600 on it...

    I have less than 200 pictures on my iPhone, but it is saying that there is 8 GB of storage used and over 1600 pictures on the iPhone, I have checked everything that I know how, is there someplace that iOS 8.2 hides additional pictures?

  • Mobility Secure Mode

    Hello, We are working with WLC 5508 version 7.0.98.0 and we want to secure (encrypt) mobility messages between controllers but the command "config mobility secure-mode enable" apparently doesn't exist in this WLC version. Does anybody know how to con