Help!! Can not find ejb from servlet!!!

I have tried several days...here is my code to look up ejb..
Context context = new InitialContext();
Object ref = context.lookup("CustomerFacade");
//Object ref = context.lookup("CustomerFacade");
facadeHome = (CustomerFacadeHome) PortableRemoteObject.narrow(ref, CustomerFacadeHome.class);
facade = facadeHome.create();
do I need a orion-ejb-jar.xml? oc4j will generate it, right?
Do I need a ejb-ref tag in the web.xml file? I've tried to use JDev to develop an example..the file it generates doesn't have ejb-ref tag at all..however..it works...
the problem is that I want to port an app from JBoss to OC4J....so I cannot use JDev to develop from scratch...
Please help me~~~I am stuck for several days...

Next step it to restore to factory defaults in case there is some corruption which is now in the backup. If that does not work then you may have a hardware problem.

Similar Messages

  • HT3775 I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you.The document "IMAG0026.AVI" could not be opened. A required codec isn't available.

    I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you. This is for Quicktime Player.
    "The document “IMAG0026.AVI” could not be opened. A required codec isn't available."

    Try Perian.
    http://perian.org/

  • Installed BC InfoObject 'X' - Can not find it from RSA1, but from RSD1

    Hi all,
        I have installed the Business Content InfoObject 0ME_REVO_PA. I could find this InfoObject from RSD1 and it is active. I could see it in Business Content section also with Active status, but I can not find it from RSA1 under InfoObjects section. I have to find under which InfoObject Catalog it has been created.
        What could be the problem, please ?
       Thanks in advance.
    Regards.

    Hi Bhanu,
       As per Edwin Harpino's suggestion, ran function module (se37) RSDG_IOBC_REORG
    with following Import parameter :
    I_OBJVERS A
    I_PROGRESS
    I_IOBJTP *
    I_ALL_IOBJ X
    I_T_IOBJNM 0 entries
    I_BYPASS_BUFFER
       Now, I could see it in RSA1 also.
    Thanks.

  • Help:Can not find the file in jar!

    Hello everyone:
    I build a project using Netbeans 5.0 and make a jar file with it...
    The code in the project as follows will throw an exception described that it can not find the file named datasource-config.xml
    String dataFilePath = getClass().getResource(dataFile).getPath();
    //System.out.println("filepath:"+dataFilePath);
    InputStream input = new FileInputStream(dataFilePath);
    when I run the project with the main() function as an entry it works perfectly and output:
    filepath:/C:/projects/java_project/search/build/classes/com/cn/wxjt/lucene/config/datasource-config.xml
    But when I compressed the project with jar and run it , it will show:
    filepath:file:/C:/projects/java_project/search/dist/search.jar!/com/cn/wxjt/lucene/config/datasource-config.xml
    there is a (!) between search.jar and /com/cn/wxjt...
    I dont know why I generate a ! symbol in the file path... Is it cause the exception->
    java.io.FileNotFoundException: file:\C:\projects\java_project\search\dist\search.jar!\com\cn\wxjt\lucene\config\datasource-config.xml
    If you have any idea, plz tell me.
    Thank you and best wishes to you !
    :)

    If the file you want to read is in your jar file, use
    getClass ().getResourceAsStream
    (relative_path_file_name)Hope that help,
    Jackhey jack i want to open the file as new File
    i m using this.getClass().getResource("resource/backend.xml");
    the resource is the directory inside the jar file.
    when i prints the url it shows:
    the jar file is in the WORK directory
    URL : jar:file:/home/neeraj/WORK/show.jar!/resource/backend.xml
    now when i creates new File using the url.getFile() method the file does not exist.
    although the same programs runs well when i uses the InputStream
    so plz tell me cant I create a new File from the above method????
    thanks in advance
    with regards
    neeraj

  • Can not migrate EJB from WL 5.1 to WL 6.0

    I have followed the procedures for migrating my ejb's from weblogic 5.1
    to weblogic 6.0. I am receiving an error when I try to deploy an ejb
    (java.lang.NoClassDefFoundError). The class it can not find is
    packagename.ejbnameHome. This class is inside of the jar file containing
    the ejb that I am trying to deploy. Any idea what the problem may be?
    Eddie

    Yes you can, I did it. Just remember, Jdev 3.0 is only for OAS 4081 and Oracle 8.1.5, and Jdev 3.1 is for OAS 4082 and Oracle 8.1.6. Don't mix them, you'll run into problems.

  • Can not find printer from computer hp officejet pro L7780 all in one

    I just recently tried to print and my printer can not be found I do not have the disk that came with the printer it is lost  and it keeps telling me it can not find printer 
    This question was solved.
    View Solution.

    What operating system?
    Download and run this utility: http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-104282-2&cc=us&dlc=en&lc=en...
    What does it say?
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Can not lookup EJB from another EAR file, the ClassCastException returned

    Hi,
         I try to call EJB module in A.ear from Servlet in another EAR file(B.ear) the ClassCastException returned on the context.lookup() code . So when i create a Dynamic Web Project(With the same code as Servlet in B.ear) and pack it in A.ear(The same EAR file with EJB module), it work fine. I have no idea. Could you please suggest me.
    The ClassCastException : incompatible with interface ..... return on
    HelloManBeanLocalHome home=(HelloManBeanLocalHome) ctx.lookup("localejbs/sap.com/HelloMan_EAR/HelloManBean");
    The entire code is below :
              try {               
                   InitialContext ctx=new InitialContext();
                   HelloManBeanLocalHome home=(HelloManBeanLocalHome) ctx.lookup("localejbs/sap.com/HelloMan_EAR/HelloManBean");
                   HelloManBeanLocal remote=home.create();
                   lookupText=remote.helloMan("Test");
              } catch (Exception e) {
                   // TODO: handle exception
                   e.printStackTrace(out);
    Many Thanks

    Hi Saleem Mohammad.
               Thank a lot for your post. I got this idea from your link. The below code work fine.
              try {               
                   InitialContext ctx=new InitialContext();
                   Object obj= ctx.lookup("localejbs/sap.com/HelloMan_EAR/HelloManBean");
                    ClassLoader homeCl = obj.getClass().getClassLoader();
                    Class<?> localHome = homeCl.loadClass(HelloManBeanLocalHome.class.getCanonicalName());
                    java.lang.reflect.Method method = localHome.getMethod("create");               
                    Object homeObj = (Object)method.invoke(obj);
                    ClassLoader localCl=homeObj.getClass().getClassLoader();
                    Class<?> local = localCl.loadClass(HelloManBeanLocal.class.getCanonicalName());
                    Class  args[] = {String.class};
                    java.lang.reflect.Method localMethod=local.getMethod("helloMan",args);               
                    Object params[]={"Thongie"};
                    Object localObj = (Object)localMethod.invoke(homeObj,params);
                    lookupText=(String)localObj;               
              } catch (Exception e) {
                   // TODO: handle exception
                   e.printStackTrace(out);

  • Which epson wireless printer will work with airport extreme (can not find out from epson)

    three systems in use Win 7, Mac lion and vista.  Former epson printer WF 600 would not link with my new airport extreme router despite multiple attempts through epson.  Does anyone know of a wireless printer that will work?  Thanks.

    I had the same problem. It was fixed by running the silly app downloadable from their support page: http://support.lexmark.com/perl/support/support.cgi?ccs=229:1:0:0:0:0
    Here's another way, through CUPS:
    1) http://127.0.0.1:631/
    2) Administration tab
    3) Add Printer
    4) Give Name, Location, and Description (pretty inconsequential)
    5) Select device: Internet Printing Protocol (http)
    6) Device URL: lexnet3://192.168.5.110:1 (the parts in bold must be there, the ip add is probably different)
    7) Make: Lexmark
    8) Model: 3600-4600 series (if this isn't there, you need to get the driver from Lexmark)
    That should do it.
    The printer will be in your system preferences.
    The port number and the "lexnet3://" is the interesting part. Without them, I don't think you'll be able to get it working.
    Good luck
    Message was edited by: swbooth

  • TS3367 I bought this ipad 3 wifi+cellular from Saudi Arabia but I live in Pakistan and so want to use call n FaceTime feature in it but can not find these features in my ipad so I really need help in this regard? Help would really be appriciated Thankyou

    I bought ipad 3 wifi+cellular from Saudi Arabia a month back and can not find a call feature or even FaceTime feature on it. I really have struggle online to find a way out but could not find any way out to use these features of ipad. I no not live in Saudi Arabia. My purpose of purchasing "cellular ipad" was to use cellular features whereas sadly I am not able to do so. Please I need a solution to this problem and would really appreciate the HELP. :)

    Aqdas Hayat wrote:
    .... Please I need a solution to this problem and would really appreciate the HELP.
    The Device you have, because of where it was Purchased will never be able to have FaceTime.
    All you can do is sell it and buy a Device from a non restrictive country.
    FaceTime in the Middle East

  • I have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!

    i have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!
    What else can I do ?

    Snow Leopard = OS X 10.6.x
    It is Not available as a download... It is a Paid Upgrade.
    Do this first...
    Check that your Mac meets the System Requirements for Snow Leopard...
    Snow Leopard Tech Specs
    http://support.apple.com/kb/SP575
    If so... Purchase a Snow Leopard Install Disc...
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    Other countries...
    http://support.apple.com/kb/HE57
    After the Successful Install, run Software Update to get the latest updates for Snow Leopard.
    Be sure to make a Backup of your Current System Before Upgrading...

  • I have reinstalled snow leopard 10.6.8 and want to restore my i photos from time machine. can not find iphoto libary in time machine, can"t not find home-pict. iphoto lib.  in time machine

    i have reinstalled snow leopard 10.6.8,  and want to restore my i photos from time machine. Can not find i-photo libary in time machine, can't not find > home-pict. iphoto lib.  in time machine. Please help.

    On my HD it does not say ,restore, in yourname -pict. Iphoto lib.,
    On the time machine, it , yourname etc, oes not show up at all.
    Only right side of TM, your name etc. does not show.

  • Can not find the Automation Folder.... neither its Key Command...HELP

    I would be grateful to anyone who could find a solution to the following issue:
    I have read in Logic's 7.2.3 help reference about track automation folder. The sort of arrange window that seems to lurk behind the main arrange page and the place where you can treat the automation data as proper region material. I have tried everything, .. there does not seem to be any key command of the sort, more over I can not find any other way that could give me access to such an editor like the Automation Folder.
    Thank you for reading this.
    Nik

    • 1 • If you choose 'New Track' from the Menu, or use Control-Click-&-hold, you can select from the various options.
    • 2 • No, you don't need to do anything — it's entirely voluntary… I feel guilty for even mentioning it… I just thought that since you seem to be genuinely grateful for the help you have been getting, you had probably not read the article fully. I see that you have just had a useful reply from John Alcock, so now's your chance!

  • Had to uninstall Firefox, now I can't reinstall. Get error message "Can not find archive file." Please help!

    I believe I had some kind of virus attack. I got everything cleaned up. (I HOPE) In the process of cleaning the virus, I unintalled Firefox because it wouldn't open. Kept getting the error message that Firefox was already open and I had to close out of the sessions or restart the computer. After restarting the computer several times and not being able to find any open sessions in task manager, I uninstalled. When trying to reinstall, I get the error message "can not find archive file." I've tried downloading Firefox from cnet as well as the Mozilla site to no avail. Please help. I'm getting tired of using Chrome already!

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • I have 10.6.8 and have installed two new printers HP 8610 and an Epson 7880 and can not find the Page Set-up menu anywhere in the applications I a trying to print from. There are no page sizes, paper types, appearsto be locked on a 13x19 size but It.

    Hi to the Mac Folks,
    I have 10.6.8 and have installed two new printers HP 8610 and an Epson 7880 and can not find the Page Set-up menu anywhere in the applications I a trying to print from. This is regardless of either printer selected.
    I primarily print photos from Photoshop CS5.  The term Page Set-up has gone missing in the file pull down menu. Can't make any choices  There are no page sizes, paper types, appearsto be locked on a 13x19 size paper format. Either being too large or too small.
    Saw a 2008 locked issue about this however none of the help fit my situation, options discussed are not available to me.
    Preview has no "Page Setup" - or does it?
    Does the constant struggle with computer compatability weirdness issues ever end or is it a enslavement scheme?
    Woody

    Hey,
    if you know the name(s) of the root folder(s) you want to access (eg. by making a note on the Windows side) then you can make them appear by just doing Shift-Command-G in Finder ("Go to Folder…"), and entering the full path to the required folders.  You can then navigate all the contents as normal.
    HTH,
    S.

  • Folder from my desktop has disappeared and I can not find it!

    I'm hoping someone out there can help me. To put it in short, I have been typing my notes for an exam that I need to pass for my medical license for the last couple of months. Yesterday I went to save the newest document to the folder (which I had saved on the Desktop of my Mac) and it wasn't there anymore. I'm not sure if any other files are missing because that was the main one that I was using at the time. I went into Microsoft Word and File > Recent and they are all listed there but when I click to open them it says that it can not find the file and if I would like to search for it myself. I do have an external hard drive but I guess I did not back up my stuff since I started working on these notes (yeah yeah I know dumb mistake). Can anyone help? I tried using StellarPhoenixMac recovery but I don't think it found anything worth while. Thanks.

    Try repairing disk permissions using Disk Utility.
    Repairing a disk's permissions using Disk Utility.
    Note: This should not delete any information or files from the disk.
    Repairing a disk's permissions can help solve various file-related issues.
    To begin, make sure your external disk that you are repairing is connected to the computer. If you are repairing an internal disk, skip this step.
    After the drive is connected, launch the Disk Utility application in any of the following ways:
    Type the first few letters of its name into Spotlight. Select it from the results.
    Go Finder > Applications > Utilities > Disk Utility
    Go Launchpad > Utilities > Disk Utility
    Once you are in the Disk Utility app, select the external drive from the sidebar on the left.
    Then, choose the Repair Disk Permissions button on the right.
    If this does not solve your issues, you may have no choice but to reformat the drive using Disk Utility.
    I hope I answered your question.
    Austin

Maybe you are looking for