[SOLVED] Cannot resolve role-Name UserRole

hello community,
while trying to deploy a j2ee-application to weblogic 10 i got following error message:
weblogic.management.DeploymentException: Cannot resolve role-Name UserRole
i guess that this deals with the ejb-jar.xml wherein is these beneath another role defined.
this is the content of the ejb-jar.xml:
<ejb-jar>
<assembly-descriptor>
<security-role>
<role-name>AdminRole</role-name>
</security-role>
<security-role>
<role-name>UserRole</role-name>
</security-role>
<method-permission>
<role-name>AdminRole</role-name>
<method>
<ejb-name>EJBClientInterfaceEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
</method>
</method-permission>
<method-permission>
<role-name>UserRole</role-name>
<method>
<ejb-name>EJBClientInterfaceEJB</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
</assembly-descriptor>
<enterprise-beans>
</enterprise-beans>
</ejb-jar>is there anything to insert in the weblogic-ejb-jar.xml?
thanks in advance,
maik
#edit 1:
FYI it uses ejb version 2.0
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
Edited by sqlworktask at 10/25/2007 6:38 AM

hello monduke,
yes, these lines of code are the same as in the weblogic-ejb-jar.xml
but the error remains...
a brief look in the log-file and the following was detected:
Caused by: weblogic.management.DeploymentException: Cannot resolve role-Name UserRole
     at weblogic.servlet.security.internal.WebAppSecurity.getRunAsPrincipalName(WebAppSecurity.java:413)
     at weblogic.servlet.internal.WebAppServletContext.registerServlets(WebAppServletContext.java:1403)
i do not know what to do next...
#edit 1:
the security-section of the weblogic-ejb-jar.xml:
  <security-role-assignment>
    <role-name>AdminRole</role-name>
    <principal-name>Admins</principal-name>
  </security-role-assignment>
  <security-role-assignment>
    <role-name>UserRole</role-name>
    <principal-name>Users</principal-name>
  </security-role-assignment>but as i mentioned... the error remains the same
Edited by sqlworktask at 10/24/2007 11:52 PM

