Could not dereference object when running the EJB

Hi,
I want to reference my jsp page to EJB but get a "could not dereference object" upon running the jsp with this as it went into the catch exception instead of looking up to the EJB:
Part of my jsp codes in jspinit( ):
try {
objref = initial.lookup("java:comp/env/ejb/MyMusicCart");
System.out.println("lookup success for ejb/MyMusicCart");
// a reference to the home interface is shareable
cartHome = (MusicCartHome)PortableRemoteObject.narrow(objref, MusicCartHome.class);
System.out.println("created MusicCartHome object");
} catch (Exception ex) {
System.out.println("Unexpected Exception: " +ex.getMessage());
My web.xml
Code:
<ejb-ref>
<ejb-ref-name>ejb/MyMusicCart</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>asg.MusicCartEJB.MusicCartHome</home>
<remote>asg.MusicCartEJB.MusicCart </remote>
<ejb-link>ejb-jar-ic.jar#MusicCartBean</ejb-link>
</ejb-ref>
anyone encounter this problem before? Please help.. I
I can produce more of my files if you guys feel that is not enough
Message was edited by:
[email protected]

Is the EJB you are referencing part of the same EAR file as your JSP?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/

Similar Messages

  • JobManager:getQueueConnectionFactory():Error:Could not dereference object

    We are getting this error everytime we add something to a watched folder
    Any ideas?
    2009-09-09 14:45:25,610 ERROR [STDERR] Sep 9, 2009 2:45:25 PM com.adobe.idp.jobmanager.util.JobManagerUtil getQueueConnectionFactory
    SEVERE: JobManager:getQueueConnectionFactory():Error:Could not dereference object
    2009-09-09 14:45:25,610 ERROR [com.adobe.idp.jobmanager.ejb.JobManagerBean] JobManager:createJob:error sending message:java.lang.RuntimeException: JobManager:getQueueConnectionFactory():Error:

    Ok,
    Replace the: %JBOSS_HOME%/server/all/deploy/jms/hajndi-jms-ds.xml
    with the following info:
    <?xml version="1.0" encoding="UTF-8"?>
    <connection-factories>
      <!-- ==================================================================== -->
      <!-- JMS Stuff                                                            -->
      <!-- ==================================================================== -->
      <!-- The JMS provider loader -->
      <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
    name="jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider">
        <attribute name="ProviderName">DefaultJMSProvider</attribute>
        <attribute name="ProviderAdapterClass">
          org.jboss.jms.jndi.JNDIProviderAdapter
        </attribute>
        <!-- The combined connection factory -->
        <attribute name="FactoryRef">XAConnectionFactory</attribute>
        <!-- The queue connection factory -->
        <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
        <!-- The topic factory -->
        <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
        <!-- Access JMS via HAJNDI -->
        <attribute name="Properties">
           java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
           java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
           java.naming.provider.url=${jboss.bind.address:localhost}:1100
           jnp.disableDiscovery=false
           jnp.partitionName=${jboss.partition.name:DefaultPartition}
           jnp.discoveryGroup=${jboss.partition.udpGroup:230.0.0.4}
           jnp.discoveryPort=1102
           jnp.discoveryTTL=16
           jnp.discoveryTimeout=5000
           jnp.maxRetries=1
        </attribute>
      </mbean>
      <!-- The server session pool for Message Driven Beans -->
      <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"
    name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool">
        <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
        <attribute name="PoolName">StdJMSPool</attribute>
        <attribute name="PoolFactoryClass">
          org.jboss.jms.asf.StdServerSessionPoolFactory
        </attribute>
      </mbean>
      <!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
      <tx-connection-factory>
        <jndi-name>JmsXA</jndi-name>
        <xa-transaction/>
        <rar-name>jms-ra.rar</rar-name>
        <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-de finition>
        <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
        <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
        <max-pool-size>20</max-pool-size>
        <security-domain-and-application>JmsXARealm</security-domain-and-application>
      </tx-connection-factory>
      <tx-connection-factory>
          <jndi-name>adobe_JmsQueueXA</jndi-name>
          <xa-transaction/>
          <rar-name>jms-ra.rar</rar-name>
          <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-de finition>
          <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
          <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
          <max-pool-size>20</max-pool-size>
          <security-domain-and-application>JmsXARealm</security-domain-and-application>
      </tx-connection-factory>
      <tx-connection-factory>
          <jndi-name>adobe_JmsTopicXA</jndi-name>
          <xa-transaction/>
          <rar-name>jms-ra.rar</rar-name>
          <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-de finition>
          <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
          <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
          <max-pool-size>20</max-pool-size>
          <security-domain-and-application>JmsXARealm</security-domain-and-application>
      </tx-connection-factory>
    </connection-factories>

  • File is damaged and could not be repaired, when emailed the PDF Document

    Hi i have the same problem , that what you have resolved, but it doesn't work for me...
    i.e, when i sent a mail from the below code , mail sent but when open it shows "**There was an error in opening this document. the file is damaged and could not be repaired."**
    can u please suggest to over come this problem.. and i m using IBM Websphere 8.
    please advice ....
    thanks alot in advance...
    here is the code :
    AstLogger logger = AstLogger.getInstance();
    logger.info(this.getClass(),"ReportBuilderUtils.sendMail Start....");
    boolean flag = false;
    try {
    javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    javax.mail.Session session = (javax.mail.Session) ctx.lookup(AstProps.getInstance().getWebCollectLoginMailSession());
    Message msg = new MimeMessage(session);
    InternetAddress addressFrom = new InternetAddress(from);
    logger.info(this.getClass(), "Report Builder Utils - Email From :" + from);
    msg.setFrom(addressFrom);
    String log = "";
    double tempFilesize=0;
    for(String emailId : recipients) {
    InternetAddress addressTo = new InternetAddress(emailId);
    msg.addRecipient(Message.RecipientType.TO, addressTo);
    log += emailId + ",";
    logger.info(this.getClass(), "Report Builder Utils - Email Recipients :" + log);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    logger.info(this.getClass(), "Report Builder Utils - Email Subject :" + subject);
    msg.setContent(message, "text/plain");
    msg.setHeader("Content-Type", "multipart/mixed");
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(message);
    logger.info(this.getClass(), "Report Builder Utils - Email Message :" + message);
    mbp1.setDataHandler(new DataHandler(new HTMLDataSource(message)));
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    // constants to handle the large files
    if(tempFile.exists()){
    tempFilesize = tempFile.length();
    logger.info(this.getClass(), "Report Builder Utils - File Size :" +((tempFilesize/(1024*1024))) +"MB.");
    System.out.println("ATTACHMENT_SIZE ==>" +ATTACHMENT_SIZE);
    if(tempFilesize > ATTACHMENT_SIZE){
    flag = false;
    return flag;
    MimeBodyPart mbp_file = new MimeBodyPart();
    mbp_file.setHeader("Content-Type", "application/pdf");
    mbp_file.setHeader("Content-Transfer-Encoding", "Base64");
    mbp_file.setFileName(fileName);
    mbp_file.setDisposition(Part.ATTACHMENT);
    mbp_file.setDataHandler(new DataHandler(new FileDataSource(tempFile)));
    mp.addBodyPart(mbp_file);
    System.out.println("Mail Successfully sent to :"+recipients);
    msg.saveChanges();
    msg.setContent(mp);
    // even tried by placing here
    // mbp_file.setHeader("Content-Transfer-Encoding", "base64"); base64 is not case-sensitive i hope , i read out on some books
    Transport.send(msg);
    logger.info(this.getClass(), "Report Builder Utils - Email Send successfully...");
    flag = true;
    }catch (Exception e) {
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    e.printStackTrace(pw);
    logger.error(this.getClass(), sw.toString());
    AstLogger.getInstance().info(this.getClass(),"ReportBuilderUtils.sendMailAsAttachment End.");
    return flag;
    Edited by: 992445 on Mar 7, 2013 4:05 AM

    You need to get a new copy of the PDF.

  • Why won't Itunes get my album artwork? It just says could not be found when all the info is the same as Itunes.

    Out of no where suddenly Itunes refuses to get my album artwork. The info is exactly the same as Itunes but it refuses to get any artwork. I tried signing in and out, then back in. Nothing seems to work! Why won't it get my album artwork?

    .wav tracks don't have a tag, so you can't save artwork, or indeed other metadata to them. Use AIFF or Apple Lossless if you want the highest quality, but 256k or 320k mp3 may be just as good depending on the equipment you have and your own hearing.
    tt2

  • I lost all my unpinned 30 tabs and could not restore it, when Adobe update opened a link by firefox, which was not running in the background.

    I lost all my unpinned 30 tabs and could not restore it, when Adobe update opened a link by firefox, which was not running in the background.
    I guess what I have experienced might be a special case of 'Restore previous sessions'. The actual situation was that after I rebooted my laptop, Adobe update jumped out indicating an update being finished successfully. After I clicked on the 'close' button of the Adobe window, it automatically started firefox and linked to its website. But I did not find the 'Restore previous sessions' page this time. Then I restarted firefox, this time there was a start page with 'Restore previous sessions'. However, sadly enough, it is only restored my pinned pages plus the Adobe website. Actually, I am using 'bookmark all tabs' from time to time to secure opened tabs, but this time I did not expect such an incident. I would suggest to improve the 'Restore previous sessions' with multiple time tags and appear in all cases including my reported case here, after updating firefox, crashes etc. I like firefox in most occasions, therefore believe and hope it becomes better and more robust. Thank you very much!

    Hi,
    Please see the following support request: http://forums.mozillazine.org/viewtopic.php?f=38&t=2628065
    I think the best option would be to leave feedback here to let the relevant development team know about the problem you have had: https://input.mozilla.org/en-GB/feedback
    Also you could try the [https://addons.mozilla.org/en-US/firefox/addon/session-manager/ Session Manager] add-on which gives more control over how sessions are restored.
    I hope that helps

  • On my MacBook Pro running )SX 10.9.5 when I go to Contact Sheet II on Photoshop Elements 12 Editor it say The Operation could not be completed...The file or directory cannot be found...help.. ?Derek

    On my MacBook Pro running )SX 10.9.5 when I go to Contact Sheet II on Photoshop Elements 12 Editor it says The Operation could not be completed...The file or directory cannot be found...help.. ?
    Derek

    See if this solution works:
    https://forums.adobe.com/thread/1623951?q=contact%20sheet

  • On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available". When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way,

    On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available".
    When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way, no error message. Any ideas to solve this, anyone? Would be greatly appreciated.

    I tried to update and it keeps telling me to get the Application Manager. And this is what happens
    Adobe Application Manager failed and it told me to download the Adobe Support Advisor.
    Adobe Support Advisor told me that there was an issue:" cpsid_82829s1: "A restart is pending," bootstrapper error has occurred. "Token Number: 40-87772-063201122012
    I followed the instructions it gave me to correct this issue:
    If you receive the error "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again," do the following:
    #Restart the computer and try the installation again.
    #If the installation fails, delete the InProgress registry key: 
    Disclaimer: This procedure involves editing the Windows registry. Adobe doesn't provide support for editing the registry, which contains critical system and application information. Make sure to back up the registry before editing it. For more information about the registry, see Windows registry information for advanced users on the Microsoft support site, or contact Microsoft. 
    Launch Windows Registry Editor.
    (Windows XP) Choose Start > Run, type regedit in the Open text box and click OK.
    (Windows Vista/ Windows 7) Choose Start, type regedit in the Search box, and press Enter.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
    Delete the InProgress key.
    I was not able to find the "InProgress" key.

  • The filtering process could not be initialized when trying to process this item. Verify that the file extension is a known type and the item is not corrupt

    I am getting below error message while search crawl in sharepoint foundation 2010 search for only .VSD files and not for any other docs type.
    The filtering process could not be initialized when trying to process this item. Verify that the file extension is a known type and the item is not corrupt. 
    I have installed the Microsoft Filter Pack 2.0 in search server but still i am getting the same error.
    <//span>
    Any one's help will be appreciated.
    Regards,
    Rashmi
    Rashmi Singhal

    Hi Rashmi,
    1. Checked the file extension is added or not to the search file types.
    2. Checked file name has any invalid characters.
    3. Resetting the crawl index and run a full crawl .
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Hi,when ı work on photoshop suddenly my computer restart but i have saved my project before restart.and when ı want to open my psd ,  photoshop alert me with this messagge ;Could not complete your request because the file is not compatible this version of

    hi,when ı work on photoshop suddenly my computer restart but i have saved my project before restart.and when ı want to open my psd ,  photoshop alert me with this messagge ;Could not complete your request because the file is not compatible this version of photoshop ..ı tried all versions but cold not open again.there was a very ımportant work for two days.can you help me please?

    tworules wrote:
    …photoshop need a recovery or auto save system.
    tworules,
    You haven't mentioned the exact version of Photoshop you are running.  As the always helpful and knowledgeable JJMack told you, new versions of Photoshop do have auto save and recovery when enabled in your Photoshop Preferences.
    However, no auto recovery and/or autosave is a match for a defective machine.  As suggested by Mr. Cox, you should do a thorough inspection of all your hardware ASAP.

  • Does anyone have a cure for the following error running on Windows, "The procedure entry point sqlite3_wal_checkpoint could not be found located in the dynamic link library SQLite.dll.

    Does anyone have a cure for the following error running on Windows, "The procedure entry point sqlite3_wal_checkpoint could not be found located in the dynamic link library SQLite.dll.

    I have searched my computer for that file SQlite3.dll and also file QTCF.dll and I cannot find either one when I search my whole computer for it.  I cannot fix this!  I deleted Itunes and every time I try to download it, it goes through all this download till the end when it says that iTunes.exe-entry point now found and that Procedure entry point message comes up.  HELP!  This is driving me crazy.  How can I get itunes to work again when I can't find the danged .dll file to remove, move or rename!?!?!??

  • Deskjet 2542 all in one error: 'the specified module could not be found' when installing to USB

    Installation proceeds OK until the USB cable is connected, when the error message is displayed and installation ceases.
    I have successfully istalled and run the printer on another XP PC of a similar age - ie old.
    I have upgraded the XP OS to SP3 with numerous updates;
    Checked that the USB ports read Data sticks OK;
    run a/v and malware programs, including Microsoft Safety Scanner;
    checked that USB drivers are up to date;
    uninstalled driver software and re-installed with software downloaded from HP;
    carried out the procedures detailed in HP Support Forum 4022116
    Error message the same.  
    This is for my elderly neighbour - help please!
    This question was solved.
    View Solution.

    Hi @bodger50,
    Welcome to the HP Forums! 
    I understand that your HP Deskjet 2542 gives you the error: 'the specified module could not be found' when installing to USB, on Windows XP.
    I would recommend going through the steps in this post, Re: Install Error "The system cannot find the file specified" (hpzprl40.exe). When you get to the printer install wizard section, just use the full feature software and drivers found at this website, HP Deskjet 2540 All-in-One Printer series Full Feature Software and Drivers. As the printer install wizard is only for Windows 7 and up.
    Hope this is helpful, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • I want to edit my raw images on cs5 photoshop.  But when I go to open the .CR2 file it says  '' Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Please visit

    I want to edit my raw images on cs5 photoshop.  But when I go to open the .CR2 file it says 
    '' Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Please visit the Camera Raw help documentation for additional information.  '' 
    When I go to updates in photoshop help i try to update photoshop and photoshop camera raw but it then says 
    '' Updates could not be applied the error log file may help you in identifying the problem. Then, try updating again. If the problems persist, contact customer support for further assistance. 
    Photoshop Camera Raw 8.7.1(CS6) There was an error installing this update. Please quit and try again later. Error Code: U44M1I216 ''  
    I dont know how to get around this please help

    CR2 files from which Canon camera?
    Supported cameras are listed here
    Camera Raw plug-in | Supported cameras

  • I deleted iTunes when it said "iTunes could not back up iPhone because the backup could not be saved on the computer"and now it wont let me install it again and keeps saying "itunes cannot be installed because the file cannot be found in the cabinet "

    iTunes told me to delete my backup folder when I was having problems syncing my phone to my computer. After that it wouldn't work at all. After trying and trying I deleted iTunes when it said "iTunes could not back up iPhone because the backup could not be saved on the computer"and now it wont let me install it again and keeps saying "itunes cannot be installed because the file cannot be found in the cabinet ". What the **** itunes? Nothing is working!!
    I wanted to update my iTunes so I could sync my phone to my computer and update my phones software so I can use the latest apps that need a 4.2 or higher.
    This is not fun for me so if anyone knows what I can do to fix this please help. Is it possible to download the "cabinent file" with the lastest iTunes?
    Thank you.
    -Kait
    My phone is the iPhone4 and my computer is a Windows Vista

    I doubt that corrupt files are the problem. It is more likely a space or permissions issue. Is the hard-drive on which iTunes is stored close to capacity? Do you (or the particular user profile you have logged on with) have the requisite permissions to save to that drive?
    Otherwise, do you get an error code? This might point us in the right direction.

  • Error: The e-mail server could not be reached when the system was trying to

    Dear All,
    I've configured the Mail Transport in Portal successfully with SMTP as MS Exchange Server and Third-party Mailing servers. But due to some licensing issues a new MS Exchange mail server have been setup replacing the existing ones.
    And when i configure the Mail Transport in the system i get the below message on the eMail Window:
    "Error: The e-mail server could not be reached when the system was trying to send the message!
    javax.mail.MessaginException: 530 5.7.1 Client ws not authenticated
    I've configured (all the steps) the same way as i used to before and restarted the server as well! Please let me know the issue to be resolved, the telnet to the mailserver is also successful. I've try'd searching SDN, didn't find the exact solution... any notes on this?
    Thanks,
    MS

    Hi,
    It will depend on your infrastructure, I am not sure and have limited knowledge on netowrks, but in my current landscape both the system were in same domain, but  still i had to maintain proxy configuration.
    Since it giving authentication error, it feel it could be proxy error.
    Please refer below links which talks about same error :
    http://java.sun.com/products/javamail/FAQ.html#smtpauth
    Or else i think it is issue with port.
    Regards,
    Jigar Oza
    Edited by: jigar oza on Jul 6, 2010 12:43 PM

  • IPhone 4gs 16GB "the network connection could not be made" when downloading apps

    IPhone 4s 16GB brand new, "the network connection could not be made" when downloading apps. This problem occurs using Wifi, 3g, and even when pluggin into a computer. Please help

    Anyone? It's still not approved/working =/.

Maybe you are looking for

  • Is Cool 'n Quiet stable?

    I run a K8N Neo2 Platinum (MS-7025) with 1.4 bios, 3800+ NewCastle CPU and Kingston HyperX 400MHz memory. The setup works like a charm, but when I enable "Cool 'n Quiet" it seems to cause lock-ups and reboots. The system is NOT overclocked, everythin

  • Two Problems with Moto Droid--tips please!!

    So, I've had my Motorola Droid for about two months now and I love it! However, two problems have cropped up recently and I'm getting a bit frustrated. 1) Pictures WILL NOT upload to Facebook anymore. It tries and then I get an error message. I have

  • Parameterised Query in Crystal report

    I have Created a Parameter List Box having the following values Channel Name, Channel City, Channel State in the Crystal reports Designer. I want to create a parameterised query in such a way that whenever user select any value from the Above list th

  • Stuck on 'Media Pending' PP CC 2014 8.0

    After the first import of all my MXF files into Premiere Pro CC 2014, it's now stuck on 'Media Pending' since I reopened the project. Cleared cache etc to no avail, seems to be a common issue but I haven't came across a solid fix yet, anyone else hav

  • MPLS TE - IP Explicit Path

    Hi all, Just wonder what is the best for the next-address, shall we point to next hop router interface ip or the router loopback ip ? ip explicit-path name path1 enable next-address 172.18.255.46 next-address 172.18.255.42 next-address 172.18.255.2 n