Does ServiceToService works well... ???

Hi all,
I got a problem with my S2S connection. When I run the S2S connection from my machine it works perfectly and I succeed to do everything I want in ContentDB. When I deploy the service S2S the problems are coming out. It seems like the Session is not connected.
I also tried to put the service S2S in .jar to be used by others web services but it did not work. The same message is coming out again !!!
Here is the error message :
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://laconnexiontest/types/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Internal Server Error (Caught exception while handling request: ORACLE.FDK.SessionError:ORACLE.FDK.SessionNotConnected)</faultstring></env:Fault></env:Body></env:Envelope>
I dont see why it works on my machine but I does not work when I put it in .jar or when I deploy it. I dont understand what is the problem. Can someone help me with that ?
I have been using the fallowing example : S2S connection from Oracle ContentDB API.
Tx in advance to help me !!!
Pat

Hi Pat,
I just created a simple servlet that utilizes service to service authentication and deployed it to IAS 10.1.2 and it worked perfectly.
Maybe you could try the following code out :-
index.html :-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
    <meta http-equiv="refresh" content="1;URL=servlet/"></meta>
  </head>
  <body></body>
</html>
ContentDBServlet.java :-
package oracle.ifs.examples.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import oracle.ifs.fdk.AttributeRequest;
import oracle.ifs.fdk.Attributes;
import oracle.ifs.fdk.ClientUtils;
import oracle.ifs.fdk.FdkException;
import oracle.ifs.fdk.FileManager;
import oracle.ifs.fdk.Item;
import oracle.ifs.fdk.ManagersFactory;
import oracle.ifs.fdk.S2SFdkCredential;
public class ContentDBServlet extends HttpServlet
  private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
  public final String S2S_AdminUserName = "orcladmin";
  public final String S2S_APPName = "orclapplicationcommonname=ifsbpel,cn=ifs,cn=products,cn=oraclecontext";
  public final String S2S_APPPwd = "oracle10g";
  public final String S2S_CDBUrl = "http://ssdvoiadu.dev.local.csst.qc.ca:7779/content/ws";
  public void init(ServletConfig config) throws ServletException
    super.init(config);
  public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    out.println("<html><head><title>Content DB Servlet</title></head><body>");
    ManagersFactory session = null;
    try
      session = ManagersFactory.login(new S2SFdkCredential(
        S2S_AdminUserName, S2S_APPName, S2S_APPPwd, null), S2S_CDBUrl);
      AttributeRequest[] requestedAttributes = new AttributeRequest[]
        ClientUtils.newAttributeRequest(Attributes.PERSONAL_WORKSPACE)
      Item user = session.getUser(requestedAttributes);
      Map m = ClientUtils.namedValuesToMap(user.getRequestedAttributes());
      Item homeFolder = (Item) m.get(Attributes.PERSONAL_WORKSPACE);
      out.println("Logged in as: " + user.getName());
      if (homeFolder != null)
        out.println("Contents of "+homeFolder.getName()+" ... ");
        FileManager fileM = session.getFileManager();
        Item[] items = fileM.listFolder(homeFolder.getId(), null, null);
        int length = (items==null) ? 0 : items.length;
        for (int ii=0; ii<length; ii++)
          out.println(items[ii].getId()+" "+
            items[ii].getName()+" ("+items[ii].getType()+")");
    catch (Exception e)
      if (e instanceof FdkException)
        FdkException fe = (FdkException) e;
        out.println("FdkException: ");
        out.println("Error Code: "+fe.getErrorCode());
        out.println("Detailed Error Code: "+fe.getDetailedErrorCode());
      e.printStackTrace(out);
    finally
      try
        if (session != null)
          session.logout();
      catch (Exception ignore) {}
    out.println("</body></html>");
    out.flush();
    out.close();
