How to use the API of the IOM in Self Service identity custom region

Hi all

I developed a custom in Self Service identity using this guide area: customization of the Interface - 11 g Release 2 (11.1.2.1.0)

Inside this area, I have a simple form that allows the creation of users. This form uses the API of the IOM, in particular the following line:

UserManager usermgr = Platform.getService(UserManager.class);

The error I got is:

< error > < oracle.iam.platform.utils.SpringBeanFactory > < BEA-000000 > < parsin instantiation Spring Bean Factory Failed.IOExceptiong XML document resource path of class [META-INF/iam-spring-config. XML]; nested exception is java.io.FileNotFoundException: resource path of class [META-INF/AIm-spring-config.] XML] could not be opened because there is no >

I use it because I think that I am inside the ISS. For this reason I don't want to use the client method to retrieve the UserManager (which obviously works):

        String ctxFactory = "weblogic.jndi.WLInitialContextFactory";
        String serverURL = "t3://" + HOSTNAME + ":" + PORT;
        
        Hashtable env = new Hashtable();
        env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, ctxFactory);
        env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, serverURL);
        
        OIMClient oimClient = new OIMClient(env);
        try {
            oimClient.login(OIM_USERNAME, OIM_PASSWORD.toCharArray());
        } catch(LoginException e) {
            e.printStackTrace();
        }
        UserManager usermgr = client.getService(UserManager.class);

It is possible to use the UserManager methods in this case?

Thanks in advance for your help.

Manual

Solved.

Just replace

UserManager usrmgr = Platform.getService(UserManager.class);

with

UserManager usermgr = OIMClientFactory.getUserManager();

Manual

Tags: Fusion Middleware

