EJB security roles

Hello,
I am using JDeveloper 3.2.2 to deploy EJBs to an 8.1.7 DB. Could someone point me in the direction of some documentation that would explain the concept of security roles and users for EJB methods? Do the users have to map to real users in the DB or how are they handled etc.
Thanks in advance,
- Nik

Based on the link given here is the xml. This XML already exists in the application and has such structure
<security-permission>
   <security-role-map>
      <role-name>developer</role-name>
      <server-role-name>role1</server-role-name>
      <server-role-name>role2</server-role-name>
      <server-role-name>role3</server-role-name>
      <server-role-name>role4</server-role-name>
      <server-role-name>role5</server-role-name>
   </security-role-map>
</security-permission>
My question is, which of the following annotation will work:
@RolesAllowed(value=)
or
@RolesAllowed(value=)  //currently I am using this.
Edited by: Arpit Goyal on Feb 27, 2009 4:39 AM

Similar Messages

  • Problem mapping LoginModule roles to ejb security roles

    I have "successfully" managed to implement the DBSystemLoginModule. When I run my application I successfully authenticate to the database, the login module successfully retrieves the users roles from the database and adds them to the subject:
    PassiveCallbackHandler cbh = new PassiveCallbackHandler(username, password);
    LoginContext lc = new LoginContext("current-workspace-app", cbh);
    lc.login();
    I then perform a lookup on a bean using the same user:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put("java.naming.security.principal",username);
    env.put("java.naming.security.credentials",password);
    env.put("java.naming.provider.url", "ormi://localhost:23891/current-workspace-app");
    Context ic = new InitialContext(env);
    final SessionEJBHome sessionEJBHome =
    (SessionEJBHome) PortableRemoteObject.narrow( ic.lookup( "SessionEJB" ), SessionEJBHome.class );
    Finally, I create an instance of the bean and call a method of this bean.
    SessionEJB sessionEJB;
    sessionEJB = sessionEJBHome.create( );
    sessionEJB.testMe( );
    I am expecting (hoping) that the roles retrieved from the database by the login module may be used to authenticate the ejb methods. i.e. if (in ejb-jar.xml) the method "testMe" has a method-permission with role-name of "ABC" then this method may only be accessed if the user is a member of the "ABC" role retrieved from the database by the login module. However I get the message:
    "username is not allowed to call this EJB method"
    When I add a security-role-mapping in orion-ejb-jar.xml mapping the role "ABC" to the group "ABC" (and impliesALL="true") then the method is called successfully. However, if I add a security-role-mapping mapping the role "DEF" to the group "DEF" (which the user is not a member of) the ejb method is (wrongly) called successfully (with implies all="false" the method always fails). In other words there seems to be no mapping of the roles retrieved by the login module to the ejb security roles.
    Can anyone please enlighten me on how I can achieve the mapping of the ejb security roles to the roles obtained from the login module.
    Thanks
    PS I have this problem with JDeveloper 10.1.3 (Developer Preview 10.1.3.0.2.223 and Early Access 10.1.3.0.3.3412)

    Hi Sebastian,
    yes, it is possible to do such mapping. And here how it works:
    1. define security roles in the ejb-jar.xml within the <security-role>. For example:
    <security-role>
         <role-name>test</role-name>
    </security-role>
    2. then you map the roles those roles to server security roles using the <security-role-map> tag of the ejb-j2ee-engine.xml descriptor.
    <security-permission>
       <security-role-map>
          <role-name>test</role-name>
          <server-role-name>myUMErole</server-role-name>
       </security-role-map>
    </security-permission>
    the myUMErole must be defined in the UME!
    Does this answer your question?

  • Retrieve ejb security roles list

    Hi,
    in a EJB stateless session bean is it possible to retrieve, by EJB context, the list of configured roles related to the current user?
    Thanks in advance.
    bye
    Rob

    Based on the link given here is the xml. This XML already exists in the application and has such structure
    <security-permission>
       <security-role-map>
          <role-name>developer</role-name>
          <server-role-name>role1</server-role-name>
          <server-role-name>role2</server-role-name>
          <server-role-name>role3</server-role-name>
          <server-role-name>role4</server-role-name>
          <server-role-name>role5</server-role-name>
       </security-role-map>
    </security-permission>
    My question is, which of the following annotation will work:
    @RolesAllowed(value=)
    or
    @RolesAllowed(value=)  //currently I am using this.
    Edited by: Arpit Goyal on Feb 27, 2009 4:39 AM

  • Ejb security role & bea implementation

    A role has been defined in ejb-jar as following:
    <security-role>
    <description><![CDATA[Deployer User]]></description>
    <role-name>deployer</role-name>
    </security-role>
    <method-permission>
    <description><![CDATA[Deployer Method Permission]]></description>
    <role-name>deployer</role-name>
    <method>
    <description><![CDATA[All method for CCPStateBean]]></description>
    <ejb-name>CCPStateBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    If the principal is included in the weblogic-ejb-jar as below, and the jndi lookup
    includes the SECURITY_PRINCIPAL (e.g., jzhu), the code works fine.
    <security-role-assignment>
    <role-name>deployer</role-name>
    <principal-name>jzhu</principal-name>
    </security-role-assignment>
    The problem comes when the principal is not included as above weblogic-ejb-jar
    instead a role "deployer" is defined in WLS's, The user ("jzhu") is defined in
    the deployer group. And the deployer group belongs to deployer role. The defaultRoleMapper
    is enabled. In this scenario, the access failed due to insufficient permission.
    Can ejb-jar's role relates to WLS's role. Please advise. THX.
    -John

    Thanks for the information. It works. I wish bea monitor this newsgroup since this
    is not in their document. By the way, the following links clarifies the relationship
    between DD and admin console security configuration.
    http://edocs.bea.com/wls/docs70/security/cli_apps.html#1090734
    -John
    "Arjuna Chala" <[email protected]> wrote:
    I don't know about "defaultRoleMapper", but this works
    <security-role-assignment>
    <role-name>deployer</role-name>
    <principal-name>deployer</principal-name>
    </security-role-assignment>
    where <role-name> maps to a ejb-jar role and <principal-name> maps to
    a
    weblogic group (in this case).
    "john" <[email protected]> wrote in message
    news:[email protected]..
    A role has been defined in ejb-jar as following:
    <security-role>
    <description><![CDATA[Deployer User]]></description>
    <role-name>deployer</role-name>
    </security-role>
    <method-permission>
    <description><![CDATA[Deployer Method Permission]]></description>
    <role-name>deployer</role-name>
    <method>
    <description><![CDATA[All method for CCPStateBean]]></description>
    <ejb-name>CCPStateBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    If the principal is included in the weblogic-ejb-jar as below, andthe
    jndi lookup
    includes the SECURITY_PRINCIPAL (e.g., jzhu), the code works fine.
    <security-role-assignment>
    <role-name>deployer</role-name>
    <principal-name>jzhu</principal-name>
    </security-role-assignment>
    The problem comes when the principal is not included as aboveweblogic-ejb-jar
    instead a role "deployer" is defined in WLS's, The user ("jzhu") isdefined in
    the deployer group. And the deployer group belongs to deployer role.The
    defaultRoleMapper
    is enabled. In this scenario, the access failed due to insufficientpermission.
    Can ejb-jar's role relates to WLS's role. Please advise. THX.
    -John

  • Configure security-role and method permission for EJB 3.0 using Jdev 11g

    The EJB 3.0 session bean created by Jdev 11g EJB wizard does not have ejb-jar.xml. Where and how can security-role and method permission for the EJB be configured?
    For example,
    <assembly-descriptor>
    <security-role>
    <role-name>managers</role-name>
    </security-role>
    <method-permission>
    <role-name>managers</role-name>
    <method>
    <ejb-name>Employees</ejb-name>
    <method-name>setSalary</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </method>
    </method-permission>
    </assembly-descriptor>

    user516954,
    By default annotations are used. However, you can create a new descriptor and that will take presidence over any declared annotation.
    --Ric                                                                                                                                                                                                                                                                                                                               

  • Warning: EJB  referenced an unknown security role?

    Hello,
    I get a weird error from WL 5.1 (SP6), using the default WLPropertyRealm.
    In the EJB I have the following check:
    if (ctx.isCallerInRole("ConspiratorRole"))
    System.out.println ("the user is in the ConspiratorRole role");
    At run time, I get the following warning in the WL window:
    Fri Nov 10 12:56:58 EST 2000:<I>
    <EJB JAR deployment D:/weblogic/myserver/myBean.jar>
    Warning: EJB "unu" referenced an unknown security role
    However:
    - the role IS defined (see ejb-jar.xml)
    - has an associated principal (see weblogic-ejb-jar.xml)
    - there is a principal defined in weblogic.properties
    - this principal (and this role) is actually used in practice to access the
    bean. Which works.
    So why the warning?
    Any hint appreciated,
    Thanks.
    ejb-jar.xml:
    <assembly-descriptor>
    <security-role>
    <description>description of the ConspiratorRole</description>
    <role-name>ConspiratorRole</role-name>
    </security-role>
    </assembly-descriptor>
    weblogic-ejb-jar.xml:
    <weblogic-ejb-jar>
    <security-role-assignment>
    <role-name>ConspiratorRole</role-name>
    <principal-name>Conspirator</principal-name>
    </security-role-assignment>
    </weblogic-ejb-jar>

    You should not reference the role link in you code.The role link is used to
    connect the role name in you code to the
    role name in your deployment descripment. Only if this link is set up as you
    have done below, will the isCallerInRole return true.
    - Sri
    Alf wrote:
    I reviewed older postings and found indications of what appears to be a bug
    in WL: that isCallerInRole always return false for role names but returns
    correct values if the role names are linked with a reference in
    <security-role-ref>. So, according to the DTD at
    http://edocs.bea.com/wle/dd/ddref.htm#1038338 I added the following in
    ejb-jar.xml:
    <ejb-jar>
    <enterprise-beans>
    <session>
    <security-role-ref>
    <role-name>ConspiratorRole</role-name>
    <role-link>ConspiratorRoleLink</role-link>
    </security-role-ref>
    and added 2 lines in the bean to test the both the role and the reference
    if (ctx.isCallerInRole("ConspiratorRole"))
    System.out.println ("the user is in the ConspiratorRole role");
    if (ctx.isCallerInRole("ConspiratorRoleLink"))
    System.out.println ("the user is in the ConspiratorRoleLink
    role");
    The unexpected result was a NullPointerException at
    weblogic.ejb.internal.BaseEJBContext.isCallerInRole(BaseEJBContext.java:665)
    Can anyone shed some light? Thanks.
    "Alf" <alf> wrote in message news:[email protected]...
    Hello,
    I get a weird error from WL 5.1 (SP6), using the default WLPropertyRealm.
    In the EJB I have the following check:
    if (ctx.isCallerInRole("ConspiratorRole"))
    System.out.println ("the user is in the ConspiratorRole role");
    At run time, I get the following warning in the WL window:
    Fri Nov 10 12:56:58 EST 2000:<I>
    <EJB JAR deployment D:/weblogic/myserver/myBean.jar>
    Warning: EJB "unu" referenced an unknown security role
    However:
    - the role IS defined (see ejb-jar.xml)
    - has an associated principal (see weblogic-ejb-jar.xml)
    - there is a principal defined in weblogic.properties
    - this principal (and this role) is actually used in practice to accessthe
    bean. Which works.
    So why the warning?
    Any hint appreciated,
    Thanks.
    ejb-jar.xml:
    <assembly-descriptor>
    <security-role>
    <description>description of the ConspiratorRole</description>
    <role-name>ConspiratorRole</role-name>
    </security-role>
    </assembly-descriptor>
    weblogic-ejb-jar.xml:
    <weblogic-ejb-jar>
    <security-role-assignment>
    <role-name>ConspiratorRole</role-name>
    <principal-name>Conspirator</principal-name>
    </security-role-assignment>
    </weblogic-ejb-jar>

  • Security-role and security-role-assignment not working in WL7.0

    Hello all..
    Some EJB components that worked fine in WebLogic 6.1 no longer work in
    WL7.0. It has to do with the security-role and security-role-assignment
    descriptor elements no longer allowing anonymous users to be included in the
    authorization for a bean.
    For example, in WL6.1 placing these items in ejb-jar.xml:
    <assembly-descriptor>
    <security-role>
    <role-name>Employees</role-name>
    </security-role>
    <method-permission>
    <role-name>Employees</role-name>
    <method>
    <ejb-name>CustomerEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    and mapping WebLogic default users to this role in weblogic-ejb-jar.xml:
    <security-role-assignment>
    <role-name>Employees</role-name>
    <principal-name>guest</principal-name>
    <principal-name>system</principal-name>
    </security-role-assignment>
    worked fine for clients creating their context using a simple
    InitialContext() constructor without specifying SECURITY_PRINCIPAL or
    SECURITY_CREDENTIALS. These users were basically "guest" to WebLogic, and
    the security-role-assignment element above told WebLogic that "guest" was in
    the Employees role for purposes of this EJB archive.
    Worked in WL6.1, no longer works in WL7.0. Client receives typical
    permission exception:
    java.rmi.AccessException: Security violation: insufficient permission to
    access method 'create'
    If I explicity connect as "system" things are fine, or I can create a new
    user in the default realm in WebLogic, put a matching <principal-name>
    element in the section above, and connect as that user. Note that if I leave
    off the <security-role> section completely, or set the required role name to
    "everyone", the anonymous access works fine. Apparently the anonymous user
    is a member of "everyone" behind the scenes even though "everyone" does not
    appear in the realm list of groups or roles.
    So, my question boils down to this: Is there a "magic" username in WL7 like
    "guest" was in WL6.1 that can be mapped to the required role name, or must
    every client connection use a true weblogic-created user with appropriate
    role assignments used to map it to the required role name.
    -Greg
    P.S. Note that none of the EJB examples provided with WL used
    <security-role>..
    Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
    www.amazon.com/exec/obidos/ASIN/1931822468 or www.titan-books.com

    Below are the screen shots for PFCG:

  • Redirecting user to acustom page depending on security role after glassfish

    Hi,
    I have a JSF application using glassfish authentication mechanism. I'm planning to use a jdbc realm and form based authentication (I'm using a jsp page to get username and password) . I have 3 different user roles (student, admin and staff)
    However I cannot find how to redirect a user to a different page (Ex: staff report page if the logged in user is in the security role staff). I have configured sun-web.xml and web.xml to map the roles and groups. The problem is after authentication the user is always redirected back to the home page, which is the login page. I understand this is how the glassfish authentication works by default. But is there a way to navigate the user to a different page depending on his role.
    I'm new to EJB security. Please help me on this subject. Thanks a lot in advance.

    Check this blog post, which provides an alternate solution (You can choose the best possible solution based on your use-case).
    http://andrejusb.blogspot.com/2007/10/security-in-oracle-adf-and-automatic.html
    Thanks,
    Navaneeth

  • Security role with alias KeystoreAdministrator does not exist.

    i have a error trying to start  the java engine of a Solution Manager 4.0 SR2 on AIX with ibm jdk SR9
    the next log is about the std_server0.out
    i do not how to create the alias because i can not connect using Visual Administrator because the server not start
    stdout/stderr redirect
    node name   : server0
    pid         : 995354
    system name : SMS
    system nr.  : 00
    started at  : Wed Aug 13 18:26:36 2008
    [Thr  1] Wed Aug 13 18:26:37 2008
    [Thr  1] MtxInit: -2 0 0
    <?xml version="1.0" ?>
    <verbosegc version="200708_30">
    SAP J2EE Engine Version 7.00   PatchLevel 108458.44 is starting...
    Loading: LogManager ... 2643 ms.
    Loading: PoolManager ... 2 ms.
    Loading: ApplicationThreadManager ... 837 ms.
    Loading: ThreadManager ... 54 ms.
    Loading: IpVerificationManager ... 12 ms.
    Loading: ClassLoaderManager ... 14 ms.
    Loading: ClusterManager ... 226 ms.
    Loading: LockingManager ... 68 ms.
    Loading: ConfigurationManager ... 86617 ms.
    Loading: LicensingManager ... 28 ms.
    Loading: CacheManager ... 159 ms.
    Loading: ServiceManager ...
    Loading services.:
      Service cross started. (75 ms).
      Service memory started. (98 ms).
      Service runtimeinfo started. (115 ms).
      Service trex.service started. (87 ms).
      Service file started. (156 ms).
      Service timeout started. (159 ms).
      Service userstore started. (19 ms).
      Service jmx_notification started. (78431 ms).
      Service p4 started. (188119 ms).
      Service classpath_resolver started. (63 ms).
    <af type="nursery" id="1" timestamp="Wed Aug 13 18:32:05 2008" intervalms="0.000">
      <minimum requested_bytes="48" />
      <time exclusiveaccessms="1.635" />
      <nursery freebytes="0" totalbytes="209715200" percent="0" />
      <tenured freebytes="1724342296" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637940248" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <gc type="scavenger" id="1" totalid="1" intervalms="0.000">
        <flipped objectcount="253990" bytes="19242624" />
        <tenured objectcount="0" bytes="0" />
        <refs_cleared soft="644" weak="1" phantom="0" />
        <finalization objectsqueued="1363" />
        <scavenger tiltratio="50" />
        <nursery freebytes="190330424" totalbytes="209715200" percent="90" tenureage="10" />
        <tenured freebytes="1724342296" totalbytes="1728053248" percent="99" >
          <soa freebytes="1637940248" totalbytes="1641651200" percent="99" />
          <loa freebytes="86402048" totalbytes="86402048" percent="100" />
        </tenured>
        <time totalms="107.395" />
      </gc>
      <nursery freebytes="190328376" totalbytes="209715200" percent="90" />
      <tenured freebytes="1724342296" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637940248" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <time totalms="110.754" />
    </af>
      Service deploy started. (4055 ms).
      Service bimmrdeployer started. (7 ms).
      Service MigrationService started. (70 ms).
      Service log_configurator started. (194277 ms).
      Service locking started. (8 ms).
      Service http started. (295 ms).
      Service naming started. (626 ms).
      Service failover started. (112 ms).
      Service appclient started. (140 ms).
      Service javamail started. (218 ms).
      Service ts started. (220 ms).
      Service jmsconnector started. (207 ms).
      Service licensing started. (22 ms).
      Service connector started. (212 ms).
      Service configuration started. (32 ms).
      Service iiop started. (316 ms).
      Service webservices started. (706 ms).
      Service dbpool started. (25283 ms).
    <af type="nursery" id="2" timestamp="Wed Aug 13 18:33:36 2008" intervalms="91291.585">
      <minimum requested_bytes="768" />
      <time exclusiveaccessms="0.302" />
      <nursery freebytes="0" totalbytes="209715200" percent="0" />
      <tenured freebytes="1723791376" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637389328" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <gc type="scavenger" id="2" totalid="2" intervalms="91293.279">
        <flipped objectcount="353647" bytes="28752016" />
        <tenured objectcount="0" bytes="0" />
        <refs_cleared soft="1056" weak="0" phantom="0" />
        <finalization objectsqueued="2858" />
        <scavenger tiltratio="50" />
        <nursery freebytes="180516672" totalbytes="209715200" percent="86" tenureage="11" />
        <tenured freebytes="1723791376" totalbytes="1728053248" percent="99" >
          <soa freebytes="1637389328" totalbytes="1641651200" percent="99" />
          <loa freebytes="86402048" totalbytes="86402048" percent="100" />
        </tenured>
        <time totalms="90.892" />
      </gc>
      <nursery freebytes="180514624" totalbytes="209715200" percent="86" />
      <tenured freebytes="1723791376" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637389328" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <time totalms="92.831" />
    </af>
      Service com.sap.security.core.ume.service started. (64165 ms).
      Service tcdisdic~srv started. (815 ms).
      Service security started. (911 ms).
      Service classload started. (43 ms).
      Service applocking started. (132 ms).
      Service shell started. (216 ms).
      Service tceCATTPingservice started. (21 ms).
      Service telnet started. (60 ms).
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [service_ssl] and user [null] not generated; Consequences: keystore view [service_ssl] is not created for user [null]; Countermeasures:see log for details
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [TrustedCAs] and user [null] not generated; Consequences: keystore view [TrustedCAs] is not created for user [null]; Countermeasures:see log for details
      Service webdynpro started. (699 ms).
      Service keystore started. (952 ms).
      Service ssl started. (56 ms).
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [TicketKeystore] and user [null] not generated; Consequences: keystore view [TicketKeystore] is not created for user [null]; Countermeasures:see log for details
      Service ejb started. (1367 ms).
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [securestorage] and user [null] not generated; Consequences: keystore view [securestorage] is not created for user [null]; Countermeasures:see log for details
      Service tcseccertrevoc~service started. (286 ms).
      Service tcsecsecurestorage~service started. (379 ms).
    Aug 13, 2008 6:33:41 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [securestorage] and user [null] not generated; Consequences: keystore view [securestorage] is not created for user [null]; Countermeasures:see log for details
      Service servlet_jsp started. (1783 ms).
    Aug 13, 2008 6:33:41 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [securestorage] and user [null] not generated; Consequences: keystore view [securestorage] is not created for user [null]; Countermeasures:see log for details
      Timed out services:
      Service com.adobe~DataManagerService > hard reference to service jmx.
      Service com.adobe~TrustManagerService > hard reference to service jmx.
      Service cafumrelgroupsimp > hard reference to service cafummetadataimp.
      Service com.adobe~PDFManipulation > hard reference to service jmx.
      Service adminadapter > hard reference to service jmx.
      Service pmi > hard reference to service tcsecdestinations~service.
      Service jms_provider > hard reference to service jmx.
      Service sld > service sld start method invoked.
      Service jmx > service jmx start method invoked.
      Service rfcengine > hard reference to service jmx.
      Service tcsecsaml~service > hard reference to service adminadapter.
      Service com.adobe~LicenseService > hard reference to service basicadmin.
      Service com.adobe~DocumentServicesConfiguration > hard reference to service basicadmin.
      Service tcsmdserver~service > hard reference to service jmx.
      Service com.adobe~DocumentServicesDestProtoService > hard reference to service jmx.
      Service cafummetadataimp > service cafummetadataimp start method invoked.
      Service tcsecvsiservice > hard reference to service tcsecdestinationsservice.
      Service tcsecdestinationsservice > service tcsecdestinationsservice start method invoked.
      Service dsr > hard reference to service security.
      Service monitor > hard reference to service jmx.
      Service cafruntimeconnectivityimpl > service cafruntimeconnectivityimpl start method invoked.
      Service tclmctcconfsservice_sda > hard reference to service jmx.
      Service CUL > hard reference to service jmx.
      Service tc.monitoring.logviewer > hard reference to service jmx.
      Service apptracing > hard reference to service jmx.
      Service com.adobe~XMLFormService > hard reference to service jmx.
      Service tcsecwssecservice > service tcsecwssecservice start method invoked.
      Service com.adobe~FontManagerService > hard reference to service jmx.
      Service com.adobe~DocumentServicesLicenseSupportService > hard reference to service jmx.
      Service com.adobe~DocumentServicesBinaries2 > hard reference to service jmx.
      Service basicadmin > hard reference to service jmx.
    [Framework -> criticalShutdown] 3 core services have timed out [adminadapter; jmx; basicadmin].
    Aug 13, 2008 6:33:53 PM             com.sap.engine.core.Framework [Thread[Thread-1,5,main]] Fatal: Critical shutdown was invoked. Reason is: 3 core services have timed out [adminadapter; jmx; basicadmin].
    </verbosegc>

    i have a error trying to start  the java engine of a Solution Manager 4.0 SR2 on AIX with ibm jdk SR9
    the next log is about the std_server0.out
    i do not how to create the alias because i can not connect using Visual Administrator because the server not start
    stdout/stderr redirect
    node name   : server0
    pid         : 995354
    system name : SMS
    system nr.  : 00
    started at  : Wed Aug 13 18:26:36 2008
    [Thr  1] Wed Aug 13 18:26:37 2008
    [Thr  1] MtxInit: -2 0 0
    <?xml version="1.0" ?>
    <verbosegc version="200708_30">
    SAP J2EE Engine Version 7.00   PatchLevel 108458.44 is starting...
    Loading: LogManager ... 2643 ms.
    Loading: PoolManager ... 2 ms.
    Loading: ApplicationThreadManager ... 837 ms.
    Loading: ThreadManager ... 54 ms.
    Loading: IpVerificationManager ... 12 ms.
    Loading: ClassLoaderManager ... 14 ms.
    Loading: ClusterManager ... 226 ms.
    Loading: LockingManager ... 68 ms.
    Loading: ConfigurationManager ... 86617 ms.
    Loading: LicensingManager ... 28 ms.
    Loading: CacheManager ... 159 ms.
    Loading: ServiceManager ...
    Loading services.:
      Service cross started. (75 ms).
      Service memory started. (98 ms).
      Service runtimeinfo started. (115 ms).
      Service trex.service started. (87 ms).
      Service file started. (156 ms).
      Service timeout started. (159 ms).
      Service userstore started. (19 ms).
      Service jmx_notification started. (78431 ms).
      Service p4 started. (188119 ms).
      Service classpath_resolver started. (63 ms).
    <af type="nursery" id="1" timestamp="Wed Aug 13 18:32:05 2008" intervalms="0.000">
      <minimum requested_bytes="48" />
      <time exclusiveaccessms="1.635" />
      <nursery freebytes="0" totalbytes="209715200" percent="0" />
      <tenured freebytes="1724342296" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637940248" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <gc type="scavenger" id="1" totalid="1" intervalms="0.000">
        <flipped objectcount="253990" bytes="19242624" />
        <tenured objectcount="0" bytes="0" />
        <refs_cleared soft="644" weak="1" phantom="0" />
        <finalization objectsqueued="1363" />
        <scavenger tiltratio="50" />
        <nursery freebytes="190330424" totalbytes="209715200" percent="90" tenureage="10" />
        <tenured freebytes="1724342296" totalbytes="1728053248" percent="99" >
          <soa freebytes="1637940248" totalbytes="1641651200" percent="99" />
          <loa freebytes="86402048" totalbytes="86402048" percent="100" />
        </tenured>
        <time totalms="107.395" />
      </gc>
      <nursery freebytes="190328376" totalbytes="209715200" percent="90" />
      <tenured freebytes="1724342296" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637940248" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <time totalms="110.754" />
    </af>
      Service deploy started. (4055 ms).
      Service bimmrdeployer started. (7 ms).
      Service MigrationService started. (70 ms).
      Service log_configurator started. (194277 ms).
      Service locking started. (8 ms).
      Service http started. (295 ms).
      Service naming started. (626 ms).
      Service failover started. (112 ms).
      Service appclient started. (140 ms).
      Service javamail started. (218 ms).
      Service ts started. (220 ms).
      Service jmsconnector started. (207 ms).
      Service licensing started. (22 ms).
      Service connector started. (212 ms).
      Service configuration started. (32 ms).
      Service iiop started. (316 ms).
      Service webservices started. (706 ms).
      Service dbpool started. (25283 ms).
    <af type="nursery" id="2" timestamp="Wed Aug 13 18:33:36 2008" intervalms="91291.585">
      <minimum requested_bytes="768" />
      <time exclusiveaccessms="0.302" />
      <nursery freebytes="0" totalbytes="209715200" percent="0" />
      <tenured freebytes="1723791376" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637389328" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <gc type="scavenger" id="2" totalid="2" intervalms="91293.279">
        <flipped objectcount="353647" bytes="28752016" />
        <tenured objectcount="0" bytes="0" />
        <refs_cleared soft="1056" weak="0" phantom="0" />
        <finalization objectsqueued="2858" />
        <scavenger tiltratio="50" />
        <nursery freebytes="180516672" totalbytes="209715200" percent="86" tenureage="11" />
        <tenured freebytes="1723791376" totalbytes="1728053248" percent="99" >
          <soa freebytes="1637389328" totalbytes="1641651200" percent="99" />
          <loa freebytes="86402048" totalbytes="86402048" percent="100" />
        </tenured>
        <time totalms="90.892" />
      </gc>
      <nursery freebytes="180514624" totalbytes="209715200" percent="86" />
      <tenured freebytes="1723791376" totalbytes="1728053248" percent="99" >
        <soa freebytes="1637389328" totalbytes="1641651200" percent="99" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <time totalms="92.831" />
    </af>
      Service com.sap.security.core.ume.service started. (64165 ms).
      Service tcdisdic~srv started. (815 ms).
      Service security started. (911 ms).
      Service classload started. (43 ms).
      Service applocking started. (132 ms).
      Service shell started. (216 ms).
      Service tceCATTPingservice started. (21 ms).
      Service telnet started. (60 ms).
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [service_ssl] and user [null] not generated; Consequences: keystore view [service_ssl] is not created for user [null]; Countermeasures:see log for details
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [TrustedCAs] and user [null] not generated; Consequences: keystore view [TrustedCAs] is not created for user [null]; Countermeasures:see log for details
      Service webdynpro started. (699 ms).
      Service keystore started. (952 ms).
      Service ssl started. (56 ms).
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [TicketKeystore] and user [null] not generated; Consequences: keystore view [TicketKeystore] is not created for user [null]; Countermeasures:see log for details
      Service ejb started. (1367 ms).
    Aug 13, 2008 6:33:40 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [securestorage] and user [null] not generated; Consequences: keystore view [securestorage] is not created for user [null]; Countermeasures:see log for details
      Service tcseccertrevoc~service started. (286 ms).
      Service tcsecsecurestorage~service started. (379 ms).
    Aug 13, 2008 6:33:41 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [securestorage] and user [null] not generated; Consequences: keystore view [securestorage] is not created for user [null]; Countermeasures:see log for details
      Service servlet_jsp started. (1783 ms).
    Aug 13, 2008 6:33:41 PM          com.sap.engine.services.keystore [Thread[_keystore_managed_system_thread_,10,SAPEngine_System_Thread[impl:5]_Group]] Fatal: Source: com.sap.engine.services.security.exceptions.BaseSecurityException: Security role with alias KeystoreAdministrator does not exist.; Description: system user based security support for view [securestorage] and user [null] not generated; Consequences: keystore view [securestorage] is not created for user [null]; Countermeasures:see log for details
      Timed out services:
      Service com.adobe~DataManagerService > hard reference to service jmx.
      Service com.adobe~TrustManagerService > hard reference to service jmx.
      Service cafumrelgroupsimp > hard reference to service cafummetadataimp.
      Service com.adobe~PDFManipulation > hard reference to service jmx.
      Service adminadapter > hard reference to service jmx.
      Service pmi > hard reference to service tcsecdestinations~service.
      Service jms_provider > hard reference to service jmx.
      Service sld > service sld start method invoked.
      Service jmx > service jmx start method invoked.
      Service rfcengine > hard reference to service jmx.
      Service tcsecsaml~service > hard reference to service adminadapter.
      Service com.adobe~LicenseService > hard reference to service basicadmin.
      Service com.adobe~DocumentServicesConfiguration > hard reference to service basicadmin.
      Service tcsmdserver~service > hard reference to service jmx.
      Service com.adobe~DocumentServicesDestProtoService > hard reference to service jmx.
      Service cafummetadataimp > service cafummetadataimp start method invoked.
      Service tcsecvsiservice > hard reference to service tcsecdestinationsservice.
      Service tcsecdestinationsservice > service tcsecdestinationsservice start method invoked.
      Service dsr > hard reference to service security.
      Service monitor > hard reference to service jmx.
      Service cafruntimeconnectivityimpl > service cafruntimeconnectivityimpl start method invoked.
      Service tclmctcconfsservice_sda > hard reference to service jmx.
      Service CUL > hard reference to service jmx.
      Service tc.monitoring.logviewer > hard reference to service jmx.
      Service apptracing > hard reference to service jmx.
      Service com.adobe~XMLFormService > hard reference to service jmx.
      Service tcsecwssecservice > service tcsecwssecservice start method invoked.
      Service com.adobe~FontManagerService > hard reference to service jmx.
      Service com.adobe~DocumentServicesLicenseSupportService > hard reference to service jmx.
      Service com.adobe~DocumentServicesBinaries2 > hard reference to service jmx.
      Service basicadmin > hard reference to service jmx.
    [Framework -> criticalShutdown] 3 core services have timed out [adminadapter; jmx; basicadmin].
    Aug 13, 2008 6:33:53 PM             com.sap.engine.core.Framework [Thread[Thread-1,5,main]] Fatal: Critical shutdown was invoked. Reason is: 3 core services have timed out [adminadapter; jmx; basicadmin].
    </verbosegc>

  • Mapping UME Roles to J2EE Engine Security Roles

    Hi all,
    is there a way to map the roles defined in UME which are used in a Web Dynpro application to those declared as part of an EJB descriptor?
    Any help is highly appreciated.
    Regards,
    Sebastian

    Hi Sebastian,
    yes, it is possible to do such mapping. And here how it works:
    1. define security roles in the ejb-jar.xml within the <security-role>. For example:
    <security-role>
         <role-name>test</role-name>
    </security-role>
    2. then you map the roles those roles to server security roles using the <security-role-map> tag of the ejb-j2ee-engine.xml descriptor.
    <security-permission>
       <security-role-map>
          <role-name>test</role-name>
          <server-role-name>myUMErole</server-role-name>
       </security-role-map>
    </security-permission>
    the myUMErole must be defined in the UME!
    Does this answer your question?

  • EJB security

    Hello !
    I read that controlled access to EJB methods can be achieved by mean of defining security roles (in the EJB deployment descriptors). I also read that each time an EJB method is called, the EJB client's Principal is forwarded to the EJB context. What I dont't know is how to establish a link between the client's principal and EBJ security roles ? I guess it should be possible. If not how should the method isCallerInRole work ? Can anyone help me ?
    Pascal.

    The primary concept for EJB security is that of "roles"
    A user may be in one or more roles. It is only roles that have particular access rights, not users. So for instance, the "administrator" role might have certain access right, that the "client" roles might not. If a user is switched from being a "client" to an "administrator" (or is given both roles), that user will then have access to all the methods accessible to the "administrator" role.
    Each method can be restricted based upon roles. The restrictions are listed in the <assembly-descriptor> tag. First of all, all roles must be listed. Then for each method, the access rights are listed by role. An example is shown below:
    <assembly-descriptor>
    <security-role>
    <role-name>administrator</role-name>
    </security-role>
    <security-role>
    <role-name>client</role-name>
    </security-role>
    <method-permission>
    <role-name>administrator</role-name>
    <role-name>client</role-name>
    <method>
    <ejb-name>StockQuotes</ejb-name>
    <method-name>buy</method-name>
    </method>
    <method>
    <ejb-name>StockQuotes</ejb-name>
    <method-name>getPrice</method-name>
    </method>
    </method-permission>
    </assembly-descriptor>
    Each method-permission tag may list one or more role names, followed by one or more methods that are accessible for that role. The "*" character may be used to specify method names (indicating all methods.) For multiple methods with the same name, the EJB specifications allow detailed parameter lists and interface type to identify methods uniquely, but this is outsie the scope of this tutorial -- check reference material if you need to do this.
    The actual mapping from user names to security roles, and the specification of user names and passwords is application-server dependent.
    Hope this helps

  • Mapping security roles to other roles

    I found the security newsgroup and posted the question there under the same topic. Kindly respond there.
    Message was edited by:
    jheinone

    Hi Sebastian,
    yes, it is possible to do such mapping. And here how it works:
    1. define security roles in the ejb-jar.xml within the <security-role>. For example:
    <security-role>
         <role-name>test</role-name>
    </security-role>
    2. then you map the roles those roles to server security roles using the <security-role-map> tag of the ejb-j2ee-engine.xml descriptor.
    <security-permission>
       <security-role-map>
          <role-name>test</role-name>
          <server-role-name>myUMErole</server-role-name>
       </security-role-map>
    </security-permission>
    the myUMErole must be defined in the UME!
    Does this answer your question?

  • How to list principals in the security role?

    Does anybody know how to list principals assigned to a security role programmatically?
    The role assigment is specified in weblogic.xml files for web applications and
    weblogic-ejb-jar.xml files for EJBs.
    Any help would be much appreciated,
    Margaret

    I think it's not possible. However, what you can do is to assign a role to a
    group (this relationship being statically defined in weblogic.xml) and then
    manipulate the group membership in order to assign users to the role on the
    fly.
    "Margaret Oberc" <[email protected]> wrote in message
    news:3b127763$[email protected]..
    >
    Does anybody know how to list principals assigned to a security roleprogrammatically?
    The role assigment is specified in weblogic.xml files for webapplications and
    weblogic-ejb-jar.xml files for EJBs.
    Any help would be much appreciated,
    Margaret

  • Weblogic security role

    Hi,
    I have a need to restrict access for certain users in WL will be OBIEE admins so they don't need access to the WL console but do need access to EM specifically coreapplication to deploy a new .rpd
    Ive tried an tire but just cant get a role to allow such specific access can any one shed some light. Any role i have created or configured allows access to em but then doesn't allow access to coreapplication from what I can see only the administrator role has the privillage.

    Chandramohan V <[email protected]> writes:
    Hai,
    I am chandramohan. I very new to Weblogic. I want some sample code for EJB Security(Basic level).There are samples in the kit and on dev2dev.bea.com
    andy

  • How do I map declared security role to an actual operational one?

    Hello,
    Suppose I have created few security roles at the ejb-jar.xml file of my J2EE application using:
    <security-role>
    <role-name> managers <role-name>
    </security-role>
    Our portal is connected to our LDAP server so the WAS contains all the groups it has over there.
    My question is: How do I actualy map the security role I declared at the deployment descriptor (manager) to an actual group in our organization?

    Hi Roy,
    Are you familiar with thishttp://help.sap.com/saphelp_nw04/helpdata/en/1a/733e401b21e801e10000000a155106/frameset.htm ?
    Best regards, Maksim Rashchynski.

