Implemented MDS without security, deliver to get custom UserCC class user

Hi all

I put implement MDS in my application. We have no security is enabled in our application.  That's why I created a custom class to get the authenticated user name. I added this class to adf - config.xml and activated MDS to the proposed notice. When I deploy my application I got below error

[15: 10:44] weblogic.application.WrappedDeploymentException: MDS-00035: cannot load the class: view.common.ui.customcustomization.CustomUserCC.

| Search the web about this error and got the solution suggested by Frank here

https://community.Oracle.com/thread/2136869?TSTART=0

I have included my CustomUserCC class as a library in my instance of weblogic with this change, I was able to deploy my application. Now when I run my application, I try to get the unique username of SessionMap but FacesContext ctx = FacesContext.getCurrentInstance () always returns the null value and I'm not able to access ctx.getExternalContext () .getSessionMap ();

Any suggestion? I stuck my class customCC below.

SerializableAttribute public class CustomUserCC extends CustomizationClass {}

private static final String DEFAULT_LAYER_NAME = "user";

private String mLayerName;

public CustomUserCC () {}

mLayerName = 'user ';

}

public CacheHint getCacheHint() {}

Return CacheHint.USER;

}

public String getName() {}

Return mLayerName;

}

public String [] {getValue (sess RestrictedSession, MetadataObject MB)

User String = null;

FacesContext ctx = FacesContext.getCurrentInstance ();  CTX is always NULL

If (ctx! = null) {}

SessionState map = ctx.getExternalContext () .getSessionMap ();

user = (String) sessionState.get ("UserName");

System.out.println ("user customization" + user);

}

System.out.println ("user" + user);

return new String() {user};

}

}

Hello

because the SDM is configured as part of a request for the ADF (a web valid query JSf), the FacesContext should be available. Try

HashMap session is ADFContext.getCurrent () .getSessionScope ();.

If this does not work then your configuration does not install SDM correctly

Frank

Tags: Java