Similar Questions

  • How to: use the HP Test Fax Service

    Did you know that HP has a test fax service in which you can test sending and receiving a fax. This is particularly useful if you have a problem sending or receiving. Alternatively, you can isolate the issue is on your end or the other end. If you can successfully send a fax and receive an everything using the Test Service of fax HP, this means that your fax is working properly. If you're still sending or receiving from other chances to fax numbers that the problem is on their end.

    How to use the Fax Service to Test HP - HP Officejet Pro 8500 first All-- One A909n Printer in

    How to use the HP Test Fax Service

    I hope this helps someone. If anyone has any questions about the service or fax problems, I'd be more than happy to help.

  • How to use the Smart zero 4.4.0 customer service and HP Profile Editor to activate chip cards

    I have a T610 HP Smart Thin Client from scratch and I get zero Smart software to recognize the card chip when connecting. How to use the Smart zero 4.4.0 customer service and HP Profile Editor to activate chip cards. You can configure without the profile HP of the XML editor.

    Mike Sieradzki

    Hello ski_mike.

    Welcome to the HP Forums. I understand that you want to support with your Smart Client zero. However, it is a commercial product. To get assistance, thank you for posting your question on the business Forums HP: HP Enterprise Business Community

    Thank you

    Mario

  • How to customize the pages of Self Service

    Hi all

    How to customize the pages of Self Service. Guide kindly emergency.

    Thank you
    Mr. Bilal

    You can take these steps
    ==============

    -> Profile set Customize option % Self Serv % Def % Yes at the user level (you use to customize the user).
    -> Go to the page you want to customize
    -> Page-click Customize in global top menu of the page.
    -> Click on the button Choose context and select the responsibility for which you want to customize the element (clear, all other fields such as site, organization, location, function, industry)
    -> Button click on apply. You will get the hierarichy page.
    -> Now the identity of the item, you need to customize and click Customize (pencil icon).
    -> True/false property rendered set (if you want to hide the item to false to show true set) and apply.
    Back at the request of->

    You can see more information on these links

    http://apps2fusion.com/at/43-SS/453-OAF-extension-case-study

  • How to identify the different environments (Self Service)

    Hello

    with shapes, we can set the sitename site level profile option and it will PROD, TEST, etc. DEV.

    Is there anyway that we can do with the side self-service Apps?

    Or, are there other ways to tell user what environment they are connected to?

    Thank you very much

    Hello

    In my view, that there is no other way. Log an SR to confirm this with the support of the Oracle.

    Kind regards
    Hussein

  • Can someone explain how to use the addProcessFormChildData API?

    Hi gurus:
    I have a scenario where; I need groups implemented in AD using AD connector as part of provisioning of the IOM to AD users. These Don t groups are already available in IOM, but these are received as parameters of authoritative source.
    I read the different thread, but can not find how to use the addProcessFormChildData API to perform these forms of child.
    Any help would be greatly appreciated!
    PD: My English is very bad!

    Use this post

    How to remove data from the user for the child form?

    How to find the key to AD provisioning process instance

    These will be useful.

  • How to use the queue data Structures stack?

    Hi all, you can tell me how to use the queue, stack, the link in the list... Structures of data in the project of BlackBerry? Thanks for any suggestions!

    BlackBerry devices are not java desktop running. you are limited to the blackberry api, basically j2me + rim extensions, based on java 1.3/1.4 (no enums, no generic, many collections not impl etc.).

    Remove your JRE6 and change your code until there is no more error.

  • How to use the parameter B-BIS in a factory of connections

    How to use the parameter B-BIS in a factory of connections (OS 5.0)?

    I have found no no API for it.

    Maybe http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/io/transport/options/BisBOptio... ?

  • I don't know how to use the method (PDDrawPageOrCosObjectToBuffer) in the Mac environment.

    Use the method of PDDrawPageOrCosObjectToBuffer of Acrobat SDK from DC () in the Mac environment,

    I want to get a screenshot of the PDF in the bitmap to the screen.

    A description of PDDrawPageOrCosObjectToBuffer () in Acrobat DC SDK API references, but I do not understand how to use the method.

    Please tell me this use.

    If there is a code example using PDDrawPageOrCosObjectToBuffer (), I'm happy.

    Hello

    My code is finally working with PDDrawPageOrCosObjectToBuffer. I hope it helps someone:

    void releaseBufferForCG (void * / * info * /, const void * data, size_t / * size * /)

    {

    Free ((void*) Data);

    }

    CGImageRef CAcrobatBitmapCreator::ConvertToBitmap (const PDPage & i_rPDPage,

    ASFixedMatrix & i_rTransform,

    int & i_rBitmapWidth,

    int & i_rBitmapHeight)

    {

    Get the rect in user-space coordinates update

    ASRealRect updateRectReal = {0,0,0,0};

    ASFixedRect boxFixed;

    PDPageGetBBox (i_rPDPage & boxFixed);

    updateRectReal.top = ASFixedToFloat (boxFixed.top);

    updateRectReal.left = ASFixedToFloat (boxFixed.left);

    updateRectReal.right = ASFixedToFloat (boxFixed.right);

    updateRectReal.bottom = ASFixedToFloat (boxFixed.bottom);

    Convert the fixed transformation matrix to real

    ASRealMatrix transformReal = {0, 0, 0, 0, 0, 0};

    transformReal.a = ASFixedToFloat (i_rTransform.a);

    transformReal.b = ASFixedToFloat (i_rTransform.b);

    transformReal.c = ASFixedToFloat (i_rTransform.c);

    transformReal.d = ASFixedToFloat (i_rTransform.d);

    transformReal.tx = ASFixedToFloat (i_rTransform.h);

    transformReal.ty = ASFixedToFloat (i_rTransform.v);

    ASRealRect destRectReal = {0, i_rBitmapHeight, i_rBitmapWidth, 0}; l, r, t, b

    Prepare the buffer for drawing https://forums.adobe.com/thread/1850089

    This first call to PDDrawPageOrCosObjectToBuffer is only used to get the size of the buffer.

    ASCab flags = ASCabNew();

    ASInt32 bitsPerChannel = 8;

    ASUns32 bufferSize = PDDrawPageOrCosObjectToBuffer (i_rPDPage,

    CosNewNull(),

    ASAtomFromString ("DeviceRGB"),

    NULL,

    NULL,

    bitsPerChannel,

    flags,

    9,

    NULL,

    & transformReal,

    & destRectReal,

    & updateRectReal,

    NULL,

    0,

    (NULL);

    char buffer = (char *) malloc (bufferSize);

    Memset (buffer, 0xff, bufferSize);

    Draw in the buffer

    ASCabPutBool (flags, kPDPageUseAnnotFacesStr, true);

    ASCabPutBool (flags, kPDPageDrawSmoothTextStr, true);

    ASCabPutBool (flags, kPDPageDrawSmoothLineArtStr, true);

    ASCabPutBool (flags, kPDPageDrawSmoothImageStr, true);

    bufferSize = PDDrawPageOrCosObjectToBuffer (i_rPDPage,

    CosNewNull(),

    ASAtomFromString ("DeviceRGB"),

    NULL,

    NULL,

    bitsPerChannel,

    flags,

    9,

    NULL,

    & transformReal,

    & destRectReal,

    & updateRectReal,

    buffer,

    bufferSize,

    (NULL);

    Convert buffer CGImage

    // 1. Remove the 4 bytes of padding at the end, in a new buffer.

    size_t bytesPerRow = (i_rBitmapWidth * 3);

    bytesPerRow = (bytesPerRow % 4 == 0? bytesPerRow: bytesPerRow + (4-(bytesPerRow % 4)));

    size_t bytesPerRowForGC = i_rBitmapWidth * 3;

    size_t bufferCGSize = bytesPerRowForGC * i_rBitmapHeight;

    char * bufferForGC = (char *) malloc (bufferCGSize);

    Memset (bufferForGC, 0xff, bufferCGSize);

    for (int lineIndex = 0; lineIndex)< i_rbitmapheight;="">

    {

    char * destGCPtr = bufferForGC + (lineIndex * bytesPerRowForGC);

    char * srcPtr = buffer + (lineIndex * bytesPerRow);

    If ((srcPtr + bytesPerRowForGC)<= (buffer="" +="" buffersize)="" &&="" (destgcptr="" +="" bytesperrowforgc)=""><= (bufferforgc="" +="" buffercgsize)="">

    {

    memcpy (destGCPtr, srcPtr, bytesPerRowForGC);

    }

    on the other

    {

    break;

    }

    }

    // 2. Create a CGImage using the new buffer.

    CGDataProviderRef provider = CGDataProviderCreateWithData (NULL,

    bufferForGC,

    bufferCGSize,

    releaseBufferForCG); Buffer are ions released this reminder

    Space color CGColorSpaceRef = CGColorSpaceCreateDeviceRGB();

    CGImageRef finalImage = CGImageCreate (i_rBitmapWidth,

    i_rBitmapHeight,

    bitsPerChannel,

    bitsPerChannel * 3.

    bytesPerRowForGC,

    color, space

    kCGImageAlphaNone,

    provider,

    NULL, / / decode (of remapping the colors)

    true, / / interpolate (pixel smoothing)

    kCGRenderingIntentDefault);

    CGColorSpaceRelease (colorspace);

    CGDataProviderRelease (provider);

    Free (buffer);

    FinalImage return;

    }

    David

  • How to get the IOM Director of resources in the SOA

    Hi Experts,

    I use IAM_11.1.2.1.0 and SOASuite_11.1.1.6.0, I develop a Composite of SOA, have first approved is Manager of lime and second approves is Administrator of the resource. My problem is that I can't load form to the administrator of the resource role.


    Can someone help me to understand. In R1, we use java code to make this type of operation, in the case of R2 what process. If one that solves this problem please help.


    Thank you

    Tamim Khan

    The resource administrator has nothing to do with the payload.  Usually everything you have found is the name of the resource in the application.  You will need to use the IOM APIs to retrieve information about the resource using the tcObjectOperationsIntf.  It might be especially in the catalog entry although if you completed the approval value.

    -Kevin

  • With no headphone jack, how to use the iPhone in my car 7

    Okay, so here's the challenge.  I have a power source and a headphone and not Bluetooth.  It works perfectly with iPhones before 7.  But with 7, it isn't possible to use the same configuration I had for years.  I own my car, and I have no interest in buying a new car just to support a new phone.  And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.

    So, how to use the new iPhone 7 while remaining responsible and using my car speakers?  Dongles Bluetooth that I need to reload, it's probably not.

    Thus, looking for ideas that might have people.  I can't be the only one with this concern.

    It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?

    How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?

    Download and run MalwareBytes. Malwarebytes was developed by one of our colleagues here to ASC. He received rave reviews and is on the more proven anti-malware for Mac software.

  • How to use the utility disk first aid for hard drive internal el captian

    How to use the utility disk first aid for hard drive internal el captian

    Select the drive and click first aid.

    If something is not repairable because this is the system drive, then you need to start using the recovery partition and run disk utility it.

  • How to use the Print Screen function?

    I've seen various descriptions of how to use the print screen function.

    It would be nice to actually tell one that works.  None have worked for me.

    [Fn] and Prt SCr does not work.

    CTRL and Prt SCr does not work.

    CTRL, Alt, and Prt SCr does not work.

    [Fn], Ctrl and Prt SCr does not work.

    If anyone knows the correct method to activate the screen capture function which would be a good thing.

    From the looks of things, HP has a big problem with this function.

    Here's a microsoft articleon the use of the screenshot function.

    This should answer your questions.

    Thanks for taking a peek.

Maybe you are looking for