Maybe you are looking for

  • Cannot get home sharing to work on all computers

    Hi, I have a PC (running win7) with itunes and my music files on it. My daughter has a netbook (again win7) with itunes that accesses the shared music on my PC. So far everything is great! However my laptop (yet again, win7) has itunes installed but

  • Web Service Response

    Dear All, We have PI in our environment, but there are still few point-to-point communications. I would like to know where I can see the response coming back from the web service? Is there a log or something that I can see? No PI is being used for th

  • "column ambigously defined" error

    ORA-00918: column ambigously defined 00918.00000 - "column ambigously defined" *Cause: *Action Vendor code 918      I've gotten this error on a few of the queries I've ran in SQL Developer 1.5 and tried to export to xls, but when I run and try to exp

  • My firefox crashes or closing unexpectedly when a try to download a file

    Mi navegador mozilla se bloque o se cierra cuando intendo descargar archivos. Eso me está pasando desde que se instaló la actualización 5.0.1 del navegador. Ya se han enviado decenas de reportes pero no he encontrado solución aún y la verdad me está

  • Sent Mail Suddenly Says "must go online"

    Hi, I'm using OS 10.3.9 with Mac Mail 1.3.11. Recently, my sent mail has not been appearing. The name of the sender, date sent and topic show up, but the contents of the messages say "must go online" or something like that to download from the server