Programmatic security using isCallerInRole(roleName) doesn't work

Hi,
I am developing an EJB application on WebAS 6.40 SP16 and try to use declarative and programmatic security combined. I have conducted the following steps to map a UME group to an j2ee ejb role:
- Mapped a new Security Role (SR_ProductAdmin) to the UME Administrators group using the Visual Administrator(Services/Security Provider/Security Roles).
- Mapped the Security Role to an EJB Application Security Role in ejb-j2ee-engine.xml
<ejb-j2ee-engine>
  <security-permission>
    <security-role-map>
      <role-name>ProductAdmin</role-name>
      <server-role-name>SR_ProductAdmin</server-role-name>
    </security-role-map>
  </security-permission>
</ejb-j2ee-engine>
- Added the role in ejb-jar.xml/Assembly/security-role
- Enforced descriptive security in ejb-jar.xml/Assembly/method-permission on my EJB. This works as expected, only members of the administrators group can access the EJB.
- Added another role mapped to the J2EE Security Role "all" and added it to  ejb-jar.xml/Assembly/method-permission to allow some methods of the EJB to be invoked by everyone, security checking is based on parameters and done programmatically at runtime.
- I have mapped the ProductAdmin in ejb-jar.xml/Enterprise Beans/session beans/security-role-ref as described in the Developer Studio manual.
<security-role-ref>
  <role-name>ProductAdminInternal</role-name>
  <role-link>ProductAdmin</role-link>
</security-role-ref>
- I should be able to check the role of the caller using the Context.isCallerInRole(String roleName) but it always returns false for roleName="ProductAdminInternal". In the same context I can invoke Context.getCallerPrincipal().getName() and get (correctly) the user name "Administrator".
Thanks in advance,
Stefan

Hi Frank,
When using the Must value authentication worked but when using the Auth value it didn't.
Now I've found what the problem was.
I had to define the users and role in %JDEV_HOME%\j2ee\home\config\system-jazn-data.xml. I had setup my users in several jazn files but this one. It's pretty hard to find in which xml file you have to define users and roles. I don't understand either why switching from Must to Auth makes the authentication using different jazn files...
Now I have to test in an OC4J standalone instance.
Thanks,
Seb.