web.xml :-
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <servlet>
    <servlet-name>ContentDBServlet</servlet-name>
    <servlet-class>oracle.ifs.examples.servlet.ContentDBServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>ContentDBServlet</servlet-name>
    <url-pattern>/servlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>ContentDBServlet</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>35</session-timeout>
  </session-config>
  <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
  </mime-mapping>
</web-app>
orion-web.xml :-
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE orion-web-app PUBLIC "-//ORACLE//DTD OC4J Web Application 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd">
<orion-web-app servlet-webdir="">
  <classpath path="/home/oracle/cdb/lib/axis.jar"/>
  <classpath path="/home/oracle/cdb/lib/commons-discovery-0.2.jar"/>
  <classpath path="/home/oracle/cdb/lib/commons-logging-1.0.3.jar"/>
  <classpath path="/home/oracle/cdb/lib/jaxrpc.jar"/>
  <classpath path="/home/oracle/cdb/lib/saaj.jar"/>
  <classpath path="/home/oracle/cdb/lib/wsdl4j-1.5.1.jar"/>
  <classpath path="/home/oracle/cdb/lib/activation.jar"/>
  <classpath path="/home/oracle/cdb/lib/mail.jar"/>
  <classpath path="/home/oracle/cdb/lib/content-ws-client.jar"/>
  <classpath path="/home/oracle/cdb/lib/cdb-devkit-client.jar"/>
  <classpath path="/home/oracle/cdb/lib/http_client.jar"/>
</orion-web-app>The output I received :-
Logged in as: orcladmin
Contents of orcladmin ...
70368 Private Documents (FOLDER)
70385 Published Documents (FOLDER)
70405 Shared Folders (FOLDER)
70345 Trash (TRASH_FOLDER)Anyway, it looks like you are trying to embed the CDB web services in an existing web service.
Things that may be causing you grief :-
JDK version - the devkit was developed using Sun's j2sdk1.4.2
Library/Class conflicts - the classloader may be referencing outdated or newer libraries than those shipped with the CDB devkit.
Are you trying to serialize/store ManagersFactory?
Anyway, I can confirm that S2S works perfectly from a servlet based on Servlet 2.3 spec running from J2EE 1.3.
The next thing I would probably try is a packet capture to see what SOAP (and HTTP) packets are being exchanged.
thanks
Matt.