Similar Questions

  • Any suggestions to clean the hard drive of personal data, so that I can give my laptop without security concerns?

    Any suggestions to clean the hard drive of personal data, so that I can give my laptop without security concerns?

    Richard's suggestion is about as extreme as you can get. Of course, it works very well and the data is not recoverable, but unless you have State secrets then it might be a little overkill. It is the only way to be sure that the data is destroyed, but 100%!

    There are programs such as (Darin of Boot and Nuke) DBAN or KillDisk which can erase the disc at the point where it would take massive resources (money, time and material) to retrieve all the data. Then, a new installation or Windows recovery would be needed. But you don't have to replace the hard drive. It is effective even against the pirates experienced more than 99.9%.
  • No limited connectivity or. -When it is WEP or other types of secure connection. Without security, the laptop is able to connect.

    My niece called me today from her bf. She's trying to connect the Toshiba a start click Netgear WNDR3700. They are connected through Hughes sat. Mothers laptop works very well. She gets little or no connectivity. I pass through the usual stuff about resetting the comp. change wep security, change the password. Reset.

    It works fine without security, but when the wep key is activated or the other, she can access it but not connect to Internet.  She put in the correct password, and it connects to the routher, but is going no where?

    Appreciate any assistance. She has Vista.

    Bruce

    Hi brucefl,

    Try all the steps on the Irfan post and let me know if this can help:

    http://social.answers.Microsoft.com/forums/en-us/w7network/thread/ba19b10f-F488-4502-86f2-3c8c0d75751d

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I can't Live Update my Max Total Security that I get the message "DB update failed download!» Max Support also did not help at all. Disappointing. What should do?

    I can't Live Update my Max Total Security that I get the message "DB update failed download!» Max Support also did not help at all. Disappointing. What should do?

    Do yourself a favor and remove the application.  Mac do not need AV applications and at best, they will be not hard (but not good either) and at worst will corrupt your system / OSX's built in protection.  Your concerns are malicious software that requires the cooperation of the user to install, not the virus.

    For more information, please read this:

    http://www.thesafemac.com/

    Ciao.

  • I changed my security system to get my e-mails, e-mail 0X800CCCOE

    email 0X800CCCOE >

    morning

    Thank you for your help & I changed my security system to get my emails

    they say now I have the wrong outgoing mail server! What should be in that box for me to send & receive mail

    my mail is pop3xtra.co.nz

    regards Denise

    These settings are specific to your e-mail provider.  Call them to get the good ones.

  • When you run the Microsoft Security essentails I get the message "the program is blocked by group policy. For more information, contact your system administrator. »

    When you run the Microsoft Security essentails I get the message "the program is blocked by group policy. For more information, contact your system administrator. »

    Original title: microsoft security essentails

    Hi Kim,

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it. I appreciate if you could help me with more information.

    1. when exactly you receive this error message?

    2. are you on a computer in the domain?

    3 is the Microsoft Security Essentials-specific issue?

    The error messages say about group policy which is the collection of settings that define the appearance of a system and how it behaves for a defined group of users. Microsoft provides a program with a console (Group Policy Microsoft Management Console). The console allows programmers select a GPO that is linked to the directory of centers for domains, organizational units or sites. GPO provides the programmer with security options, the software installation and maintenance options, scripting options and the folder redirection options.

    Response with more information to help you.

  • Seeking help with a problem with the LR I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message, "could not create a JPEG sponsor limit you 92 k Bytes.Plea.

    Seeking help with a problem with the LR


    I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message.

    "Could not create a respondent JPEG limit you 92 k Bytes.Please increase the size limit files
    . (1).

    .....

    I tried to increase the size of the file several times,

    I left LR

    I restarted the computer.


    Any help or advice for this problem will be greatly appreciated


    Thanks in advance


    @stu

    Not because of the number of pixels, in this photo and the chosen level of quality there is no possible way to create a JPG file to the size of file you requested. You must change your export settings.

    Show us a copy of the export dialog box, so we can see clearly the part file setting and the size of the Image.

    Also indicate the number of this image (width and height) pixels after cropping (as appropriate) and prior to export.

  • Cold Fusion Developer Edition can be used to develop the product and deliver to the customer

    Cold Fusion Developer Edition can be used to develop the product and deliver to the customer

    The limit of two IP resists don't not to, the EULA for ColdFusion legally using Developer Edition keeps you in any production environment.  Use it for development is very good, however.

    -Carl V.

  • ADF security - get the list of users to a given role

    Using Jdeveloper 11.1.1.7

    In my grain of support, I'm wanting to send an email to all members of a particular role,

    How can I get a list of users in a particular role?

    Thank you

    Hello

    If you apply LDAP, this method, it might be useful:

    Public Sub beanMethod()

    {

    SearchResponse sr = null;

    IdentityStore idStore is JpsContextFactory.getContextFactory () .getContext () .getServiceInstance (IdentityStoreService.class) .getIdmStore ();.

    SimpleSearchFilter filter = idStore.getSimpleSearchFilter ("ROLE_NAME", SimpleSearchFilter.TYPE_EQUAL, userRole);

    SearchResponse = idStore.search (new SearchParameters (filter, 1)) rolesResponse;

    String email = null;

    If (rolesResponse.hasNext ())

    {

    RoleProfile rp = (RoleProfile) rolesResponse.next ();

    SF ComplexSearchFilter = idStore.getComplexSearchFilter (new SimpleSearchFilter [] {}, ComplexSearchFilter.TYPE_OR);

    Try

    {

    RS = rp.getGrantees (sf, true);

    }

    catch (ObjectNotFoundException exception) e

    {

    }

    If (sr! = null)

    {

    While (sr.hasNext ())

    {

    Identity ID = sr.next ();

    If (id! = null)

    {

    email = ((User) id) .getUserProfile () .getBusinessEmail ();

    your code

    }

    }

    SR. Close();

    }

    }

    rolesResponse.close ();

    }

    RFH.

  • Programs to get forcefully liquidated with user input, on HL2 I get the message: HL2.exe has stopped working.

    Original title: programs get forcefully closed with user entries

    It becomes a common problem. I play the game of Garrys Mod, when its about done with 'send customer... '. "or other words, by sending the list of add-ins to the server, it fogs upward and then an error pops up saying"HL2.exe off work"of such and such, its normal for the program to do and this happens more often and moments later, he continues with normal function, but this time, windows does not allow it.

    Hello
     
     
    1. have you made changes on the computer recently?
    2 is this number reserved only for this game or any other games and programs too?
    Method 1.
    Many users have solved this problem by disabling the DEP (Data Execution Prevention).
    See the Disable DEP for an individual program section in the article below to disable the DEP for this game.
    Change Data Execution Prevention settings
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-data-execution-prevention-settings
     
    Method 2.
    It is a possibility that a third-party application is causing the conflict. Let us try to play the game in the State of clean boot and check if it works very well.
    See the article below for more information and measures.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete do not forget to reset the computer to a normal startup. Follow step 7 in the above article.
     
     
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Question about the use of the custom component class define what declarative component

    12.1.3 jdev

    I'm trying to define a declarative component with my custom component class.

    This is the code for my component jsf declarative. I'm trying to use the label on selectManyListbox attribute to pass queryClass for my component class name. It does not work. I also try to use f: attribute to my component class. It does not work too. Question 1: how to move my declarative component attribute to my class of component?

    < af:panelLabelAndMessage label = "#{attrs.displayLabel}" id = "dc_plam1" > "

    < af:switcher id = "dc_s1" defaultFacet = "a lot" facetName = "#{attrs.single eq 'true'?' unique ': 'a lot'}" >

    < f: facet name = "a lot" >

    < af:selectManyListbox id = "namingp1" simple = "true" label = "#{attrs.queryClass}" "

    ' autoSubmit Binding = "#{dropListComp.selectManyListBox}" = "true" valueChangeListener = "#{dropListComp.selectManyValueChange}" >

    < f: attribute name = "queryClass" value = "#{attrs.queryClass}" / >

    < / af:selectManyListbox >

    < / f: facet >

    < f: facet "single" = name >

    < af:selectOneListbox id = "sl_2" simple = "true" label = "#{attrs.queryClass} '"

    autoSubmit Binding = "#{dropListComp.selectOneListBox}" = "true" valueChangeListener = "#{dropListComp.selectOneValueChange}" > "

    < / af:selectOneListbox >

    < / f: facet >

    < / af:switcher >

    < / af:panelLabelAndMessage >

    That's how I try to retrieve the label or f: attribute queryClass in my component class. I get null for both directions.

    {} public void setSelectManyListBox (RichSelectManyListbox selectManyListBox)
    this.selectManyListBox = selectManyListBox;
    If (this.selectManyListBox.getChildCount () == 0) {}
    queryClass = (String) this.selectManyListBox.getLabel ();
    System.out.println (".. queryClass of the label..." + queryClass);
    If (queryClass is nothing)
    {
    queryClass = (String) this.selectManyListBox.getAttributes () .get ("queryClass");
    System.out.println (".. queryClass of attr..." + queryClass);
    }
    If (queryClass is nothing)
    queryClass = "glog.server.query.powerdata.InvolvedPartyQualQuery";
    this.selectManyListBox.getChildren () .addAll (buildDropListSelectItems (queryClass));
    }
    }

    Thank you.

    Hello

    If your declarative component has a defined class of request attribute then #{attrs.name_of_attribute} called from Java should be able to solve

    Frank

  • Custom button class WordWrap

    Someone knows how to make text wrap to a custom button class? I tried everything (as you can see below)! I even tried the Flexlib CanvasButton class, but not really sure how to apply only to one class custom. BTW, these buttons are inside a TileList component if that makes a difference... I love Flex but sometimes its really simple things that you SHOULD be able to easily do that just drive me NUTS!

    Thanks in advance!

    -Mike

    package action.button
    {
    import flash.display. *;
    import flash.events. *;

    Import mx.controls.Button;
    Import mx.controls.listClasses.BaseListData;
    Import mx.controls.listClasses.ListData;
    Import action.button.NoTruncationUITextField;
    Import mx.core.UITextField;
    Import flexlib.controls.CanvasButton;

    SerializableAttribute public class ButtonCatSearch extends button
    {
    private var _baseListData:BaseListData;
    private var _listData:ListData;
    private var _label:String ="";

    public void ButtonCatSearch()
    {
    Super();
    the cursor always behave as if it were a button
    mouseChildren = false;
    buttonMode = true;
    useHandCursor = true;
    height = 150;
    width = 20;
    setStyle ("paddingLeft", 50);
    setStyle ("paddingRight", 50);
    setStyle ("paddingTop", 50);
    setStyle ("paddingBottom", 50);

    setStyle("horizontalGap",100);
    setStyle ("wordWrap", true);

    wordWrap = true;

    addEventListener (MouseEvent.MOUSE_DOWN, onButtonClick);

    }
    public void onButtonClick(e:Event):void
    {
    _label = e.target.label;

    }
    //----------------
    to return to the line
    for button
    override protected function createChildren() (): void
    {
    Create a UITextField to display the label.
    If (! textField)
    {
    textField = new UITextField();
    textField.styleName = this;
    addChild (DisplayObject (textField));
    }
    super.createChildren ();
    textField.multiline = true;
    textField.wordWrap = true;

    super.createChildren ();
    }
    //-----------------
    override public function get listData (): BaseListData
    {
    Return _baseListData;

    }

    /**
    * @private
    */
    override public function set listData(value:BaseListData):void
    {
    super.listData = value;
    _baseListData = value;
    _listData = _baseListData as ListData;
    }
    //-----------------
    override public function set data(value:Object):void
    {
    / * If {(_listData)
    If {(_listData.icon)
    this.setStyle ("icon", _listData.icon);
    }
    }
    */

    Super.Data = value;
    setStyle ("wordWrap", true);
    }
    //-------------------------
    override the updateDisplayList(unscaledWidth:Number,_unscaledHeight:Number):void function
    {
    super.updateDisplayList (unscaledWidth, unscaledHeight);


    this.textField.multiline = true;
    this.textField.wordWrap = true;

    Data.@price < = 0)? NEGATIVE_COLOR: POSITIVE_COLOR);
    }
    }
    }

    You need to replace [] Measure to get the correct behavior. By default, the button sets the width of the TextField child. What you want is for the width of the TextField to be limited by the width of the button and the button height to vary the height measured from the TextField object.

    I had a quick go at below, but it will probably need more work. I used the example of radio button Alex Harui multiline as a starting point:

    http://blogs.Adobe.com/aharui/2007/04/multiline_buttons.html

    ------------------------------------------------

    package
    {
    import flash.display.DisplayObject;
       
    Import mx.controls.Button;
    Import mx.core.IUITextField;

    SerializableAttribute public class WordWrapButton extends button
    {
    Protected Overrides function createChildren() (): void
    {
    If (! textField)
    {
    textField = IUITextField (createInFontContext (UITextFieldNoTruncation));
    textField.styleName = this;
    addChild (DisplayObject (textField));
    }
               
    super.createChildren ();
               
    textField.multiline = true;
    textField.wordWrap = true;
    }
           
    Override protected function [] Measure: void
    {
    If (isNaN (explicitWidth) is false)
    {
    textField.text = label;
                   
    textField.width =
    explicitWidth-
    Value ("paddingLeft")-
    Value ("paddingRight");
                       
    measuredHeight =
    textField.getExplicitOrMeasuredHeight () +.
    Value ("paddingTop") +.
    Value ("paddingBottom");
    }
    on the other
    {
    Super.Measure ();
    }
    }
           
    override protected function updateDisplayList)
    unscaledWidth: unscaledHeight, number: number): void
    {
    super.updateDisplayList (unscaledWidth, unscaledHeight);
               
    () textField.setActualSize
    textField.width,
    textField.getExplicitOrMeasuredHeight ());
               
    textField.move (textField.x, value ("paddingTop"));
    }
    }
    }

    ------------------------------

    package
    {
    import flash.text.TextFormat;
    import flash.text.TextFormatAlign;
       
    Import mx.core.UITextField;

    SerializableAttribute public class UITextFieldNoTruncation extends UITextField
    {
    Public Overrides function truncateToFit (truncationIndicator: String = null): Boolean
    {
    Returns false;
    }
    }
    }

    ------------------------------


    <>
    "xmlns:MX ="http://www.adobe.com/2006/mxml"
    Layout = "vertical".
    "xmlns:local =" * ">
       
        <>
    Width = "50".
    label = "A very long label I want the button to encapsulate" / >

    <>
    Width = "100".
    label = "A very long label I want the button to encapsulate" / >

    <>
    Width = "200".
    label = "A very long label I want the button to encapsulate" / >

    <>
    Width = "300".
    label = "A very long label I want the button to encapsulate" / >

    <>
    Width = "400".
    label = "A very long label I want the button to encapsulate" / >

  • Used the ADF security, has been able to authenticate the user. problem when disconnecting

    Hello

    I implement security ADF, was able to authenticate the user. In my home page, I have a link to log out.
    If clicked it the follwing method is executed

    ExternalContext ectx =
    FacesContext.getCurrentInstance () .getExternalContext ();
    HttpServletRequest request = (HttpServletRequest) ectx.getRequest ();
    HttpServletResponse response = (HttpServletResponse) ectx.getResponse ();
    HttpSession session = (HttpSession) ectx.getSession (false);
    session. Invalidate();
    String temp =
    request.getContextPath () + ' / adfAuthentication? Logout = true & end_url=/faces/logout.jsp ";

    try {}
    response.sendRedirect (temp);
    FacesContext.getCurrentInstance () .responseComplete ();
    } catch (Exception ex) {}
    System.out.println ("Exception in logout())");

    }

    but the problem is it of not accessing the page to disconnect its redirected to the login page.
    logout page is public page, still transmitted sound to the login page.

    any help would be appreciated

    Hello

    Hey this is not possible it is cause to happen when you invalidate the session, you have configured in the Web.XML when the session is not committed go you to the login page if you want it redirect to the mention of logout page this page as error page when you set up the configuration of the connection in the web.xml file

    Concerning
    Rohit

  • The addition of other security groups (other than Administrator) for roaming user profiles

    We have a few citrix servers configured with the roaming profile. the current permissions for user profiles are 'system', 'servername\administrators', ,

    We want to add that 1 the groups of security more have permissions for newly created user profiles (other than directors). is this possible?
    If so, how?

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Technet Forum. You can follow the link to your question:

  • How to get the current windows user name

    I was wondering if there is a way to get current pc windows user name in labview?
    If there is a way bwsides navigate manually to the folder user thr and stripping the way please let me know.

    It's one of this method

Maybe you are looking for