Naming Problems with EJB when accessing from WebApplication

Hi all,
I'm trying to deploy an application consisting of several stateless session beans, one message driven bean and a web application. Everything works fine, until I try to log in (webapp). Then I get the following error:
com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at ik, the whole lookup name is ik/sec/IKAuthenticationEJB.
So the lookup name ik/sec/IKAuthenticationEJB is used in the code, whereas the JNDI Name of the requested bean is
sap.com/Integrationkernel/IKAuthenticationEJB (As showed in the Admin Tool). I'm wondering why there is this "sap.com" as I choosed a different name for the provider (But the error remains even if I change it to "sap.com").
As I cannot find any information about the "NameNotFoundException" I just tried the following:
- add a "ejb-ref" section to web.xml
  <ejb-ref>
     <ejb-ref-name>ik/sec/IKAuthenticationEJB</ejb-ref-name>
     <ejb-ref-type>Session</ejb-ref-type>
     <home>com.tsystems.ik.security.authentication.IKAuthenticationEJBHome</home>
     <remote>com.tsystems.ik.security.authentication.IKAuthenticationEJBRemote</remote>
     <ejb-link>sap.com/Integrationkernel/IKAuthenticationEJB</ejb-link>
  </ejb-ref>
- add a web-j2ee-engine.xml to the Web Application:
     <web-j2ee-engine>
         <ejb-ref>
            <ejb-ref-name>ik/sec/IKAuthenticationEJB</ejb-ref-name>
            <jndi-name>sap.com/Integrationkernel/IKAuthenticationEJB</jndi-name>
        </ejb-ref>
     </web-j2ee-engine>
Does anybody know what to do? Did I declare the references in a wrong way?
Is there a complete API Javadoc available? I just found the very small one on SDN...
Thanks a lot,
Nadine

Hi Nadine,
in order to lookup ab EJB from a web component you have to declare an ejb reference (ejb-ref section) in the web.xml. The jndi name in the web-j2ee-engine.xml  can be omitted if you are sure that the information provided by the "ejb-ref" section is sufficient to identify the EJB component.
From the example you wrote I see that the ejb-link element is not correct. According to the EJB 2.0 FR specification (Appendix B, page 518) "ejb-link element must be the ejb-name of an enterprise bean". Probably this inconsistent information misleads the EJB Container in resolving the right reference.
My advice is simply to omit this and leave the "home" and "remote" elements. They should be enough.
A hint: you can use the "lsn" shell command from the "naming" group to observe the JNDI tree on a particular server node.
I hope this will help you.
Best regards,
Svetoslav