Similar Messages

  • Safari 5.1.1 I no longer have access to my bookmark folders, just a search that does not work well. How can I retrieve access to bookmark folders?

    OS 10.6.8 Safari 5.1.1 I no longer have access to the bookmark folders. There is just a search function that does not work well. Is there any way to get access back to my bookmark folders?

    This site didn't say anything about one wrong ID, but only talks about changing the Apple ID.  If it didn't work the first time why should it work now?

  • Is anyone using NETGEAR Push2TV with a MacBook Pro and AirPort Extreme and does it work well for you?

    I am interested in buying a NETGEAR Push2TV display TV streamer to use with my MacBook Pro and AirPort Extreme.
    I saw on the Netgear site that a Intel Wireless Display/WIFI driver software is required for PC's; do we have this software installed already on our MacBook Pro's? Is any one using this box and does it work well for you, any problems or setup issues?

    trying to find out same thing , store said works with new intel processor, My mini dont finding.....

  • TA48312 now my iphone4 version is 6.0.1, personal hotspot does not works well as before, so i want to upgrade back to the old version 4.3.5,please help me

    now my iphone4 version is 6.0.1, personal hotspot does not works well as before, so i want to upgrade back to the old version 4.3.5,please help me.

    Downgrading is Not supported by Apple.
    Unauthorized modification of iOS
    http://support.apple.com/kb/HT3743

  • Does Lightroom work well with hiDPI Windows 8.1 touchscreen ultrabooks?

    Hi all,
    My old laptop is on the fritz, shopping for a new one.
    Apart from the Web, the application I use the most is Lightroom.
    I've been interested in the nice new ultrabooks, but I'm wondering: does Lightroom work well with hiDPI Windows 8.1 touchscreen ultrabooks?
    Is hiDPI advantageous, or actually annoying?
    What can you actually use touch for in Lightroom, and does it improve your workflow?
    Thanks kindly!

    I am not 100% sure whether lightroom supports HiDPI on windows but on Mac OS X it is absolutely fantastic (I use a retina MBP). So I would see if you can try it out somewhere. My guess is that Lightroom supports it on Windows too and then I can highly recommend it.
    No clue if touch works well or not for Lightroom. My guess is not as almost always using touch in applications that were not designed for it is very kludgey.

  • Does MyFaces works well in Sun Application Server

    I want to use its upload component, but I found that the AS was not in the compatible list of MyFaces. Is there anyone who has tried MyFaces's upload component in the Sun Application Server? Does it works well? Please tell me. Thank you for your help.

    Thanks.
    I have added the myfaces-extension.jar to my project.
    And followed the instructions, I set the form enctype="multipart/form-data".
    And I have a single checkbox which binded to a bean's property, But after I have added the enctype attribute, the checkbox couldn't be checked. I clicked it and submit, it became unselected. What's the matter?
    Thank you

  • IPhone and Hotmail - does it work well?

    Im trying to talk my father into getting an iPhone, he travels a lot, runs an ebay store, and would be a prime candidate for the iPhones functionality. The only thing is he uses hotmail as his main email. I dont have a hotmail account, and dont want one, so I cant test it. Ive heard that hotmail doesnt play nice with the iPhone, and that you have to get to your hotmail account by browsing it in Safari on the iPhone. Is this true? Or does hotmail work well just like my gmail and Yahoo account do on my iPhone?
    Thanks!

    Hotmail can be accessed via Safari, but it's not ideal. Hotmail does not work with the iPhone Mail app unless you're subscribed to the paid Hotmail Plus (which allows POP access) - that's true in the US at least, although in the UK POP access to Hotmail is free.
    However, there's a $10 3rd party app for Hotmail access that works quite well - mBox Mail.
    http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=292591480&mt=8

  • Hi... i have iphone 5. my phone shows me the apple broken and does not work well . what this means? deppy

    hi... i have iphone 5. my phone shows me the apple broken and does not work well . what this means? deppy

    despoina kiato wrote:
    καμία φορά σταματάει να δουλεύει. σβήνει το κινητό και  μου δηχνει το μήλο σπασμένο.  απενεργοποιήτε  μόνο του . αυτό είναι όλο .
    Englidh would help.

  • HT4061 If my flash does not work well will Apple fix it

    My iPhone  camera flash does not work well, will Apple fix this tin store?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I have aMacBook Pro with Mountain Lion operating system. Does MacKeeper work well with this Operating System

    I have a MacBook Pro with Retina Display. My operating System is Mountain Lion 10.8.5  Does MacKeeper work well with Maontain Lion 10.8.5 and provide good Virus protection? Appreciate the support. 

    The Hatter:
    Thanks for the input.  So far the responses I've received are all the same. I will not be purchasing MacKepper.
    Beracha007

  • Bluetooth does not work well after upgrade to win 8.1 from win 8

    System:                       Dell Inspiron 15R 5520
    Bluetooth hardware:   Intel(R) Centrino(R) Wireless Bluetooth(R) 4.0 + High Speed Adapter
                                         Microsoft Bluetooth Enumerator
    Ever since I upgraded from Win 8 to 8.1, the bluetooth has not been working well.
    The option to browse a remote folder or send a file does not work. 
    I can send a file only by opening the contaning folder, right click, and send to bluetooth, but cannot receive a file unless I go to
    run and then open fsquirt.exe .
    I have unpaired and uninstalled the devices respectively, and then reinstalled and repaired them. But this does not work .either.
    Unfortunately, I am unable to paste  screenshots of the device manager and error messages until I am verified.
    Can anyone give me a solution to this problem?

    Verify that you have the latest drivers for Windows 8.1 installed from the manufacturer's website.
    http://www.dell.com/support/drivers/us/en/19/Product/inspiron-15r-5520

  • Help, my Bridge does not works well with my AfterEffect. does not preview .ffx files

    Hi,
         I have some problem with my Bridge. When i browse preset from my After Effect in Bridge, it won't preview all of the After Effect preset(*.ffx), but my Bridge works well with photoshop files, it will preview all the photo files inculding .PSD. Does anyone knows what's the problem? Anyone knows how to fix it? I need help to fix this problem to get my work in AfterEffect, it is very hard to get things work it won't preview the preset. Thanks.
    Best Regrads,
    Chongkkmy

    Found this link, does it address your problem?
    http://forums.adobe.com/click.jspa?searchID=769246&objectType=2&objectID=1794899

  • New FocusTraversalPolicy Mechanism Does Not Work Well With OO Designs

    I would like to complain about the new focus traversal mechanism not working well with object-oriented GUI designs.
    Specifically, we have many reusable panel classes that can be swapped in and out of reusable dialog classes. On some of these panels, the default focus traversal is not what is desirable, perhaps because one component on the right side of the window is just slightly higher than a component on the left side, maybe due to the component on the right having a label on top, and so the default focus goes to the component on the right instead of the left. So we have a need to be able to explicitly define the order of components in some panels.
    If I try to define a focus traversal policy in the panel's constructor, a NullPointerException is thrown because the panel's focus cycle root is null (the panel has not been added to any dialog or frame yet).
    If I try to associate a focus traversal policy at the dialog level, it would have to explicitly reference its child panels' inner components, which would break the encapsulation of the panels. It would also make it hard to have generic dialog classes into which various reusable panel objects can be swapped.
    Someone suggested making each panel a focus cycle root. This makes it hard to "break out" of one panel to move on to the next panel in the dialog. Special keys would have to be assigned to try to cycle out, and these keys would have to be different than the normal traversal keys, making them inconsistent and nonintuitive to the user. Also, the focus policy would have to know if the dialog had more than one panel, what order the panels were in to know whether to cycle to the next panel or not, etc. This is a mess.
    Does anyone have any idea how to get around these problems? I have tried using a global focus policy with a global hash map of prev/next component key-value pairs, but we are still running into trouble with some deeply nested tabbed dialogs. It's just not possible to always have the focus cycle root in existence at the point where you want to explicitly define traversal between two components, or when you are trying to establish the default component for a panel in a tabbed pane.
    Has anyone else run into similar issues?
    Robbie Gilbert
    [email protected]

    I agree completely. One of the popular consultants on this forum stated that the new focus mechanism was more versatile and only a little more complex. I would say it's more than a little complex given the trouble average programmers are having understanding how it works...at least at first...and after understanding it realizing that they are going to have type their fingers off to update their code. Oh, and the dread of maintaining this awful mess.
    I'm currently having the same problem as you Robbie. Some of my reusable panels need special tab ordering...that's not usually a problem, in most programming environments, till now. Now I have to go around the world and back just to get my stupid cursor to be in the right place when I hit the tab key??!!! and special key mappings just to get out of a focus cycle...lame.
    And how is an IDE graphical designer going to work with this? It's not, that's how...ok maybe if some kind person or company creates a custom focus traversal policy editor of some kind, I don't know.
    Good grief Sun! We need something to help us meet our deadlines, not solutions that force us to spend 80% of our time customizing every stinking bit of UI functionality we need!!!
    JTables are even worse. I've mastered most of the garbage that is JTable after many months of pain and I don't know how I'm going to help my peers understand them in any short amount of time. Most of them were Oracle Forms programmers, not that that is any great solution either. But they will likely have problems.
    In conclusion, I wish I had chosen another UI technology for our new product client, and may yet.

  • Aperture 3 does not work well since installing Mavericks. Constantly have to repair the library database. Any suggestions?

    Aperture 3.5.1 was working well enough for me in Mountain Lion, but it seems that switching to Mavericks has made it slower, made it crash frequently and also given me frequent messages that the database is corrupt and I need to rebuild the database library, which I have done multiple times. I also use Aperture for Photo Stream, and it is especially slow and problematic there. Any ideas? Should I just use iPhoto instead? I'm more familiar with the flow in Aperture and would need to learn how better to use iPhoto, so that would be a last resort for me.

    Aperture 3.5.1 was working well enough for me in Mountain Lion
    Aperture 3.5.1 is incompatible with Mt. Lion - you  must have had an earlier Aperture version running with Mt. Lion.
    also given me frequent messages that the database is corrupt and I need to rebuild the database library
    That message is prompted by the crashes. After a crash your library may need repairing.
    Aperture 3.5.1 was working well enough for me in Mountain Lion, but it seems that switching to Mavericks has made it slower, made it crash frequently
    Is all your software compatible with Mavericks? Plug-ins, external editors, preference panes, device drivers, video codecs? Did you install any other software, when you upgraded to Mavericks?
    Where is your Aperture library? On your system drive or external drive?
    Does Aperture also crash, if you launch it while holding down the Shift key?

  • Does it  work well on Windows Server 2003 (Stratus hardware based cluster)?

    Wonder, how well does Sun's JMS work in Windows Server 2003 environment?
    I want to run it on Stratus Hardware, but found bin only for Lunix and Sun OS???!!!

    I've been running Arch on my fileserver for about two years now.
    It's seen many a "pacman -Syu" and most of the time its survived. I have had a few times where it has refused to boot, but after about 5 minutes with the arch install cd I have been able to fix things up right away.
    All in all, I'd say it works well for my purposes as a webserver and file server, though I did look into mailserver documentation at one time and I deemed it too complex for my doing. It has since been a while, but I have yet to tackle it.
    The nice thing about arch for me, is that since i'm farmilar with it on my desktop, I feel very comfortable working on it and maintaining it over say Debian or Gentoo.
    If you're willing to spend some time on configuration of your mailserver then go for it. Heck, if you find an easier way to do things then add it to the Wiki!
    Anways just for refrence...
    http://wiki.archlinux.org/index.php/Hula_Howto
    http://wiki.archlinux.org/index.php/PostFix_Howto
    http://wiki.archlinux.org/index.php/Exi … MTP_server
    Apache, PHP, MYSQL work like a dream on arch and are VERY easy to setup, so no problems there. I'd say go for it and take the time to figure out the proper way to setup postfix for your situation.
    Regardless of what you choose, best of luck!

Maybe you are looking for

  • Smart Playlists: a beginners guide

    Hi all! If you're like me, you probably couldn't wait to load all your music onto your iPod, but you very quickly realized that the twenty odd days of music in your computer will never fit into your iPod. Below is a guide for maximizing your iPod spa

  • [JS] (CS3) How to create Session Variable

    Is there a way to create an Array for the current InDesign session and access/modify its value with scripts? I already have a Startup script with #target indesign & #targetengine "session" declared, but creating a variable (xxx = new Array;) doesn't

  • How to modify a Master Slide on a single page.

    I am wondering how to modify the master slide on a particular slide. Like in InDesign when you hold shift + ctrl you can select items from the master page and modify them on that particular page only, without making the changes to every page where th

  • ITunes freezes when I connect my iPad2

    I recently bought an iPad2 but have not been able to sync it with iTunes yet, because every time I connect the iPad, iTunes freezes and becomes unresponsive. I use a Sony Vaio laptop with Windows 7 64-bit Professional, and the latest version of iTune

  • How can I set a video transition at a default length ?

    I want to set the length of a video transition at a 2 second default. How can I do this /