IOM API Bug

Hi all:

I'll have to implement a logic via the API of the IOM, but I realized that the API has a bug.

I want back the Manager and the Organization of the users of the IOM. I have a method that retrieves the information from the user, but when I want to get the method below User Manager throws the following exception:

Iterator it = users.iterator ();
While (it.hasNext ()) {}
User u = it.next () (user);
u.getManagerKey ();
}


Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
at oracle.iam.identity.usermgmt.vo.User.getManagerKey(User.java:553)

the getManagerKey() method fails try to recover Manager key. As the same way the getOrganizationKey() method fails too.

Anyone who has already faced this problem?

Thanks in advance

One of my friends got this problem, but I have no chance to work on it.

But there is another way to get these values:

String orgKey = users.get (i).getAttribute("act_key").toString ();
String orgKey = users.get (i).getAttribute("usr_manager_key").toString ();

It can help you.

Tags: Fusion Middleware

Similar Questions

  • Try to export using IOM API via tcExportOperationsIntf

    Hi all

    I wrote a custom code for exports of components to IOM API Help and I am able to take exports from

    Research, resources, process form and process definitions.

    But I'm not able to export role, resource, Access Policy, policy on the approval and debugging has been established that

    ExportOperationsIntf.findObjects (Type, Name); Returns null for role, resource, Access Policy, policy on the approval.

    If I try to research role, resource, Access Policy, political approval using OOTB Deployment Manager export then I can see my components required, but the API, I am not able to do.

    I tried to give the name as * DemoRole * and "TestDemoRole" [name], but it didn't work.

    Fact ExportOperationsIntf.findObjects (Type, Name); data only works for resouce?

    All the world is facing this problem?

    IOM Env = 11.1.2.2.0

    Thank you

    Rahul

    The categories should match while yours are slightly poorly named.

    You can get a list of available categories using the following code snippet:

    tcExportOperationsIntf = dm.getService (tcExportOperationsIntf.class) operations;
    Categories collection = operations.retrieveCategories ();
    for (String category: categories)
    System.out.println (Category);

    For reference, in OIM 11 g R2 PS2, the following categories may be used:

    -CustomResourceBundle
    -eventhandlers
    -Form process
    -CertificationDefinition
    -Organization
    -RiskConfiguration
    -ITResource
    -NOTIFICATIONTEMPLATE
    -PasswordPolicy
    -RequestDataset
    -DataObjectDef
    -CertificationConfiguration
    -Metadata role
    -User group
    -PrepopAdapter
    -Process
    -Plugin
    -ITResourceDef
    -Resources
    -EmailDef
    -TaskAdapter
    -SystemProperties
    -ApplicationInstance
    -GenericConnector
    -GTCProvider
    -Rule
    -User metadata
    -CatalogDefinition
    -ApprovalPolicy
    -Job
    -Jar
    -Metadata Org
    -Search
    -Task
    -ErrorCode
  • IOM API to reallocate applications?

    I am trying to find a way to set or change the assignee who is responsible for approving the request.

    I look in the following IOM API:

    oracle.iam.api.OIMService

    oracle.iam.request.api.RequestService

    I was able to create a query using 'oracle.iam.api.OIMService' API, but I couldn't find a way to set the approver (default IOM, SYSTEM ADMINISTRATORS).

    I know that IOM has a feature of the user interface to redirect a request to another user or group (photo attached for example). I would like to know if there is an API for this.

    Screen Shot 2015-04-28 at 3.01.33 PM.png

    It is not the API of the IOM to reassign an application.  You will need to use the API of SOA BPEL to reassign the tasks on the side of the SOA.

    Code like this:

    public void reassignTask() {}

    List = new ArrayList ()users;

    Assignee ITaskAssignee = null;

    assignee = new TaskAssignee ("". toLowerCase(), "user");

    Users.Add (assignee);

    int counter = 0;

    tasks of long [] = new long [] {};

    for (long task: task) {}

    counter ++;

    try {}

    System.out.println (counter + "|" + tasks.length + "\tReassigned:" + taskService.reassignTask (iWorkflowContextQuery, taskQueryService.getTaskDetailsByNumber (iWorkflowContextQuery, Integer.valueOf (String.valueOf (task))), users));

    } catch (Exception e) {}

    System.out.println (e.getLocalizedMessage ());

    }

    }

    }

    -Kevin

  • Change password with IOM api using already defined password plocy: 11 G R2

    Hello

    When the user is created with a recon trust I want to change the password that is generated based on the default policy. With IOM api can generate the password by using a password Plocicy defined on IOM?

    To be more clear, I want to do something like that;

    1. download the strategy defined with IOM api
    2. generate the password with it
    3. configure the password generated recently in postporocess with the changePassword method eventhandler api IOM (this part I am able to do by the generation of password on my way, the thing I want is to generate the password using the phases 1 and 2)


    Is this possible?

    ARO
    Aliye

    Use this method to check your generated password:

    PasswordMgmtService validatePasswordAgainstDefaultPolicy()

    Or

    PasswordMgmtService validatePasswordAgainstPolicy()

    http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/oracle/iam/passwordmgmt/api/PasswordMgmtService.html#validatePasswordAgainstDefaultPolicy_char___oracle_iam_identity_usermgmt_vo_User__java_util_Locale_

  • IOM API: Unable to change roles with a t3 VIP

    Hi all

    We are facing a problem where we cannot change a user to Admin-> user via a t3 connection, which is defined on a F5 load balancer.

    I was wondering if t3 passes session information in the application that we use AuthenticatedSelfService API calls to achieve this use case without having to log in again. Global trust has been activated among servers.

    Architecture: 3 - IOM Cluster node

    Version of IOM: 11.1.2.2.5

    Use case:

    (1) connection with 1 user with administrator privileges

    2) change of user 2 user admin role

    (3) Logout and now connect with user 2

    (4) try to change 1 user to Admin-> user, receive following error:

    < WARNING > < oracle.iam.platform.authopss.impl > < BEA-000000 > < 26 user does not have permission for deleteAdmin to the scope: 4 AdminRoleMembership = AdminRoleMembership [roleMembershipId = 34, userId = 46, customer = OrclOIMUserAdmin, scopeId = 4]>


    This issue occur if we close 2 on 3 nodes. We already tried-

    env.put (weblogic.jndi.WLContext.ENABLE_SERVER_AFFINITY, "true");  by http://docs.oracle.com/cd/E23943_01/web.1111/e13709/load_balancing.htm#CLUST180

    to ensure that requests are served up to the server managed by IOM even since looks like this Native T3 load balancing is not really load balancing of API calls after that Initial context has been set by

    http://docs.Oracle.com/CD/E24329_01/Web.1211/e24389/LOAD_BALANCE.htm#WLRMI265

    Any suggestions would be much appreciated.

    Hello!

    have you tried to activate t3 tunneling over http?

  • IOM, API - getData() - no data is not returned by the user account

    Hi all

    I have a question for the AD account data. The problem is when I try to get the account data from any account (account status: enabled, the account Type: primary), the API GetData returns a blank card and I don't know why. I see this account in the accounts of the user to the IOM. This account has been created through reconciliation of AD and this account is only one (primary and active).

    In the test environment my code works very well, but production only.

    Here is part of my code where I get some details of account.

    ...

    accounts = provServ.getAccountsProvisionedToUser (take);

    Logger.Finest ("getUsersToTheLookupTask-> user Details - take:" + take + ", DisplayName:" + userDisplayName);

    Iterator it = accounts.iterator ();

    {while (IT.hasNext ())}

    Account ad_account = (Account) it.next ();

    If (ad_account.getAppInstance () .getApplicationInstanceName () .equalsIgnoreCase (appInstName) & & ad_account.getAccountType () .equals (Account.ACCOUNT_TYPE.) (Primary)) {}

    Logger.Finest ("getUsersToTheLookupTask-> AppInstance ApplicationInstanceName:" + ad_account.getAppInstance () .getApplicationInstanceName ());

    Logger.Finest ("getUsersToTheLookupTask-> AppInstance DisplayName:" + ad_account.getAppInstance () .getDisplayName ());

    Logger.Finest ("getUsersToTheLookupTask-> AccountDescriptiveField:" + ad_account.getAccountDescriptiveField ());

    Logger.Finest ("getUsersToTheLookupTask-> getAccountID:" + ad_account.getAccountID ());

    String UtilisateurDN = getADUserDN (appInstName, take);

    AccountData accountdata = ad_account.getAccountData ();

    Map < String, Object > accdata = accountdata.getData ();                         //THIS RETURN EMPTY map < String, Object >! And I don't know why!

    Logger.Finest ("--> account data:" + accdata);

    String userOrg = accdata.get("UD_ADUSER_ORGNAME").toString ();

    String userCN = accdata.get("UD_ADUSER_COMMONNAME").toString ();

    Logger.Finest ("-> CN an ORG:" + userOrg + "-" + userCN);

    userOrg = userOrg.substring (userOrg.indexOf ("OR ="));

    String UtilisateurDN = "CN =" + userCN + "," + userOrg;

    Logger.Finest ("getUsersToTheLookupTask-> pair key / value:" + UtilisateurDN + ":" + userDisplayName);

    userMap.put (UtilisateurDN, userDisplayName);

    }

    }

    ...

    You have an idea why I'm not able to get user account data?

    Thank you!

    Milan

    Fact.

    The following API does not return the AccountData in the AccountVO. Old API IOM at 11.1.2.0 in 11.1.2.1 IOM Yes.

    accounts = provServ.getAccountsProvisionedToUser (take);

    If you need obtain account data, use:

    Acccriteria SearchCriteria = new SearchCriteria (ProvisioningConstants.AccountSearchAttribute.APPINST_KEY.getId (), "*", SearchCriteria.Operator.EQUAL);

    accounts = provServ.getAccountsProvisionedToUser (take, acccriteria, null, true);

    ...

    AccountData accountdata = ad_account.getAccountData ();

    Card accdata = accountdata.getData ();

    GetData returns then map of attributes as I expected.

  • IOM Login authentication fails when the IOM API call

    Hello

    We have a small custom application written to make the update of some attributes of the user on OIM. This app works great on the development system, as well as the test system. However, when you run the program on the live system, it generates the error below. Please note that we use the IOM 11.1.1.5, test and production are under linux, while the development system is running windows 7. The test system is a single instance, while IOM in a production environment is clustered. Quick response will be very useful.

    We checked the path provided for authwl.conf and that's okay. Here is the thrown error:

    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
    at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
    at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
    at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
    at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
    at com.infotech.tra.organization.RoleAssignment.updateUserAttributes(RoleAssignment.java:274)
    at com.infotech.tra.organization.RoleAssignment.main(RoleAssignment.java:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
    ... 11 more
    Caused by: oracle.iam.platform.utils.NoSuchServiceException: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: user: weblogic, could not be authenticated.]
    to oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate. < init >(Unknown Source)
    ... 16 more
    Related: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: user: weblogic, could not be authenticated.]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
    at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:682)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:469)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
    at weblogic.jndi.Environment.getContext(Environment.java:315)
    at weblogic.jndi.Environment.getContext(Environment.java:285)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    to javax.naming.InitialContext. < init > (InitialContext.java:197)
    at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:114)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:130)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:155)
    ... more than 17
    Caused by: java.lang.SecurityException: user: weblogic, could not be authenticated.
    at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
    at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    There was incorrect values in the jndi.properties file causing problems. After the correction of the connection of IOM file worked properly.

  • IOM API to create or update a task to a process definition?

    I was watching the tcWorkflowDefinitionOperationsIntf and I noticed that there is a updateWorkflow() method. I would like to add or update a task for a given workflow.
    Is it still possible?

    An example of the updateWorkflow() method would be nice. I tried several times, but the workflow updated the in I'm not updated.
    I am logged in as xelsysadm to the customer of the IOM and isWorkflowUpdatePermitted() return true, this isn't an issue of privilege.

    class tcWorkflowDefinitionOperationsIntf: http://docs.oracle.com/cd/E17904_01/apirefs.1111/e17334/toc.htm

    This API does not seem to work on the definition of the process. I have a solution by changing the metadata. Just use the Deployment Manager to export the xml file, edit and then import the xml file updated the IOM.

  • IOM API to add fields Recon to resource object?

    In the console of design under the management of resources-> resources-> object reconciliation objects, I am able to add fields of reconciliation to a specific resource object. I would like to make using Java. After poking around the API of the IOM, I can't have this method. Is there an API of the IOM to add fields of reconciliation to a resource object?

    Here are my findings:
    In the class "tcObjectOperationsIntf", I see "getReconciliationFields(long plObjectKey)". It annoys me all the recognized fields for a specific resource object.
    In the class "tcFormDefinitionOperationsIntf", I see "addReconDataFlow (long plProcessKey, long plObjectKey, java.lang.String sourceKey, java.lang.String targetName, boolean isKeyField). This allows me to define a mapping between a label field as a process and a recognised field.

    You will either need to export the XML file, then edit it, then reimport or devote the time necessary to create once in the java client.

    -Kevin

  • List to get the task awaiting the user through IOM API - 11 G R2

    Hello

    IOM user page, we can access tasks pending for approval. Can I get this data using the IOM fubctions APIs? Any help is greatly appreciated...

    BR,
    Aliye

    Link below can be used as an example of code
    http://Srini-bellamkonda.blogspot.in/2012/11/approve-pending-requests-using-API-in.html

  • Code to get the data in the child table in composite SOA using the IOM APIs

    Hi all

    I am a new bie to IOM. I have a query related to obtaining data in the child table using the API of the IOM in the task of embeded java SOA composite.

    I've created a workflow that has a form of child of providing service of slef. I created a composite SOA custom also approval. In the composite approval I have embedded java code and I want to get the values entered in the child form using the API IOM inot the java code embeded in composite SOA.

    I tried gettting the child form data by using getChildAttributes(), but I'm getting the following exception.

    The local Exception stack:
    Exception [EclipseLink-7242] (Eclipse - 2.1.3.v20110304 persistence Services - r9073): org.eclipse.persistence.exceptions.ValidationException
    Description of the exception: an attempt was made to navigate a relationship using indirection that had a null Session. This often happens when an entity has a relationship of LAZY not instantiated is serialized and this lazy relationship is crossed after serialization. To avoid this problem, instantiate the LAZY relationship before serialization.
    at org.eclipse.persistence.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:994)
    at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:218)
    at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:83)
    at oracle.iam.request.vo.RequestBeneficiaryEntityAttribute.getChildAttributes(RequestBeneficiaryEntityAttribute.java:100)
    to com. CASApproval.main (CASApproval.java:137)

    Please suggest me if I'm following the correct procedure of the child form data or if we can use another approach.

    Can we get the data using formInstanceOperationsIntf.getProcessFormChildData ().

    Thanks in advance for the help.

    Thank you
    PT

    When you're in approvals, there is no form of process data. Process form data would come only when approvals are completed. If you want to read data from the child form of the DataSet (i.e. the form object as in OIM9.x) you can use the RequestService on the id of the request and read the data. Or another approach would be to the child the dataset data value in the payload of the request and read the XML payload in the composite.
    Let me know if you need more information about the second approach. As for the first approach, search through the forums here and you should find my previous posting on how to reach child dataset values using the ask service API.

    -Marie

    Found these for you:
    OIM11G: Way to get values from dataset of the application for approval
    Re: How to get the value of the AD details of payload of SOA user group

  • Define the process shape and available resources using the IOM APIs

    Hello

    I'm provision the resource in the IOM with the APIs of the IOM. I know that the API to use is provisionObject (long plUserKey, long plObjectKey). The problem is that I have some data to be set manually on the form of courses, so I have to send it via the API.

    Please guide me how can I set the shape of process data and then provide a resource of IOM with the APIs.

    Thank you.

    Rahul

    You can do it in both directions.
    1. you can use adapter pre-population.
    2. you can use the API.
    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcFormInstanceOperationsIntf.html#setProcessFormData_long__java_util_Map _

    extract the information from the object put into service

    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcUserOperationsIntf.html#getObjects_long _

    That
    prntPrvsndPrsInsKey - retrieves the Instance.Key process for provisioned resource object
    hashPrntData - a card that conatins keys as process form column name / value in the form of data.

    tcforminstanceoperationsintf.setProcessFormData (prntPrvsndPrsInsKey, hashPrntData);

    Thank you.
    Kuldeep

  • the incredible IOM API documentation

    Hello
    I need the IOM, but for version 11.1.1.3 API documentation? Is it available? I can give my email address to send me a link.
    We need to know how to create the API authorization policy.
    The best
    MP

    There are availabe for her classes: PolicyDefinitionService.class or OESPolicyService.class
    It contains the following methods:
    createPolicy (AuthzPolicy policyparameters)
    modifyPolicy (AuthzPolicy policyparameters)
    deletePolicy (String parameterString)

    Kind regards.
    GP

  • Flash api bug around design work?

    Hello, I came across a bug in api drawing flash where if you draw several things layers light opacity (24) get blotched especially if you use bitmap.draw (). I read somewhere that it is how the draw method has been coded, but I see no wrapper work. Any ideas?

    I am considering the implementation of a custom drawing (AS3 or PHP) method to create the blotched and images...

    Here are the solutions that work. Obviously, it is not limited in itself.

    Your methodology did not work because you redraw graphics for the same object. In order for alphas to stick properly, it must create new objects.

    The most important thing to make it work is set cacheAsBitmap true or draw the Bitmap. The two variants are presented below. If you change cacheAsBitmap false it stops working.

    With very low alpha (0.01), you will need to run more than 2000 iterations of the loop to make transparency resulting opaque. My material does not very well

    Also, even if it is not related to this topic, I noticed that you use instances of MovieClip. MovieClip is much heavier than the Sprite or shape. So, for this kind of testing, it is best to use the form - it is the lightest. Even in general, avoid as much as possible the MovieClip instances. Sprite must be the most used DisplayObjectContainer.

    So, here's the code that extends your methodology.

    This example uses forms directly with cacheAsBitmapset to true.

    var rad:int = 10;
    var s:Shape;
    
    var rct:Shape = new Shape();
    rct.graphics.beginFill(0xff0000);
    rct.graphics.drawRect(0, 0, 100, 100);
    addChild(rct);
    rct.x = stage.stageWidth * .5 - 50;
    rct.y = stage.stageHeight * .5 - 50;
    
    container = new Sprite();
    container.x = stage.stageWidth * .5;
    container.y = stage.stageHeight * .5;
    addChild(container);
    
    var sTimer:Timer = new Timer(100, 1000);
    sTimer.start();
    sTimer.addEventListener(TimerEvent.TIMER, onTick);
    
    function onTick(event:TimerEvent):void {
         rad += 5;
         s = new Shape();
         s.cacheAsBitmap = true;
         s.graphics.beginFill(0x000000, .02);
         s.graphics.drawCircle(rad, rad, rad);
         s.x = s.y = -rad;
         container.addChild(s);
    
         if (event.target.currentCount == 24) {
              var label3:TextField = textField("24");
              label3.x = 50;
              label3.y = 100;
              addChild(label3);
         }
    }
    

    This makes the bitmap:

    var rad:int = 10;
    var s:Shape;
    
    var rct:Shape = new Shape();
    rct.graphics.beginFill(0xff0000);
    rct.graphics.drawRect(0, 0, 100, 100);
    addChild(rct);
    rct.x = stage.stageWidth * .5 - 50;
    rct.y = stage.stageHeight * .5 - 50;
    
    container = new Sprite();
    container.x = stage.stageWidth * .5;
    container.y = stage.stageHeight * .5;
    addChild(container);
    
    var sTimer:Timer = new Timer(100, 1000);
    sTimer.start();
    sTimer.addEventListener(TimerEvent.TIMER, onTick);
    
    function onTick(event:TimerEvent):void {
         rad += 5;
         s = new Shape();
         s.graphics.beginFill(0x000000, .02);
         s.graphics.drawCircle(rad, rad, rad);
    
         var bmd:BitmapData = new BitmapData(s.width, s.height, true, 0x00000000);
         bmd.draw(s);
         var bm:Bitmap = new Bitmap(bmd);
         bm.x = bm.y = -rad;
         container.addChild(bm);
    
         if (event.target.currentCount == 24) {
              var label3:TextField = textField("24");
              label3.x = 50;
              label3.y = 100;
              addChild(label3);
         }
    }
    
  • Object instantiation of IOM API tcUtilityFactory

    Hi all
    I am trying to open the object of tcUtilityFactory in the following way:

    ================
    System.setProperty ("XL. HomeDir"," C:/Oracle/OIM_DC/xlclient");
    System.setProperty ("java.security.policy", "C:/Oracle/OIM_DC/xlclient/Config/xl.policy");
    System.setProperty ("java.security.auth.login.config", "C:/Oracle/OIM_DC/xlclient/Config/auth.conf");
    System.setProperty ("java.naming.provider.url", "t3://weblogic1.domain.com:7001");
    System.setProperty ("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");

    Config ConfigurationClient.ComplexSetting = ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
    System.out.println ("login...");
    Hashtable env = config.getAllSettings ();
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory (env, "xelsysadm", "Oracle123");
    ================

    and to get the output on the following all current run/debug console:
    ================
    C:/Oracle/OIM_DC/xlclient
    C:/Oracle/OIM_DC/xlclient/config/XL. Policy
    C:/Oracle/OIM_DC/xlclient/config/auth.conf
    T3://weblogic1.domain.com:7001
    weblogic.jndi.WLInitialContextFactory
    Starting...
    Get the configuration...
    Opening session...
    log4j: WARN no appenders could be found for logger (XELLERATE. ACCOUNTMANAGEMENT).
    log4j: WARN Please initialize log4j correctly system.
    Thor.API.Exceptions.tcUserAccountInvalidException
    at Thor.API.tcUtilityFactory.createLoginException (unknown Source)
    to Thor.API.tcUtilityFactory. < init >(Unknown Source)
    at FirstAPITest.main (FirstAPITest.java:33)
    ================

    I use Eclipse and followed all the steps mentioned in the thread - new to the coding in IOM
    that is, I'm assuming since the Metalink I see the same info in a metalink doc.

    Please let me know if I am missing some step.

    Thank you

    In my view, what is of weblogic application server

    Make following changes:

    C:/Oracle/OIM_DC/xlclient/config/auth.conf

    C:/Oracle/OIM_DC/xlclient/config/authwl.conf

Maybe you are looking for