Similar Messages

  • Problem with Business Rules access from Shared Services

    Hello,
    When trying to access Business Rules from Shared Services (expand Business Rules and click on the application) I get the "Refer to the Security Guide to configure security permissions for this application" message, but the user is fully provisioned for Business Rules. It happens even logged on as admin. Access from Administration Services works fine. The version Hyperion system 9 (9.3.0.1). What is wrong? Help, please.
    Thanks,
    Timur

    You can't access Business Rules from Shared Services. This is no different from any other application - Planning, Essbase, etc. You can provision users to the application roles, but you can't actually do anything with the application, other than security, in Shared Services. You use Admin Services to maintain Business Rules.

  • Sound problems with Yosemite when switching from internal speakers to earbuds

    After upgrading to Yosemite on my Macbook Pro, when I switch from using the internal speakers for sound and plug in my (Apple) earbuds, the sound stops working.  The sound also stops when I do the reverse and unplug my earbuds, nothing comes out of the internal speakers.  The only way to restore sound is to go into System Preferences, Sound, and select the output device (internal speakers, earphones, etc..).  Anyone else experiencing this problem after installing Yosemite, or know of a fix?

    I have the same problem..
    there is something else happened twice with me, I plugged my macbook with a HDMI cable to the TV, and everything was ok, until I closed the macbook (sleep mode), when I opened the mac again,, the sound has gone! No sound from TV or macbook,, the only solution is to "RESTART"

  • Problems with project when switched from Labview 8.2.1 to Labview 10

    Hi everyone,
    I recently switched from Labview 8.2.1 to Labview 10.
    Before I can run the project I get the error which you can see in the attachment.
    (The project is running well in Labview 8.2.1)
    I did already check if variables end with a space, but none of them are.
    The variables are also without any slashes, so that couldn't be the problem either.
    Does anybody has any idea what the problem can be, please let me know.
    I hope to hear from some of you soon.
    Regards,
    Kenny
    Attachments:
    Error Labview 10.JPG ‏19 KB

    Your other post in the other thread indicates you've looked at that thread. Based on that have you checked your variable names to see if any of them are multi-line? The error message is basically telling you that you have illegal characters. A carriage return (\r) or a new line (\n) is an illegal character.

  • Problem with sqlplus when called from forms

    Dear friends,
    I have the following problem, we are using forms 10g and database 10g,we are using client_host command to call sqlplus from form and the query which is being run by sqlplus is supposed to take an input from the client and return results. there is no problem in that. but the problem is the sqlplus window opens only in minimized mode and the users wants it open in maximized mode by default.
    this is the code i am using to do this
    pat:='sqlplusw -s'||:global.text||'@i:\sqls\codewise.sql'
    client_host(pat);
    please help me
    prawin

    I'm not sure allowing end users access to a sqlplus session is such a good idea. A savvy user having a bad hair day and becoming disgruntled could wreak havoc on your database if he/she has the right permissions. Besides, I've heard rumors that Forms is really good at accepting user input, querying the database, and displaying the results :P

  • Problem with oc4j when accessing over the host name?

    Hi!
    I have a standalone oc4j and application is working perfect when I use ip address of the server.
    When I use dns name of the server I just can pass the login page and after that every jsp return me to the login page?
    THANKS FOR A HELP!!!

    The only way that we have found to work with DNS is to remove the redirects in the faces-config.xml navigation cases. If anyone finds a better resolution, please POST!

  • Problem with sound when import from Premiere into After Effects

    Hi!
    I imported a sequence from a Premiere Pro project using File -> Import -> Adobe Premiere Project...
    The video in the sequence showed up in the After Effects project as a composition.  However, the composition did not include the sound from the sequence!  Is there a way to keep the sound from the sequence upon import into After Effects?
    Thanks

    i`m sorry about the screenshot size, but i could only upload pics with 605 px width.
    Nevertheless it seems that you saved my day. looks like it was all about the scale to framesize thing.
    thank you so much!!!!

  • IP Cache problem with Safari when browsing from Google

    I've been experiencing what appears to be an ARP Cache corruption problem when using Safari. It typically occurs when I've been browsing links off of a Google Search page. Tonight's specific example is where www.youtube.com is now resolved to wikipedia.com's ip address. The only way to fix the problem (short of a reboot) is to shut down the network interface and then restart (after waiting a few seconds)
    This normally fixes the problem (which is why I think its the ARP cache.)

    This sounds like it could be related to a problem between Safari 5's DNS prefetching and your router. It may be possible that your router is scrambling DNS replies. Could you try manually entering a known good DNS server like OpenDNS into your network prefs?

  • Problems with soundtrack when publishing from imovie to idvd

    When I publish to file or idvd the sound track that is turned off in imovie will play on the published version. It doesn't play on imovie, but plays in background of any format that I publish the project in. How do I get rid of this background sound?

    Thank you for the information.
    The thing is that he sends me an iMessage, while I send out an SMS!
    What I've done is: I have disabled his iMessage and mine too. Had them both enabled and then it was all fine!
    Very strange but somehow it worked for me...
    I hate the developers of IOS, at least they are better than the Android ones

  • HT204150 I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    It is locked to your sisters carrier.
    She would have to ask her carrier if they unlock iPhones and if she qualifies for this service.

  • HT1631 updated to the new os x mavericks, now i'm having problems with my keychain access...everytime i asked to log in but when i do, it says can't find login items even if i reset it. what should i do?

    updated to the new os x mavericks, now i'm having problems with my keychain access...everytime i asked to log in but when i do, it says can't find login items even if i reset it. what should i do?

    Did you install the latest driver set for the device?  there is a new release on motu.com for mavericks.
    rachel

  • Hello I have a problem with facebook Messenger disappeared from my desktop iPod in the AppStore it says "open" does not respond when I press it. What should I do to download it? But I do not have it in AppStore it says that I have it: (

    Hello I have a problem with facebook Messenger disappeared from my desktop iPod in the AppStore it says "open" does not respond when I press it. What should I do to download it? But I do not have it in AppStore it says that I have it: (

    - Go to Settings>General>Usage>Storage>and under apps select FBM and try to delete it.
    Next:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • A problem with a session Access

     

    Hi Olivier,
    To connect with Forte while running distributed you must use System DNS
    instead of User DNS on the server. The ftexec.exe on your server partition
    will be launched by the NodeMgr running as UID SYSTEM. User DNS are not
    available to processes running as UID SYSTEM.
    Zenon Adamek
    Purolator
    -----Original Message-----
    From: Olivier Andrieux [SMTP:oandrieuxaxialog.fr]
    Sent: Tuesday, July 04, 2000 4:59 AM
    To: forte-userslists.xpedior.com
    Subject: (forte-users) A problem with a session Access
    Hi,
    We have defined a service object which calls a database Access, when we
    use the driver odbc of another station the service object is created and
    the application runs. But when we use the driver of the server we have an
    exception and this message :
    SYSTEM ERROR: Unable to start the partition AxiGecom_CL0_Part1 on any of
    the
    nodes to which it has been assigned. See the remainder of the error
    stack for
    more information.
    Class: qqsp_ResourceException
    Error #: [1602, 593]
    Detected at: qqcf_StandardConfig::LoadRemotePartition at 5
    Last TOOL statement: method InterfaceManager.PrepareLOM
    Error Time: Tue Jul 04 10:50:19
    Exception occurred (locally) on partition "Forte_cl0_Client",
    (partitionId
    = EB3ED870-274C-11D4-8051-304F7116AA77:0x3f9:0x2, taskId =
    [EB3ED870-274C-11D4-8051-304F7116AA77:0x3f9:0x2.15]) in application
    "FTLaunch_cl0", pid 149 on node STAT10 in environment axialog.
    SYSTEM ERROR: Unable to start partition AxiGecom_CL0_Part1 on node
    SERVEUR59B.
    Class: qqsp_ErrorDescriptor
    Error #: [1602, 592]
    Detected at: qqcf_StandardConfig::LoadRemotePartition at 3
    Error Time: Tue Jul 04 10:50:19
    Exception occurred (locally) on partition "Forte_cl0_Client",
    (partitionId
    = EB3ED870-274C-11D4-8051-304F7116AA77:0x3f9:0x2, taskId =
    [EB3ED870-274C-11D4-8051-304F7116AA77:0x3f9:0x2.15]) in application
    "FTLaunch_cl0", pid 149 on node STAT10 in environment axialog.
    SYSTEM ERROR: Attempt to load partition named AxiGecom_CL0_Part1 failed.
    Class: qqsp_ResourceException
    Error #: [1001, 4]
    Detected at: qqrt_ForteExecAgent::LoadPartition at 1
    Error Time: Tue Jul 04 10:49:15
    Distributed method called: qqrt_ForteExecAgentProxy.LoadPartition!6
    (object name Unnamed) from partition "Forte_cl0_Client",
    (partitionId =
    EB3ED870-274C-11D4-8051-304F7116AA77:0x3f9:0x2, taskId =
    [EB3ED870-274C-11D4-8051-304F7116AA77:0x3f9.4]) in application
    "FTLaunch_cl0", pid 149 on node STAT10 in environment axialog
    Exception occurred (remotely) on partition "Forte_Executor",
    (partitionId
    = EB3ED870-274C-11D4-8051-304F7116AA77:0x3de, taskId =
    [EB3ED870-274C-11D4-8051-304F7116AA77:0x3de.61]) in application
    "AxiGecom_cl0", pid 386 on node SERVEUR59B in environment axialog.
    SYSTEM ERROR: Failed to create service object
    Axigecom_Serveur.Connection_BD.
    Class: qqsp_ResourceException
    Last TOOL statement: method qqsp_NameList.
    Error Time: Tue Jul 04 10:49:15
    Exception occurred (remotely) on partition "Forte_Executor",
    (partitionId
    = EB3ED870-274C-11D4-8051-304F7116AA77:0x3de, taskId =
    [EB3ED870-274C-11D4-8051-304F7116AA77:0x3de.61]) in application
    "AxiGecom_cl0", pid 386 on node SERVEUR59B in environment axialog.
    USER ERROR: (This error was converted)
    Failed to connect to database: Axigecom, username: Administrateur.
    [Microsoft][Gestionnaire de pilotes ODBC] Source de donn&eacute;es non
    trouv&eacute;e et
    nom
    de pilote non sp&eacute;cifi&eacute;
    Class: qqdb_RemoteAccessException with ReasonCode:
    DB_ER_DBMSCONNECTION
    DBMS SQLSTATE: IM002
    Class: qqsp_ErrorDescriptor
    Detected at: qqdb_OdbcVendorInfo::DoSQLConnect at 10
    Last TOOL statement: method qqsp_NameList.
    Error Time: Tue Jul 04 10:49:15
    Exception occurred (remotely) on partition "Forte_Executor",
    (partitionId
    = EB3ED870-274C-11D4-8051-304F7116AA77:0x3de, taskId =
    [EB3ED870-274C-11D4-8051-304F7116AA77:0x3de.61]) in application
    "AxiGecom_cl0", pid 386 on node SERVEUR59B in environment axialog.
    for information, we use a server NT and the stations use Nt, the drivers
    DNS users are declared.
    We use Access2000, and the version M for Fort&eacute;
    Thanks in advance,
    Olivier Andrieux
    AXIALOG
    France

  • Cisco ASA 5505 - problem with negotiating IP address from PPPoE

    Hi all,
    I have problem with negotiating IP address from PPPoE. There is following design: ISP providing vDSL ending on VDSL modem in bridge mode. Behind brigde modem is ASA 5505 terminting PPPoE on OUTSIDE. Everything works fine except  negotiating IP address from PPPoE server.
    I have configured ASA 5505 with (ASA Version 9.2(2)4) for PPPoE like this [1.]. But If i try to "show" IP address on OUTSIDE interface a get this [2.], ok strange but let's continue. If list "show vpdn pppinterface id 1"  i get this [3.]. Seems that I got public IP addres what was right, but this IP address was not associated with interface OUTSIDE?
    Well, if I set IP address manually like this [4.] and also set a default route everything works fine but what will happen when ISP change reservation for my IP address or default gateway. 
    I have tried different version of ASA OS like 8.4, 9.1 but without luck. 
    Can anybody help me. Thanks a lot.
    Regards
    Karel
    [1.]
    interface Vlan100
    description >>VLAN pro pripojeni do internetu<<
    nameif OUTSIDE
    security-level 0
    pppoe client vpdn group O2
    ip address pppoe setroute
    vpdn group O2 request dialout pppoe
    vpdn group O2 localname O2
    vpdn group O2 ppp authentication chap
    vpdn username O2 password *****
    interface Ethernet0/0
    description >>uplink O2 vDSL<<
    switchport access vlan 100
    [2.]
    ciscoasa(config-if)# show ip address vlan 100 pppoe
    ciscoasa(config-if)#  0.0.0.0 255.255.255.255 on Interface: OUTSIDE
    ciscoasa(config-if)# show interface vlan 100 detail
    Interface Vlan2 "OUTSIDE", is up, line protocol is up
     Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec
            Description: >>VLAN pro pripojeni do internetu<<
            MAC address f44e.05d0.6c17, MTU 1492
            IP address unassigned
      Traffic Statistics for "OUTSIDE":
            28 packets input, 1307 bytes
            31 packets output, 721 bytes
            0 packets dropped
          1 minute input rate 0 pkts/sec,  3 bytes/sec
          1 minute output rate 0 pkts/sec,  1 bytes/sec
          1 minute drop rate, 0 pkts/sec
          5 minute input rate 0 pkts/sec,  0 bytes/sec
          5 minute output rate 0 pkts/sec,  0 bytes/sec
          5 minute drop rate, 0 pkts/sec
      Control Point Interface States:
            Interface number is 15
            Interface config status is active
            Interface state is active
    [3.]
    ciscoasa(config-if)# show vpdn pppinterface id 1
    PPP virtual interface id = 1
    PPP authentication protocol is CHAP
    Server ip address is 88.103.200.41
    Our ip address is 85.71.188.158
    Transmitted Pkts: 20, Received Pkts: 16, Error Pkts: 0
    MPPE key strength is None
      MPPE_Encrypt_Pkts: 0,  MPPE_Encrypt_Bytes: 0
      MPPE_Decrypt_Pkts: 0,  MPPE_Decrypt_Bytes: 0
      Rcvd_Out_Of_Seq_MPPE_Pkts: 0
    ciscoasa(config-if)# show vpdn session state
    %No active L2TP tunnels
    %No active PPTP tunnels
    PPPoE Session Information (Total tunnels=1 sessions=1)
    SessID TunID Intf     State       Last Chg
    22298      2 OUTSIDE  SESSION_UP  561 secs
    [4.]
    interface Vlan100
     description >>VLAN pro pripojeni do internetu<<
     nameif OUTSIDE
     security-level 0
     pppoe client vpdn group O2
     ip address 85.71.188.158 255.255.255.255 pppoe setroute
     route OUTSIDE 0.0.0.0 0.0.0.0 88.103.200.41 1

    You're right that the ACL should not affect otherwise allowed communications to the interface address.
    Try disabling the ip audit feature on your outside interface.
    no ip audit interface OUTSIDE AP_OUTSIDE_INFO
    no ip audit interface OUTSIDE AP_OUTSIDE_ATTACK

  • Problem with EJB skeleton classloader

    Hi
    We have been migrating an enterprise application from Weblogic 7 to 9.2 and experienced strange problem with EJBs. Our EAR contains (beside the other elements) an EJB module with EJBs and some common POJO classes inside. At the deploy and run phase everything seems working fine, but when the remote client invokes a method which receives one of the common classes as a parameter we get ClassNotFoundException on the server side (talking precisely, the exception is thrown from the EJB skeleton, trying to unmarshall the parameter).
    It seems that our EJB's skeletons do not see the classes from EAR. We have tried moving the common classes to the APP-INF/lib directory or placing them at the root of EAR archive and adding reference in Manifest file of EJB module and it won't help.
    The only workaround we've found is to add the missing classes to the server classpath but this is unacceptable (however, it works).
    We are not using any custom classloader hierarchy.
    The other JARs have no problem loading the content of our EJB module (including the common classes, which cause the problem).
    So, why is the RMI classloader ommiting our application contents?

    The problem was fixed by upgrading to version 9.2.1

Maybe you are looking for

  • Batch determination Problem in process orders

    Dear Friends, i am getting problem of BD for components in process order that the FIFO sequence is not showing. !. I have made settings like Strategy Plant/order type 2. Charecteristic in the class and sort rule LOBM_VFDAT 3.  Class assigned to mater

  • Lumia 925 photo problem

    Hi. Photos are saved with a noticeable distortion of the color balance towards green/yellow. Annex Nokia Pro Cam is clearly seen at what point there is distortion. If you click on the browse button of the last photo, then in the first second the pict

  • No T.37 fax support / Unity fax tools in Unity Connection?

    I'm moving from Unity 7 to Unity Connection 9.1 In unity we used the T.37 inbound fax / unity fax (ie Fax is sent from router running .tcl scripts as e-mail + tiff into central mailbox. Unity moved fax into specific mailbox based on DNIS matching "fa

  • How to save all open files IE like a shortcut or alias to them.

    Hi everyone, I know there must be a way to do this in Dreamweaver, but I can't find it. When I am working on a series of pages (for example, 3 or 4 pages with a bunch of include pages) and I want to save a shortcut or alias that would re-open them al

  • I need to download an old version if Firefox; 3.6.16. Where can I get this please?

    I need Firefox 3.6.16 for a particular program at work. I cannot find this for download on the site, only the newer version. Can you please provide me with a link for the old version? Thanks!