Similar Messages

  • Many programs I used to use in Tiger doesn't work in Leopard

    Here are the ones I've noticed have not been working or have errors:
    iMovie
    iChat
    Yahoo Messenger
    Adium
    VisualHub
    There are probably like 10 more but I haven't seen it yet. Why are so many programs are acting like this. I was thinking it was becasuse it wasn't ugpraded enough but I did install the newer version and it doesn't work.

    Well, haven't we had to deal with a slew of updates every two years?
    And at least Vista x64 is probably more secure, supports EFI (UEFI 2.).
    The same people that would need a Mac Pro (dual cpu, 8GB RAM, etc) would be looking at 64-bit.
    Did not Apple tout the G5 from IBM as finally being a 64-bit system? But yes, even Adobe CS3 is still 32-bit and limited to 3.5GB of user space, which there are work arounds for.
    One person I tried to help was using Maya but his version doesn't work with Leopard, and blames Apple and 10.5 it seems, rather than realize he needs to consider an 8-core system rather than 4-core, more memory, make better use of disk and RAID, and of course... upgrade software or... WAIT FOR MAYA AND 10.5.x to catch up to each other!
    People assume you have to wait for SP1 for Windows, but think they should jump rigtht in, when we all have seen that X.3 is usually the first "sweet spot" in any release.

  • Two Finger Scrolling using track pad doesn't work.

    You know how you can drag 2 fingers down the track pad to sroll down a page. Well, it doesn't work for me using Vista through Boot Camp. I tried the update, but it wouldn't install.
    Is this as good as it gets?
    Hypnoguy

    Hypnoguy,
    Sorry I haven't used boot camp for a long time my memory is a little fuzzy. Also note I used it with XP and not Vista, but don't use it at the moment anymore.
    Here is a list of Supported Macs for 64-bit windows: http://support.apple.com/kb/HT1846
    As per your trackpad problems after the drives have been installed I would try to install the update again: http://support.apple.com/kb/HT3336
    Here are the boot camp updates and also may help with errors:
    64 bit: http://support.apple.com/downloads/BootCamp_Update_2_1_for_Windows_Vista64
    32 bit: http://support.apple.com/downloads/BootCamp_Update_2_1_for_Windows_Vista32
    Also I would look in the boot camp system tray tool to see if there are settings related to your function keys.
    Sorry I don't know of a function key that changes the startup volume, I only know of the select from the boot camp system tray (Windows)/Startup disk preference pane (Mac) or the hold option during startup. More on that here http://docs.info.apple.com/article.html?path=Mac/10.5/en/11892.html
    A good place to find a lot of Bootcamp support would be here: http://www.apple.com/support/bootcamp/
    Hope that helps,
    Weston

  • Help. iPhone 5, calendar sync issues using Outlook. Doesn't work. Does any kind soul have a solution

    At my wits end. iPhone 5, OS 7.1.1, using Outlook as mail, contacts and calendar but unable to find a solution to sync everything. I have my own domain and use a small ISP. It's not an Exchange server account. I've trawled countless forums but to no avail. Can anyone help? Steve. 

    Mavericks doesn't sync contacts or calendar via iTunes anymore. Apple removed 'sync services' so Outlook doesn't have the sync engine to move data between iOS & the Mac. It will still work on iTunes 11 on earlier OS X's.
    On 10.9 you can either use iCloud, setup your own contacts & calendar server (OS X server, Biakal, Owncloud & many others) or you can find another online service to use to sync data, like Google apps.
    There is a 200 page thread on the issue…
    https://discussions.apple.com/thread/5460803?start=0&tstart=0
    There is also a user tip on how to setup Baikal…
    Hosting your own CalDAV and CardDAV server using Baïkal Server
    You should also look for apps that may help like SyncMate http://www.eltima.com or maybe missing sync? http://www.markspace.com/
    <Edited by Host>

  • IPad to tv using av cable doesn't work since update

    II've used a av cable to connect iPad to tv via hdmi to watch you tube etc but since os update it says not compatible when I plug into the iPad and doesn't work

    You need to get a new cable.  Suggest you try out the cable in the store before buying.  Do not know if any third party cables work.  Goto apple store and buy new cable.  Try in store.  Older apple cables do not work either. 
    This problems has come up with 8.x.
    Robert

  • What component Should I use?, Jpanel doesn't work

    Hi
    I need a program that has a window that can go fullscreen and windowed (I did that with a Jframe in fullscreen mode with a jpnale and a 800x600 Jpanel and destroying them with an object that maneges them), I did it with a jframe that contained a Jpanel, I used a Jpanel to avoid the flickering on the screen but I also need to change the font type and the font size, but the setFont on the Jpanel doesn't change the font (as I have realized and also read here [http://forum.java.sun.com/thread.jspa?forumID=257&threadID=150588] ), so I'm lost, I might have to redo the whole thing, but I just wanted to know what component should I use for a window that is going to have custom graphics and need diffrent fonts and diffrent font sizes and work in fullscreen without flickering
    Thank you for your attention, I would aprecciate any help given

    for example:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSlider;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    public class JPanelFont extends JPanel
      private Font font = getFont();
      private String myString = "Fubars Rule";
      private int fontSize = font.getSize();
      private JSlider slider = new JSlider(0, 100, fontSize);
      public JPanelFont()
        setPreferredSize(new Dimension(620, 250));
        setLayout(new BorderLayout());
        JPanel inputPanel = createInputPanel();
        add(inputPanel, BorderLayout.SOUTH);
      private JPanel createInputPanel()
        JPanel ip = new JPanel();
        slider.setMajorTickSpacing(20);
        slider.setMinorTickSpacing(5);
        slider.setPaintTicks(true);
        slider.setPaintLabels(true);
        ip.add(slider);
        slider.addChangeListener(new ChangeListener()
          public void stateChanged(ChangeEvent evt)
            fontSize = (Integer)slider.getValue();
            repaint();
        return ip;
      @Override
      protected void paintComponent(Graphics g)
        Graphics2D g2 = (Graphics2D)g;
        Object originalHint = g2.getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING);
        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
        super.paintComponent(g2);
        myPaint(g2);
        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, originalHint);
      private void myPaint(Graphics2D g2)
        font = font.deriveFont(Font.BOLD, fontSize);
        g2.setFont(font);
        g2.drawString(myString, 20, 100);
      private static void createAndShowUI()
        JFrame frame = new JFrame("Dynamic JPanel Font");
        frame.getContentPane().add(new JPanelFont());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
          public void run()
            createAndShowUI();
    }Edited by: Encephalopathic on May 21, 2008 9:18 PM

  • CUSTOM ROW FETCH USING PLSQL BLOCK DOESN'T WORK

    Hello,
    I'm using Apex 3.0, and I'm trying to use a anonymous block to populate page items instead of automatic row fetch. Apparently the block works fine but the page doesn't display the items with the values that I fetched.
    I'm using something like:
    Declare
    v_test varchar2(10);
    begin
    select name into v_test from emp where emp_no=:p10_id;
    :p10_name:=v_test;
    end;
    Does anyone have a clue ? The process is defined to run on "OnLoad - After header", but I've tried other options, but the results are the same: P10_name appears blank.
    thank you for your help
    JAV

    But there is a catch.....on the item definition, the "SOURCE USED" must be set to "Only when current value in session is null", otherwise, it doesn't show what you want.
    Cheers
    JAV

  • Database Backup using batch mode doesn't work

    Hello,
    i try to use the batch mode to backup the HANA DB (1.00.21) but nothing happens.
    my backup.sql
    \connect -n <server name> -i <instance number> -u <user> -p <password>
    BACKUP DATA USING FILE ('Monday')
    excecute the backup
    /usr/sap/<SID>/HDB<instance number>/exe/hdbsql -I backup.sql
    The instructions work for themselves but with this script nothing happens.
    Any ideas?
    Thanks

    Hello,
    The manual advises against your proposal rather, because the password is visible in the process.
    Actually it is not advising against what I suggest and what it in the blog.
    You have three options:
    1.) run everything from command line (this is what SAP suggested that is wrong because you would see the password)
    2.) store password in file - less wrong than option 1.) because everyone having access to file can see the password
    3.) store password in encrypted user store and use just -U <user> (no password needed)
    This is also suggested in guide:
    In addition, the password must be saved in the hdbuserstore, and not in a file.
    The issue is in separator - it is stated that default is '//' but apparently it is not - it is ';'.
    This syntax would work:
    \connect -n <server name> -i <instance number> -u <user> -p <password>;
    BACKUP DATA USING FILE ('Monday');
    Anyway - it is wrong from security perspective. User store is much better because the password is encrypted.
    Tomas

  • Viewing a report from BW SAP GUI using report_view.aspx doesn't work

    Hello,
    when viewing reports in SAP GUI from our BW system no report as an output is showed. I can only see Infoview page and it doesn't matter whether I insert whole URL with report ID, client etc. or only report basic page.
    http://<server_name>:8080/businessobjects/enterprise115/sap/infoview/report/report_view.aspx?bw_id=<report_id>&sap_sysid=<SID>&sap_client=<client>&language=EN&cmsname=<crystal_server_name>
    http://<server_name>:8080/businessobjects/enterprise115/sap/infoview/report/report_view.aspx
    This URL will prompt for password and then redirect me to Infoview .NET page only without report output. When I click on the report from InfoView everything is working well I can see the report output. Only from SAP GUI the URL link is not working. I configured /crystal/rptadmin details as per SDN Ingo's blog. I also configured SAP roles for folders in InfoView under path /SAP/2.0/. And all other post steps from Installation guide.
    One OSS note 1219551 which refers to this problem doesn't help me either, altough I patched BOE XI R2 with latest SP6.
    Version of Crystal report is BOE XI R2 with SP6. SAP system is NW 04 with BW component.
    Does anyone have the same problem ?
    Thanks.

    Problem solved.

  • Email with attachments QPAC: setting "From" using process data doesn't work

    Hi,
    I trying to set the "From" in the Email with attachments QPAC from a process variable, let's call it "mailagent", which is of type xs:string.
    So I use a set value QPAC, which sets the "mailagent" variable to "[email protected]". The workflow then continous with the Email QPAC.
    Which stalls and throws the following exception:
    javax.mail.MessagingException: 501 Syntax error, parameters in command "MAIL FROM:<{$/process_data/@mailagent$}>" unrecognized or missing
    Hrm. I thought, I had already used the Email QPAC this way.
    Is there some kind of magic to apply to the Email with attachments QPAC in order for it to accept process data in the "From"?
    Steve

    Yes, I'm sure, it worked for us to. But it obviously no longer does.
    Yes, "mailagent" definitely is a variable of type string, though it's of type
    xs:string. I'm no longer able to create variables, which don't feature the
    xs namespace. Which is quite confusing as I've got absolutely no idea, what the
    xs is used for.
    We are using LiveCycle Workflow 7.2.1, the Email QPAC is 7.0.2. Is this the latest version?
    Steve

  • MERGE using nested table doesn't work on Oracle 9i

    Hi,
    Oracle 9i Enterprise Edition Release 9.2.0.4.0 on Red hat Linux
    SQL> create table PERSONS (
      2    ID  number(9)
      3   ,SURNAME  varchar2(50)
      4   ,constraint PERSONS_PK primary key (ID)
      5  );
    Table created.
    SQL> create or replace type T_NUMBER_ARRAY as table of number;
      2  /
    Type created.
    SQL> create or replace procedure P_MRGTS2 (P_ID  PERSONS.ID%type)
      2  is
      3    L_IDS  T_NUMBER_ARRAY;
      4  begin
      5    L_IDS := T_NUMBER_ARRAY(P_ID);
      6    merge into PERSONS P using (select * from table(L_IDS)) D on (
      7      P.ID = D.COLUMN_VALUE
      8    )
      9    when matched then update
    10      set SURNAME = 'Updated'
    11    when not matched then
    12      insert (
    13        ID
    14       ,SURNAME
    15      )
    16      values (
    17        D.COLUMN_VALUE
    18       ,'Inserted'
    19      );
    20  end;
    21  /
    Procedure created.
    SQL> exec P_MRGTS2(1)
    BEGIN P_MRGTS2(1,'Avi'); END;
    ERROR at line 1:
    ORA-22905: cannot access rows from a non-nested table item
    ORA-06512: at "OPS$AABRAMI.P_MRGTS2", line 9
    ORA-06512: at line 1However, the same code on Oracle 10g Release 10.2.0.1.0 on SUN Solaris 9 works.
    Is there any way to make it work on Oracle 9i?
    One way I found is the following:
    procedure P_MRGTST (P_ID  PERSONS.ID%type)
    is
      L_IDS  T_NUMBER_ARRAY;
    begin
      L_IDS := T_NUMBER_ARRAY(P_ID);
      forall I in L_IDS.first..L_IDS.last
        merge into PERSONS P using DUAL D on (
          P.ID = L_IDS(I)
        when matched then update
          set SURNAME = 'Updated'
        when not matched then
          insert (
            ID
           ,SURNAME
          values (
            L_IDS(I)
           ,'Inserted'
    end;On Oracle 10g there is negligible difference in time taken to execute both procedures, as displayed in SQL*Plus when issuing:
    set timing onIs there something that makes one of the procedures preferrable over the other?
    Thanks,
    Avi.

    Is there any way to make it work on Oracle 9i?
    michaels>  select * from v$version
    BANNER                                                         
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production                          
    CORE     9.2.0.8.0     Production                                      
    TNS for HPUX: Version 9.2.0.8.0 - Production                   
    NLSRTL Version 9.2.0.8.0 - Production                          
    michaels>  create table persons (
        id  number(9)
           ,surname  varchar2(50)
              ,constraint persons_pk primary key (id)    )
    Table created.
    michaels>  create or replace type t_number_array as table of number;
    Type created.
    michaels>  create or replace procedure p_mrgts2 (p_id persons.id%type)
    is
       l_ids   t_number_array;
    begin
       l_ids := t_number_array (p_id);
       merge into persons p
          using (select * from table (cast (l_ids as t_number_array))) d
          on (p.id = d.column_value)
          when matched then
             update set surname = 'Updated'
          when not matched then
             insert (id, surname) values (d.column_value, 'Inserted');
    end p_mrgts2;
    Procedure created.
    michaels>  exec p_mrgts2(1)
    PL/SQL procedure successfully completed.
    michaels>  select * from persons
            ID SURNAME                                          
             1 Inserted                                         
    1 row selected.

  • Auto Query in Master Detail Form using dynamic page doesn't work

    I created a Master-Detail form, and implement AutoQuery using a dynamic page
    with the following code :
    <HTML>
    <BODY>
    <ORACLE>DECLARE
    nre_ VARCHAR2(100);
    BEGIN
    nre_ := emp_nre;
    if nre_ is not null then
    net_portal.Popula_Agregados(nre_);
    net_portal.Popula_Docs_Agregados (nre_);
    htp.p('<iframe id=myFrame name="myFrame" frameborder=0 width="250%"
    height="300"
    src="/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=
    3
    388118140&p_arg_names=_show_header&p_arg_values=NO&p_arg_names=_cad_nre_cond&p_a
    rg_values=%3D&p_arg_names=cad_nre&p_arg_values='||nre_||'">
    </iframe>');
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    htp.p(SQLERRM);
    END;
    </ORACLE>
    </BODY>
    </HTML>
    It works fine when we access the first time to the page, but if i press the
    save button after inserting or updating a detail record, the header record is
    lost. How can i avoid this situation ?

    I changed query:
    select
    Replace(
    '<img src="#IMAGE_PREFIX#ed-item.gif" border="0" alt="EditMap" usemap="#editmap***id***"></img>
    <map name="editmap***id***">
    <area shape="rect" coords="0,0,16,16" href="http://apex.oracle.com/pls/otn/f?p=&APP_ID.:'
    || decode ( type, 'FOLDER', '33', '22' )
    || ':&APP_SESSION.::&DEBUG.::P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_ID,P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_CALLING_PAGE:' || id || ',&APP_PAGE_ID." ></area></map>' ,
    '***id***', id
    ) Edit,
    id,
    type,
    name,
    decode ( type, 'FOLDER', 33, 22 ) target
    from tThe idea is - each img uses its own map.
    It works now.
    Check:
    http://apex.oracle.com/pls/otn/f?p=20980:13
    Lev
    Edited by: le on Nov 3, 2010 11:11 AM

  • [SOLVED] Remapping keys using udev hwdb doesn't work on rightAlt

    hi, I had posted this topic in the [ newbie corner ] subforum for days, but got no repliy. I hope I can find luck  here.
    I'm trying to use udev hwdb for swapping pairs of keys ( esc, caps_lock ) and ( rightAlt , rightCtrl ) . I followed the instruction here Map Scancodes to Keycodes   with procedures describe blow. I only succeed in exchanging pair (esc, caps_lock) but failed in (rightAlt, rightCtrl).
    Details of Procedures:
    Create an empty file under /usr/lib64/udev/hwdb.d with file name 90-custom-keys.hwdb . Add the following lines into this file.
    keyboard:dmi:bvn*:bvr*:bd*:svnDell*:pn*
    KEYBOARD_KEY_01=capslock
    KEYBOARD_KEY_3a=esc
    KEYBOARD_KEY_e038=rightctrl
    KEYBOARD_KEY_e01d=rightalt
    Rebuilding hwdb.bin
    udevadm hwdb --update
    Testing and reboot my system
    udevadm --debug test /devices/platform/i8042/serio0/input/input0/event0
    udevadm --debug test-builtin keyboard /devices/platform/i8042/serio0/input/input0/event0
    Parts of the testing result of the last command looks like
    device 0x1ce3890 has devpath '/devices/platform/i8042/serio0/input/input0/event0'
    device 0x1ce3890 filled with db file data
    keyboard: mapping scan code 1 (0x1) to key code 58 (0x3a)
    keyboard: mapping scan code 58 (0x3a) to key code 1 (0x1)
    keyboard: mapping scan code 129 (0x81) to key code 164 (0xa4)
    keyboard: mapping scan code 130 (0x82) to key code 166 (0xa6)
    keyboard: mapping scan code 164 (0xa4) to key code 166 (0xa6)
    keyboard: mapping scan code 216 (0xd8) to key code 152 (0x98)
    keyboard: mapping scan code 217 (0xd9) to key code 191 (0xbf)
    keyboard: mapping scan code 57373 (0xe01d) to key code 100 (0x64)
    Error calling EVIOCSKEYCODE: Invalid argument
    keyboard: mapping scan code 57400 (0xe038) to key code 97 (0x61)
    Error calling EVIOCSKEYCODE: Invalid argument
    keyboard: mapping scan code 237 (0xed) to key code 226 (0xe2)
    unload module index
    Thie last 6 lines seems to be complaining the  problem, saying that 0xe038  and 0xe01d are invalid scancodes.
    But they are scancodes of rightAlt and rightCtrl respectively, which I got from
    showkey -s
    After rebooting the system with the above settings, esc works as caps_lock and caps_lock works as  esc but  rightAlt and rightCtrl has no changes.
    Last edited by kejingzhang (2013-10-10 02:32:29)

    Thanks plam and Raynman for your help . Follow your hints, I succeed the swapping key task in an alternative method.
    Using the command 'setkeycodes' and adding these commands into a systemd controlled service script, keymaps are exchanged as gdm started.
    Here is my script and steps for doing this.
    Created a file with filename custom-keys.service under /etc/systemd/system. Add the  following context to the file.
    [Unit]
    Description=Keymap Custom
    Requires=gdm.service
    After=gdm.service
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/setkeycodes 1 58
    ExecStart=/usr/bin/setkeycodes 3a 1
    ExecStart=/usr/bin/setkeycodes e01d 100
    ExecStart=/usr/bin/setkeycodes e038 97
    [Install]
    WantedBy=graphical.target
    Enable the script so setkeycodes commands will automatically executed when gdm starts
    systemctl enable custom-keys
    The next time you reboot your system, key changes will take effect. To test if your config works, try
    systemctl start custom-keys

  • Remapping keyboard keys using udev hwdb doesn't work on rightAlt

    Hi,
    I'm trying to use udev hwdb for swapping pairs of keys ( esc, caps_lock ) and ( rightAlt , rightCtrl ) . I followed the instruction here Map Scancodes to Keycodes   with procedures describe blow. I only succeed in exchaging pair (esc, caps_lock) but failed in (rightAlt, rightCtrl).
    Details of Procedures:
    Create an empty file under /usr/lib64/udev/hwdb.d with file name 90-custom-keys.hwdb . Add the following lines into this file.
    keyboard:dmi:bvn*:bvr*:bd*:svnDell*:pn*
    KEYBOARD_KEY_01=capslock
    KEYBOARD_KEY_3a=esc
    KEYBOARD_KEY_e038=rightctrl
    KEYBOARD_KEY_e01d=rightalt
    Rebuilding hwdb.bin
    udevadm hwdb --update
    Testing and reboot my system
    udevadm --debug test /devices/platform/i8042/serio0/input/input0/event0
    udevadm --debug test-builtin keyboard /devices/platform/i8042/serio0/input/input0/event0
    Parts of the testing result of the last command looks like
    device 0x1ce3890 has devpath '/devices/platform/i8042/serio0/input/input0/event0'
    device 0x1ce3890 filled with db file data
    keyboard: mapping scan code 1 (0x1) to key code 58 (0x3a)
    keyboard: mapping scan code 58 (0x3a) to key code 1 (0x1)
    keyboard: mapping scan code 129 (0x81) to key code 164 (0xa4)
    keyboard: mapping scan code 130 (0x82) to key code 166 (0xa6)
    keyboard: mapping scan code 164 (0xa4) to key code 166 (0xa6)
    keyboard: mapping scan code 216 (0xd8) to key code 152 (0x98)
    keyboard: mapping scan code 217 (0xd9) to key code 191 (0xbf)
    keyboard: mapping scan code 57373 (0xe01d) to key code 100 (0x64)
    Error calling EVIOCSKEYCODE: Invalid argument
    keyboard: mapping scan code 57400 (0xe038) to key code 97 (0x61)
    Error calling EVIOCSKEYCODE: Invalid argument
    keyboard: mapping scan code 237 (0xed) to key code 226 (0xe2)
    unload module index
    Thie last 6 lines seems to be complaining the  problem, saying that 0xe038  and 0xe01d are invalid scancodes.
    But they are scancodes of rightAlt and rightCtrl respectively, which I got from
    showkey -s
    After rebooting the system with the above settings, esc works as caps_lock and caps_lock works as  esc but  rightAlt and rightCtrl has no changes.
    Last edited by kejingzhang (2013-10-04 08:51:59)

    For USB keyboard, you need to get the scancodes from evtest rather than showkey. You may find a solution from:
    https://ask.fedoraproject.org/en/questi … -keycodes/

  • JCo Connection using file.properties doesn't work when deployed

    Hello Experts,
    I'm trying to connect to a SAP backend system using the JCo connection.
    I've tyed with the standard connection, crating dinamically the connection and it works fine:
    mConnection = JCO.createClient("001", // SAP client
    "sap.user", // userid
    "********", // password
    "IT", // language
    "ashost.domain.dom", // application server host name
    "06"); // system number
    mConnection.connect();
    Then I tryed to store the login data in a file 'login.properties' put in the same package of my connection classes.
    The code is:
    String[] logonStr = new String[5];
    Properties properties = new Properties();
    try {
    InputStream is = getClass().getResourceAsStream("login.properties");
    properties.load(is);
    } catch (Exception e) {
    e.printStackTrace();
    logonStr[0] = PropertyManager.getProperty(applicationProperties,"jco.client.client");
    logonStr[1] = PropertyManager.getProperty(applicationProperties,"jco.client.user");
    logonStr[2] = PropertyManager.getProperty(applicationProperties,"jco.client.passwd");
    logonStr[3] = PropertyManager.getProperty(applicationProperties,"jco.client.ashost");
    logonStr[4] = PropertyManager.getProperty(applicationProperties,"jco.client.sysnr");
    mConnection = JCO.createClient(logonStr[0],      // SAP client
    logonStr[1],    // userid
    logonStr[2],    // password
    "IT",           // language
    logonStr[3],    // application server host name
    logonStr[4]);   // system number
    If I test locally this code it works fine and the login datas are extracted from the 'login.properties' file.
    But when I deploy my PAR file in the Portal seems that the 'login.properties' file isn't found by my application...
    Which could be the cause??
    Could it be a permission problem??
    Any Ideas?
    Thanks in Advance,
    Best Regards

    Hi Shyam,
    Thanks for your answer!
    I could use the string "ashost.domain.dom" instead to extract it from the 'login.properties' but I need also the others login info as username and password.
    My problem is that the 'login.properties' file is not found by my application when the PAR file is deployed in the portal...
    I need to know if I need to move the 'login.properties' file in another package or something else...
    Any ideas??
    Have I to declare the .properties file in some configuration file (for example portalapp.xml or somthing similar..) ??
    Best Regards...

Maybe you are looking for

  • ITunes 7.4 for Windows 2000

    When will iTunes 7.4 be available for Windows 2000? Regards, Antony.

  • I'm looking for a music player with the following features:

    Hi everyone, I'm setting up a linux desktop for the first time. I'd like some directions on finding a music player. Here are my criteria, in order of importance:   - Can play (at least) ogg, mp3 and wav   - Prefers a 'playlist approach' (m3u) to a 'm

  • Import Photos to iPhone from MacBook

    Is ther a simple way to import photos to my iPhone from my Macbook. I do not want to Sync as this erases/replaces a previous album. Thank You in advance David

  • Photoshop  cs4 opening image with Yello shade

    I would be really grateful if anyone can give me the solution for this problem. I have just installed CS4 Masters collection and using on a windows XP professional ver.2002 service pac 3. After opening any image on Photoshop, it shows in a yellow sha

  • SQL tuning for extremely slow query

    Hi, We have a requirement to display sales data by month. The sales data should be summed based on groups. The whole query is dynamically generated so the WHERE clause as well as the GROUP BY columns will be dynamically generated. Please find below t