Removing the entitlement wher user gost disabled OIM11g R2

Hi Expert,
I am trying to writing the scheduler for removing the entitlement when user got disabled.
Below is my code:
public class RemoveEntitlement extends TaskSupport {
protected OIMClient oimClient = null;
     private tcLookupOperationsIntf lookupOps;
     private tcUserOperationsIntf userOper;
     private tcObjectOperationsIntf obj;
     private tcFormInstanceOperationsIntf form;
     private UserManager userManager = null;
public void execute() throws Exception {
Connection connection = null;
try {
EntitlementService provisioningService = Platform.getService(EntitlementService.class);
connection = getConnection();
if (connection != null) {
List<Long> entitlementkeys = getEntitlementKey(connection);
if (entitlementkeys != null) {
for (Long entKey : entitlementkeys) {
boolean ent= provisioningService.deleteEntitlement( entKey );
} else {
} catch (Exception e) {
throw e;
} finally {
if (connection != null) {
connection.close();
private List<Long> getEntitlementKey(Connection connection) throws SQLException {
Statement statement = null;
ResultSet resultSet = null;
List<Long> entKeys = new ArrayList<Long>();
try {
statement = connection.createStatement();
resultSet = statement.executeQuery("select ENT_ASSIGN_KEY,USR_KEY,ENT_LIST_KEY from ENT_ASSIGN where USR_KEY IN (select USR_KEY from USR where USR_Disabled='1')");
if (resultSet != null) {
while (resultSet.next()) {
entKeys.add(resultSet.getLong("ENT_LIST_KEY"));
} catch (SQLException e) {
throw e;
} finally {
if (resultSet != null) {
try {
resultSet.close();
} catch (SQLException e) {
if (statement != null) {
try {
statement.close();
} catch (SQLException e) {
return entKeys;
@Override
public HashMap getAttributes() {
// TODO Auto-generated method stub
return null;
@Override
public void setAttributes() {
// TODO Auto-generated method stub
private Connection getConnection() {
Connection connection = null;
try {
connection = Platform.getOperationalDS().getConnection();
} catch (SQLException e) {
throw new SuperRuntimeException(e);
return connection;
when I am trying test from my local (Eclipse) ,getting below error
Mar 25, 2013 7:30:33 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@256ef705: display name [org.springframework.context.support.ClassPathXmlApplicationContext@256ef705]; startup date [Mon Mar 25 19:30:32 IST 2013]; root of context hierarchy
Mar 25, 2013 7:30:33 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/iam-spring-config.xml]
Mar 25, 2013 7:30:33 PM oracle.iam.platform.utils.SpringBeanFactory createBeanFactory
SEVERE: Instantiating Spring Bean Factory Failed.IOException parsing XML document from class path resource [META-INF/iam-spring-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/iam-spring-config.xml] cannot be opened because it does not exist
Exception in thread "main" java.lang.ExceptionInInitializerError
     at oracle.iam.platform.Platform.<clinit>(Platform.java:101)
     at RemoveEntitlement.execute(RemoveEntitlement.java:75)
     at RemoveEntitlement.main(RemoveEntitlement.java:66)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/iam-spring-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/iam-spring-config.xml] cannot be opened because it does not exist
     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
Any Help Appreciated...

Depends upon if the domains are part of the same forest. If the account moves from one domain to another in the same forest then I don't think there is any issue with cross domain entitlement assignment as long as your AD supports people in domain to have group from another domain.
-Bikash

Similar Messages

  • How do you remove the program where it highlight a word that takes you to a link?

    I would like to remove the program where it highlights words that when clicked it takes me to a different link. How do I do that?

    Thanks for the screenshot.<br />
    I was expecting this, but wanted to be sure.
    You can look at Adblock Plus to disable such IntelliTXT kind of links on a web page.
    * Adblock Plus: https://addons.mozilla.org/firefox/addon/adblock-plus/
    You need to subscribe to a Filter list (e.g. the EasyList).
    * http://adblockplus.org/en/subscriptions
    * http://adblockplus.org/en/getting_started

  • How can i remove the bar (where i search for websites) when i full screen for my macbook pro

    how can i remove the bar (where i search for websites) when i full screen

    ohhh k i got it but thats not what i am looking for, so when i full screen i want it to be like fully full screen like when i watch a movie i want nothing but the movie on the screen and when i bring the mouse up then the tab shows again thats what exactly I'm asking about.

  • Mailbox cleanup could not completely remove the mailbox for user

    Hello.
    I have Exchange 2010SP3 2 DAG member in cluster.
    Recently i have warning in app log on a second DAG member:
    Mailbox cleanup could not completely remove the mailbox for user GUID.Encountered error 0xfffffae8. Should this message continue to persist for the same mailbox, it may be indicative of a problem that requires further investigation. 
    I read all post wich say just unmount and mount database.
    I can't find any user wich have guid containted in error.
    So that i need to do?
    Can i use StartDAGmaintenance and reboot a server,then after reboot use StopDAGmaintenance?

    Hi,
    I suggest to refer to this blog to find this mailbox by GUID.
    http://blogs.technet.com/b/ehlro/archive/2010/04/22/how-to-find-the-object-that-belongs-to-a-guid.aspx
    Then check which database this mailbox belongs to, dismount and mount this database.
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • Remove the words in user dictionary

    How to remove the words in user dictionary. Pl give me the solution. ASAP

    Hi Cenchen,
    please try this, should work.
    var myUserDictionaries = app.userDictionaries;
    var myCountDict = myUserDictionaries.count();
    for (var i = myCountDict-1; i >= 0; i-- ) {
        myUserDictionary = myUserDictionaries[i];
        var myAddedWords = myUserDictionary.addedWords;
        myUserDictionary.removeWord(myAddedWords);
    thanks,
    rajnikids.

  • Find the Database where user defined function is ??

    Hi,
      I have one user defined function , but i couldn't find where the function is and where the function is using.. anyone pls help me to overcome this one.
    Thanks

    Hi again,
    This is a combination of both previews response. I used
    Latheesh's script to execute, but since  sys.sql_expression_dependencie contains  information in the current database, therefore I used
    Praveen Rayan idea of using sp_MSforeachdb in order to check all databases (I used sp_MSforeachdb and not sp_foreachdb as I recomend to do usually).
    DECLARE @ObjectName NVARCHAR(100)
    SET @ObjectName = N'Ariely' --Give your function
    Declare @MyQuery NVARCHAR(MAX) = N'
    USE [?]
    SELECT DISTINCT
    SourceSchema = OBJECT_SCHEMA_NAME(sed.referencing_id)
    ,SourceObject = OBJECT_NAME(sed.referencing_id)
    ,ReferencedDB = ISNULL(sre.referenced_database_name, DB_NAME())
    ,ReferencedSchema = ISNULL(sre.referenced_schema_name,
    OBJECT_SCHEMA_NAME(sed.referencing_id))
    ,ReferencedObject = sre.referenced_entity_name
    FROM sys.sql_expression_dependencies sed
    CROSS APPLY sys.dm_sql_referenced_entities(OBJECT_SCHEMA_NAME(sed.referencing_id) + ''.'' + OBJECT_NAME(sed.referencing_id), ''OBJECT'') sre
    WHERE sed.referenced_entity_name like ''%' + @ObjectName + '%'' AND sre.referenced_entity_name like ''%' + @ObjectName + '%''
    PRINT @MyQuery
    EXEC sp_MSforeachdb @MyQuery
    I hope that ths give you what you need :-)
    [Personal Site]  [Blog]  [Facebook]

  • How to do a Http get in the background where user access the web app

    I want to touch a listener page in non - j2ee based application 1 (say A1 which is ColdFusion) from a j2ee based application 2 ( say A2). The exact functionality would be : A struts based application's A2 web page would send a session id to a listener webpage in A1. How would i achieve this, as i just need to pass some information in Background and not transfer the control to application A1 where as user is performing normal course of actions in foreground? I can think of Socket programming, any other approach that you can think better than this?
    So, I need to pass information to a page out of my web application scope yet keep the control within the web application?

    This is the snippet I am trying in my "action". Assuming that, the program in A1 reads the request parameters and sends me a response. Would this be enough or am i missing something?
    try
    HttpURLConnection urlconn = null;
    try
    String urlStr = "http://IPADDRESS/EntranceSeminar_Web/index.jsp?sessionid="+session.getId();
         System.out.println("URL string = " + urlStr);
    URL url = new URL(urlStr);
    urlconn = (HttpURLConnection)url.openConnection();
    urlconn.setInstanceFollowRedirects(true);
    urlconn.setRequestMethod("GET");
    urlconn.setRequestProperty("Dummy", "RestValue");
    urlconn.setDoOutput(true);
    urlconn.connect();
    out.println("<br>The response code is : "+urlconn.getResponseCode()+" Message: "+urlconn.getResponseMessage());
    catch(MalformedURLException mfe)
    System.out.println("MalformedURL Exception");
    mfe.printStackTrace();
    catch(IOException ioe)
    System.out.println("IO Exception");
    ioe.printStackTrace();
    }

  • Removing the responsbility of user maintenance from the DBA

    Suppose you were working with a customer whose DBAs refuse to be involved with user maintenance, i.e. creation and deletion of users, password maintenance, role and privilege assignment etc. What technology and/or approach would you recommend?
    Some random thoughts along this line:
    1. Ask the DBA to create one user with CREATE USER and ALTER USER privileges, and give that user access to SQL*Plus so that he can run the queries to create and maintain users himself. Obvious downside: Someone else has to know SQL, at least a few SQL statements, or have a custom user interface built for them that wraps the SQL statements. Is this really such a bad solution?
    2. LDAP or OID. I don't understand enough about either of these two technologies to truly be able to discuss the pros and cons. How exactly do they work in a Windows network envionment, perhaps one with or without Active Directory and/or Windows Groups? Can they really allow someone other than the DBA to create users, maintain passwords and maintain roles and privileges? If so, doesn't the person in charge of assigning roles and privileges to users have to have CREATE USER or ALTER USER privileges anyway? Really, why would this be such an improvement over solution #1?
    3. Any other approaches and/or experiences along this lines anyone wouldn't mind sharing?
    Appreciating any and all insights,
    DTXCF

    THanks sybrandb.
    On #2, suppose the application is set up in such a way that by default all of the security is handled in the database, i.e. when the application is installed and the scripts run to create the database it creates roles like these:
    cst_role_product_editor
    cst_role_product_admin
    cst_role_product_viewer
    cst_role_order_viewer
    cst_role_order_admin
    cst_role_order_editor
    cst_role_store_viewer
    cst_role_store_editor
    cst_role_store_admin
    in other words, for each object type in the database (stores, products, orders, coupons, catalogs etc.) all of these roles are created at the database level, and by default, each individual user has to be created using a CREATE USER command with the proper roles assigned.
    If I take an application like this to the client and they say they want to implement LDAP and/or OID, when the people who create these users outside the database as you mention,
    1) Does it create any additional actual Oracle users, and
    2) Can LDAP and OID handle actually assigning these users to specific Oracle roles?
    And one more question - can you explain what exactly is a proxy account to a rookie like me who thinks proxy sounds like the name of a night club you'd find in Las Vegas?
    Sorry to impose so much but I do appreciate the help.

  • How do I remove the Master PSN User from PS3?

    Hi - advance apologies if this has been covered elsewhere. I am selling my PS3 500gb charcoal black super slim console (CECH-4003C).
    I have been trying to delete the master user name from the console without success. I tried the HDD reformat process (4 hours long!) which didn't work. I also tried signing into PSN and clicking deactivate under account management. No luck.
    Anyone know the way to do this? Thanks

    The 'Restore system' option in the PS3's settings will delete everything and return the console to the same state it was the very first time you switched it on  http://manuals.playstation.net/document/en/ps3/current/settings/restoreps3.html

  • Showing a parameter on the prompt where user can pick a value drom dropdown

    Hi All,
    I have a requirement to display a parameter in the applet prompt that shows user a LONG picklist of values to choose and then submit the BIP report request under Siebel.
    I now the syntax to declare a parameter with few list of values but how to manage if the list is too long.
    e.g. a list of Countries that are in the system today.
    Please give me some suggestion as to how we can handle a long list of values when need to display it against a parameter.
    Thanks,
    Raghu

    It must be a generic requirement to display a dropdown in the prompt applet but what if the list of values expected in the drop down are too long. Can we still accommodate it by defining the parameter string in the RTF.?
    Please suggest some solution here.
    Regards,
    Raghu

  • Where can I disable users in the File Vault Login-Screen?

    Hi! I have four users on my mac, but only two should start the mac - where can i disable the others?
    Thank you!

    I would like to know how to do this also.  I have enabled all user accounts to unlock FileVault, but some accounts do not have secure passwords so I would like to disable these.
    The only way I can see to do this, is to disable FileVault and then re-enable it with only the accounts I want.  Problem with this is it will take a while.
    Regards,
    Keith.

  • I have been getting this (or earlier version) messages every time Firefox updates for at least a year "The Java Console extension is no longer supported and will be automatically removed the next time you restart Firefox. " What should I do?

    For a long time, each time Firefox updates, it invites me to install theJava Console Update. then I get a message that Java Console not supported.

    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension, you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    Disable the Java Quick Starter extension (if you have it): Tools -> Add-ons -> Extensions<br />
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)
    See http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0

  • Remove Throttle policy from users

    Hello guys, 
    We have deployed Blackberry and i want to remove BESPolicy Throttling policy from all users. We have Exchange 2010 Sp1. 
    But that Script available on the Technet is not working on exchange 2010 Sp1. 
    Is there any alternative Cmdlet to find bespolicy users and remove the Bespolicy from users ?
    regards 

    BESPolicy should only be applied to the besadmin accont and all other users should have the default/customized policy.
    If you have BES policy applied for all users, just get all mailbox in bulk and set a new/default policy
    Rajith Enchiparambil |
    http://www.howexchangeworks.com |

  • Removing the Auto disable of a resource when  user is disabled

    Hi All,
    We have a few resources a user may have that when the user is disabled in OIM we want those hand full of resource to stay Enabled/Provisioned.
    I tried renaming the disable task. didn't work (Get an error). I tried setting No Effect on the process task and well, no effect still get an error.
    Thanx.
    Fred

    I might be wrong about this but aren't what task get called on a disable controlled by the disable effect? This would logically mean that the name of the task doesn't matter?
    Fred: I have seen cases where the design tool simply doesn't want to take an update. Sometimes it helps restarting the app server, other times I had to go into the database tables and fix the problem by deleting the offending row. Not elegant but I couldn't figure out any other way to do it.
    Good luck
    /Martin

  • Why did you remove The option to disable Java scripts?

    Everyone knows malware always comes through java scripts. So why did you remove the option to turn it off ? Why the false saftey excuse? (duckspeak) This makes no sense. Alot of people also get errors and have slower speed with some pages so they disable it. I understand there is plugins available to block scripts but they never work 100%. It just really really seems strange that a browser that was built on the idea of safety, security and trust has now suddenly removed a item that makes users less safe, Under the guise of safety. (doublespeak)
    I will no longer use Firefox ever again unless you put this option back.

    Also note that the option is available in...
    '''<h1>about:config</h1>'''
    # In the address bar, type "about:config" (with no quotes), and press Enter.
    # Click "I'll be careful, I promise"
    # In the search bar, search for "javascript.enabled" (with no quotes).
    # Right click the result named "javascript.enabled" and click "Toggle". JavaScript is now disabled.
    To Re-enable JavaScript, repeat these steps.
    '''<h1>Add-ons</h1>'''
    You can alternatively install an add-on that lets you disable JavaScript, such as
    *[https://addons.mozilla.org/firefox/addon/noscript/ No-Script] (to disable JavaScript on a per page basis, as required)
    *[https://addons.mozilla.org/firefox/addon/quickjava/ QuickJava] (to easily disable and enable JavaScript, automatic loading of images, and other content)
    *[https://addons.mozilla.org/firefox/addon/settingsanity/ SettingSanity] (adds back JavaScript options, including Advanced JavaScript Settings, as well as options for loading images and showing the Tab Bar)
    Im also not sure how you are a computer expert and dont even know the difference between Java and Javascript. Its pathetic that you dont know that Java is the most insecure thing, not Javascript, get your facts straight before bashing a correct answer and "Java Scripts" were not removed, but moved.

Maybe you are looking for

  • HT204053 How do I combine 2 apple ID's to one?

    I just got my first iPhone. I had an Itunes Acct. but didn't realize I made a different Apple ID when I started using the new phone...Can I combine the 2 ID's to one? Or just use theiTunes gift card until it reaches $0 balance then only use the ID i

  • Solution: iTunes 10.6.0.40 on Windows 7 hangs while syncing

    I was trying to Sync Audiobooks to my iPod nano (6th gen) but iTunes 10.6.0.40 (on Win 7 Home Premium 64-bit SP 1) just stopped being responsive after pressing Apply and it showing "preparing to sync" in the status window.  The nano went into sync mo

  • CCMS monitoring for adapter engine

    Hi, We have configured CCMS monitoring for Adapter Engine for our client. In RZ20 im able to see the alerts come up,with the default data that the system provides. 1. I need to send  a mail when the alert is triggerred, but if I try to set the autore

  • 1099 Payables e-file to IRS FIRE

    Greetings to All, We are using 1099 payables in oracle for the first time. We have already sent out copies to the receiptents and now we have proceeded and uploaded the 1099 e-file to IRS Fire. When we did this 2 days ago, we got back a response from

  • Word Dictionary not working.

    The dictionary in Word isn't working with the new Maverick system (10.9.4) on my new macbook air. Didn't have problems before with my old macbook, but really starting to dislike this new system and the new macbook air. I can't even find the plist in