Similar Messages

  • [SOLVED] cannot resolve dependency

    Whenever I try to install gnome I am getting error message - "Cannot resolve dependency " for some files. for example whenever I am trying to install adesklets the error msg is  :
    [devil@scorp ~]$ yaourt -S adesklets
    Password:
    resolving dependencies...
    warning: cannot resolve "ttf-bitstream-vera", a dependency of "adesklets"
    :: the following package(s) cannot be upgraded due to unresolvable dependencies:
          adesklets 
    Do you want to skip the above package(s) for this upgrade? [Y/n]
    looking for inter-conflicts...
    local database is up to date
    i have bitstream vera font installed.
    ???? whats the solution. Any help?
    Thanks.
    Last edited by scorpdevil (2010-05-31 07:33:31)

    my pacman.conf file ---------------------
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir     = /
    #DBPath      = /var/lib/pacman/
    #CacheDir    = /var/cache/pacman/pkg/
    #LogFile     = /var/log/pacman.log
    HoldPkg     = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst   = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    #CleanMethod = KeepInstalled
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg   =
    #IgnoreGroup =
    #NoUpgrade   =
    #NoExtract   =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    #   - can be defined here or included from another file
    #   - pacman will search repositories in the order defined here
    #   - local/custom mirrors can be added here or in separate files
    #   - repositories listed first will take precedence when packages
    #     have identical names, regardless of version number
    #   - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    #       [repo-name]
    #       Server = ServerName
    #       Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository.  See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    [archlinuxfr]
    Server = http://repo.archlinux.fr/x86_64
    mirrorlist
    # Czech Republic
    Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/x86_64

  • The system cannot resolve database name" while restoring AppSet

    Hello Everyone,
    I am having an issue restoring AppSet using Server Manager. The error I'm getting is the following:
    "The system cannot resolve the database name. Check that your connection with SQL Server still exists, or use another version of SQL Server".
    I suspect that some port(s) that's being used by Server Manager is closed... Is there a list of ports which need to be open between Application Server and Database Server?
    I'm running BPC 5.1 SP03 multi-server environment.
    Thanks in advance,
    Akim

    Tony,
    Thanks for the reply. I have all default settings for SQL/AS. BPC itself has no issues communicating between App/DB.
    I noticed an interesting thing... I can backup successfully with "Use backup files' folder path on a remote SQL server", but it fails if i backup localy to the application server. In a SQL Log I am seeing:
    BackupDiskFile::CreateMedia: Backup device '
    <AppServer Name>\SQLShare\ApShell.BAK' failed to create. Operating system error 53(The network path was not found.).
    Same with restore.
    Basically, my workaround is to restore SQL part from shared/remote location.
    Thanks,
    Akim

  • Deploy cannot resolve service name

    Hi
    I have a very simple warehouse project in OWB 9.2. I have defined an ODBC source on SQL Server and wish to deploy to a target table defined in an Oracle target module. A mapping, locations, connectors, database links etc are defined and valid.
    Up to the "Pre deployment generation results" view, all operations are shown as success. However, on selecting "Deploy" from this window, the deploy status is "Failed" with error "ORA-12514: TNS:could not resolve service name".
    I have checked the TNSNAMES.ORA file and all service names used are defined. Using "tnsping", I can connect to the oracle database, however the connection to the SQL Server database using "myhsodbc" fails. I can successfully connect to the SQL Server database using the database link defined when creating the source module or from SQL*Plus.
    Any suggestions as to which service name is unresolved?
    Thanks
    Bob

    Hi Mark
    I have added tnsnames file to server and client, oracle_home and owb_home with no change in result. The following info is little lengthy, but I hope it may give a clue to resolve my situation.
    The deployment manager identifies 3 objects for deployment - a mapping (SAP_CI_HIERARCHY), a table (SAP_CI_HIERARCHY) and a connector (ORAONSQL_SQLONPCRH).
    The generated connector script follows:
    CREATE DATABASE LINK "{{SQLONPCRH.Service}}"@ORAONSQL_SQLONPCRH
    CONNECT TO "{{SQLONPCRH.ConnectAs}}"
    IDENTIFIED BY "{{SQLONPCRH.Password}}"
    USING '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
    (HOST={{SQLONPCRH.Host}})(PORT={{SQLONPCRH.Port}})))
    (CONNECT_DATA=(SERVICE_NAME={{SQLONPCRH.Service}}))
    (HS=OK)
    The mapping script contains the following connection string in a select statement:
    FROM "dbo"."SAP_CI_HIERARCHY"@"MYHSODBC.FIRM.UNI.EDU"@"ORAONSQL_SQLONPCRH" "SAP_CI_HIERARCHY_ORA10323"
    The SQL Server source is defined by the following connection information:
    Database Link: PCRH_LINK.FIRM.UNI.EDU
    Connect String: myhsodbc.firm.uni.edu
    Gateway Type: Oracle Generic Connectivity - HSODBC
    Schema: dbo
    Location: SQLONPCRH
    The Oracle target is defined as follows:
    Database Link: ORAONSQL_LINK.FIRM.UNI.EDU
    Connect String: oraonsql.firm.uni.edu
    Schema: firmolap
    Location: ORAONSQL
    TNSNAMES.ORA file contains entry for oraonsql & myhsodbc:
    ORAONSQL.FIRM.UNI.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sqlserver)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = oraonsql.firm.uni.edu)
    MYHSODBC.FIRM.UNI.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sqlserver)(PORT = 1521))
    (CONNECT_DATA =
    (SID = myhsodbc)
    (HS = OK)
    From SQL*PLUS,
    SELECT *
    FROM "dbo"."SAP_CI_HIERARCHY"@"PCRH_LINK.FIRM.UNI.EDU"; returns data, whereas the SELECT statement from the generated script returns ERROR "ORA-02019: connection description for remote database not found".
    All database links are PUBLIC.
    Location registration:
    ORAONSQL
    Service name: ORAONSQL.FIRM.UNI.EDU
    Net service name: ORAONSQL
    SQLONPCRH
    Service name: myhsodbc.firm.uni.edu
    Net service name: myhsodbc
    Is there something in this that points to the problem either in connecting from Deployment Manager (or from SQL*PLUS)?
    Thanks again for any help you can offer.
    Bob

  • Cannot resolve host names on local network

    It is a local network with router, few Windows computers with shared drives and one Mac.
    Windows shares appear correctly in SHARED and can be used without any problems, like iTunes and iPhoto libraries are on those shared drives and work properly, even if ip address of those computers would change.
    BUT - if I am trying to use VNC and connect to hostname:port, it says that server is not specified. If I try to ping hostname it says Unknown host.
    At the same time, similar ping from Windows computer work without any problems.
    It could be possible that router does not support something standard and communicates with Windows using something windows-specific, but what confuses me is that I can see computer names resolved in the finder already! Also, as I said iTunes and iPhoto can work with shared files on dynamic ip's which would be not possible if host names would be not resolved.
    Thanks.

    Domain Name Resolution for local IP addresses require a Local DNS server running on your network.
    Bonjour names will resolve without a Local DNS server. So this is why iTunes and iPhoto works as they use bonjour technology.
    A bonjour name ends in .local so in your macs sharing preferences you give the mac a name of imac its bonjour address is imac.local
    Other than that you are best giving your devices fixed IP address and adding there hostnames to your hosts file.
    the contents of /etc/hosts on your mac would look like
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost
    so at the above that you could add for example
    192.168.1.5 mypc
    192.168.1.6 myprinter
    Then you could ping 192.168.1.5 by
    ping mypc
    So would have to add these entries to each hosts file on every computer on your lan.
    Or you could setup a local dns server and give each computer on your LAN a fully qualified domain name.

  • TNS : Cannot resolve service name

    hi i am able to connect to the database (server 10g and client also 10g)
    i mailed the tns entry and gave it to another guy who has oracle 9i (client) installed
    he added the entry to his tns file but unable to connect to the db
    plz help

    something like this...login to cmd promt and then tnsping database_name
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    H:\>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-APR-2009 13:
    12:26
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = msn048034c)(POR
    T = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    OK (60 msec)
    H:\>

  • Error when compiling cannot resolve symbol

    I am kind of new to java please take a look into this code. I am getting this error cannot resolve the symbol.
    this is the first class I saved under folder called javapractice as t1. I don't get any error message when I compile this, but when I compile the second class I got the error message.It would be appreciated if someone can help. thanks
    package javapractice;
    public class t1{
    double a;
    double b;
    double c;
    t1(double ax){
    a = ax;
    b = 0;
    c = 0;
    this is the second class also I saved as t2 under javapractice folder. when I compile this class I got the error cannot resolve the name.
    package javapractice;
    public class t2 {
    public static void main(String args[]) {
    t1 d = new t1();
    d.a = 3;
    System.out.println(d.a);
    System.out.println(d.b);
    System.out.println(d.c);

    The problem ist1 d = new t1();You need to pass a double param. to the constructor of t1t1 d = new t1((double)10.0);

  • Cannot edit any roles in CUP5.2 due to "Enter a valid Role Name" error

    We are running CUP 5.2.
    I am having a problem with our Roles after they were uploaded into CUP; I cannot make any changes to the Role Details because CUP returns an error stating that our Role Names are invalid.
    First I uploaded the roles (I continued to receive errors when trying to use the template, so I did them by uploading with the "Selected Roles" option). 
    Once they were uploaded, from the menu, I select:    Roles --> Search Role    and then I choose a role from the resulting list.  When the next screen appears (the "Role Details" screen), I added all of the respective details (Business Process, Sub-Process, Detailed Description, Role Approver, Functional Area, etc.).   When I pressed the SAVE button, I received the following error:
    Please correct the following errors:
    Please enter a valid "Role Name". Only Alpha-numeric, Space or Underscore characters are allowed
    So I realize what the problem is - the "Role Name" field is automatically populated with our security role name as it exists in our SAP system ... and because our security roles all begin with Z:, it does not follow the CUP naming convention. 
    I'd like to just update the "Role Name" field but when you are in the "Role Details" screen, the "Role Name" field cannot be edited.
    I saw the "Export" button and used that, in an attempt to edit the file to replace each occurence of Z: with Z_, and then upload it again.
    So I updated the file accordingly, and then did an upload, selecting the "Overwrite Existing Roles" box.
    It returned a successful message:
    Import Status: 133 successfully imported out of 133 records found
    Yet, when I go back to the list of roles, the roles still exist as Z: instead of Z_ so I still cannot edit any of the roles to add the required details ...  has anyone had a similar issue and know how to work around this?
    Thanks!

    Hello Alpesh,
    Thank you for replying!
    I had already tried to export the roles and replaced the Z: with Z_ before creating this message, but the upload attempts failed due to the explanation above.  But this time, I followed your (good) advice to delete the original Z: roles first, before uploading the corrected file.
    Sadly, even after I deleted the original Z: roles prior to uploading the corrected file, I am still having no luck ... when I uploaded the file, again it (falsely) reports that the import was successful:
        Import Status: 133 successfully imported out of 133 records found
    After seeing that message, I quickly checked the roles, and none of the roles had uploaded.  So now I have ZERO roles.
    Any further ideas?  I am thinking it may be something very small that is being overlooked ... perhaps certain buttons must be selected/not selected on the import screen?  Or could it be an issue with the file itself?
    When I do the import, I only select the button for "From File ..." and retrieve the file from my desktop via the Browse button.  I do not select any other button, nor do I make a selection from the System or Role Source boxes.  I have just selected that one button only ... I've tried it with and without checking the "Overwrite Existing Roles" box, but neither one works.
    The part that bugs me the most is that I receive what I perceive to be an inaccurate/bogus "successful" status each time I attempt the upload of the file.  At least if I had an error message, I might have something to work with to troubleshoot this.

  • Cannot resolve "pambase", a dependency of "pam" [solved]

    ...thoughts?
    :: Starting full system upgrade...
    resolving dependencies...
    warning: cannot resolve "pambase", a dependency of "pam"
    :: The following package cannot be upgraded due to unresolvable dependencies:
    pam
    Do you want to skip the above package for this upgrade? [y/N]
    error: failed to prepare transaction (could not satisfy dependencies)
    :: pam: requires pambase
    EDIT: updating servers via reflector solved this.  Odd.
    Last edited by graysky (2012-06-14 10:33:34)

    I do not thing archbang is officially  archlinux distributions (you are on an archlinux forum). This error does not appear on the current archlinux distribution. My guess is that here is a confusion between python / python2 / python3. Just run pacman -Si to know (or the equivalent of pacman for archbang).
    I would suggest you to use the official archlinux instead of this fork, archlinux has much more support and users and I do not quite understand what archbang has to offer: Their homepage said that it is archlinux combined with openbox, but you can just do
    pacman -S openbox
    on arch; it does not seems to justify a fork (but please correct me if I am wrong).
    Last edited by olive (2012-06-17 22:00:23)

  • Urgent help !!!!cannot resolve fully qualified name

    Hi ,
    I am installing Sun one directory server 5.2 on windows xp.
    its asking me to enter fully qualified computer name and by default it is picking up my machine name i.e.
    M2B-04-D-099.domain.com
    but when i clikced next it gives me error as
    Cannot resolve name M2B-04-D-099.domain.com
    What is the error?
    M i missing any steps?
    Please help!
    Thanks in advance
    Deepali

    Hi,
    I am not able to install LDAP on my PC. My PC does not belong to any domain. What should I enter fully qualified name of my computer. When I enter only ldap (which is my computer name) it says "Value must be of the form hostname.domainname".
    My computer does not belong to any domain. Please suggest as it is a bottleneck for me.
    I need to install LDAP as soon as possible.
    Thanks in advance.
    Kirti

  • Installing Sun ONE 5.2 on Win2003 w/no domain "cannot resolve name"

    Hi all,
    Any way to install Sun ONE 5.2 on Win2003 server w/no domain? We only have workgroup. I cannot get past this 1st step of install. If I try to make something up, I get "cannot resolve name" error. It allowed "Dell-2003.domain.com" (Dell-2003 is computername) the first time through, but install failed. Any tips?

    Just what is your hosts file looking like?
    I guess your XP box has an IP address... if not you will get problems sooner or later.
    Ok. assuming you have an IP allocated to your XP system a line like:
    123.123.123.123 xpbox.mydummydomain.com
    in the c:\winnt\system32\drivers\etc\hosts file should work...
    where 123.123.123.123 is the IP address of your workstation and xpbox is the name. mydummydomain.com is the dummy domain that xpbox is faked to be a member of.
    Now, when you install iPlanet the install process gets the computer name and you provide the domain (mydummydomain.com) the install process can resolve the name to an ip via the hosts file as last resort.
    If your xp box uses DHCP and gets an IP address dynamically then sooner or later you will get problems trying to host a Directory Server with this approach.
    Also, ping xpbox.mydummydomain.com beforehand, just to make sure that computer doesnt already exist. grin

  • Cannot resolve name

    Hi:
    I am trying to install Sun One Directory Distribution version 5.2 on my computer.
    My computer name is "albertlam".
    My workgroup is "workgroup2".
    I tried the following for fully qualified computer name:
    albertlam.workgroup2
    But it gives me an error:cannot resolve name
    Yours,
    Frustrated.

    Hi,
    Your issue is that you are not able to resolve the DNS name.
    and more over you have not given the correct fully qualified computer name:
    To find the same right click on your 'my computer' and reach properties and you'll see a tab 'network identification' and i that you can see your fully qualified computer name.
    copy the same and use in place..it should hopefully work.

  • Error: cannot resolve "gtk-engines =2.14.2", [SOLVED]

    This is more or less self-explanatory.
    [duncan@duncan-arch ~]$ su
    Password:
    [root@duncan-arch duncan]# pacman -Su
    :: Starting full system upgrade...
    warning: gnome-mount: ignoring package upgrade (0.7-1 => 0.8-1)
    warning: gnome-volume-manager: ignoring package upgrade (2.22.1-1 => 2.22.3-1)
    warning: nautilus-cd-burner: ignoring package upgrade (2.22.0-1 => 2.22.1-1)
    resolving dependencies...
    error: cannot resolve "gtk-engines>=2.14.2", a dependency of "gnome-themes"
    error: failed to prepare transaction (could not satisfy dependencies)
    :: gnome-themes: requires gtk-engines>=2.14.2
    [root@duncan-arch duncan]#
    Last edited by Raccoon1400 (2008-06-03 11:26:17)

    Solved. The issue was fixed in today's updates.

  • Error:cannot resolve Symbol class"name"

    when I have compiled Bean class named SlBean which has primary class named pk, I recevied following error message(I compiled pk class without error) :
    cannot resolve symbol
    symbol : class pk
    location: class SlBean
    public pk ejbCreate(

    Sorry , its not classpath problem. You have to simply import the pk class if its in any package. I am assuming you have packaged your pk class with ejb jar file.
    for eg. if your class is
    package abc.xyz
    public class pk
    then in your bean class import
    import abc.xyz.pk;
    --Ashwani                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Warning: cannot resolve "binutils =2.25", a dependency [Solved]

    I am not able to upgrade my laptop now.
    d@DArchLinux ~]$ sudo pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    multilib-testing is up to date
    multilib is up to date
    archlinuxfr is up to date
    :: Starting full system upgrade...
    resolving dependencies...
    warning: cannot resolve "binutils>=2.25", a dependency of "gcc-multilib"
    :: The following package cannot be upgraded due to unresolvable dependencies:
    gcc-multilib
    :: Do you want to skip the above package for this upgrade? [y/N] N
    error: failed to prepare transaction (unexpected error)
    [d@DArchLinux ~]$
    Last edited by Debasish Patra (2014-12-29 07:57:33)

    karol wrote:Since you're using multilib-testing repo, you have to enable testing repo too.
    My bad, I thought I was using the testing repo Thanks
    Last edited by Debasish Patra (2014-12-27 18:01:18)

Maybe you are looking for

  • Help with purchasing an iphone 3gs

    I had the misfortune of selling my iphone the 3rd of july after bank closings and Its now the 4th of july. I require a deposit. Is it possible to pay my deposit only at an att store and then buy the iphone 3gs at an apple store later today? I really

  • Process of purchasing subscription reloads HTML banner in the library tab.

    Hi there! Finally I finished my first HTML banner for the library tab. I have a collection of banners with different types: - subscribe - buy/download issue - itunes link - go to another tab - watch video fullscreen etc. Everything works fine. Only o

  • Has anyone received an e-mail asking to validate account information?

    Has anyone received an e-mail asking to validate account information?

  • SMTP sender issue

    I have a SQR reprot which send report via emails. Recently I have changed the SMTP sender to another e-mail address in the configuration file of app server and did a bounce of application server. Now the issue is that the emails are being sent with t

  • Moving Existing Playlists to Nano

    I have an existing Ipod and a new Nano. I want to move playlists from the Ipod to the Nano. I have the Nano and Ipod showing up on iTunes (so I can "see" them both but cannot move my existing playlists from the Ipod to the Nano. There is no copy/past