Please Help me...............very urgent....very frusturated

hi
i have developed a simple session bean called demo
and the ejb is deployed on the weblogic server.
when i run the client which is a command line app. it throws the following error:
D:\demo>java demo.DemoClient
Begin statelessSession DemoClient...
Reach Here
:::::::::::::: Error :::::::::::::::::
javax.naming.NameNotFoundException: Unable to resolve 'demo.DemoHome' Resolved: '' Unresolved:'demo' ; remaining name 'd
emo.DemoHome'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at demo.DemoClient.main(DemoClient.java:37)
i have added the deployed folder in the weblogic classpath.
isthere a jndi error??
kindly tell me
buy

The container expects you to give the actual JNDI name(DemoBean) to which the bean is mapped and not the Home interface(demo.DemoHome). Thats why its working with "DemoBean".
The better way to go for this thing is as follows:
// Get a reference to the Demo Bean
Object ref = jndiContext.lookup("DemoBean");
// Get a reference from this to the DemoBean's Home interface
demo.DemoHome home = (deom.DemoHome)javax.rmi.PortableRemoteObject.narrow(ref, demo.DemoHome.class);
I thinks its all clear now...
Cheers...

Similar Messages

  • I have an iPhone 4s just eight months, it is normal that the battery lasts only 3 hours? please help me thank you very much.

    I have an iPhone 4s just eight months, it is normal that the battery lasts only 3 hours? please help me thank you very much.

    Three hours if definitely NOT normal. I get at least 48 hours out my 2 year old iPhone 4S' battery with light usage. Did you do the iOS 7 update on the phone it self (OTA) or through iTunes? In my experience most problems are caused by the OTA updates. For this reason I ALWAYS update using iTunes on my computer.
    I would suggest restoring your phone using iTunes on your computer and setting it us as a new phone. This downloads a fresh copy of iOS 7.1 from Apple and installs it on your phone. Just make sure that you transfer all purchased items (apps, music, etc.) as well as photos to your computer before restoring as the restore will completely wipe your phone. Do not restore from a back-up. Yes, you will loose all your data on the phone but restoring a back-up can restore the problem you are currently having back to your phone. Once your phone has been restored you can manually sync back your apps and music.
    Before restoring you can also check to see that battery-killers like Location Services, Background App Refresh, etc are only turned on for the apps that really need it. I recently read and article that said that the Facebook app can be a real battery killer. If you have this app installed turn of location services and background app refresh for this app and see if that helps. Also go to Settings / General / Restrictions / Location Services / System Services and turn off all the options in that menu. Your phone does not need any of those to function. Constantly using your phone's GPS is a huge battery killer. I only have Location Services enabled for Find my iPhone and Background App Refresh is turned off completely.
    I hope this helps.

  • My iphone 3gs is in dfu mode, but when i plug it into my laptop to restore it, my phone won't show up in itunes at all. what do i do???? please help, it would be very much appreciated :)

    my iphone 3gs is in dfu mode, but when i plug it into my laptop to restore it, my phone won't show up in itunes at all. what do i do???? please help, it would be very much appreciated

    Follow the steps here VERY CAREFULLY: http://support.apple.com/kb/HT1808

  • I can please answer in English, I have a translator, please help me. thank you very much

    I can please answer in English, I have a translator, please help me. thank you very much

    what i would do is buy a new battery... can you turn you macbook on with the charger pluged in? if so that means that you need to replace the battery. happened to me

  • Hello my name is amer and i live in iran and i have one iphone lock.but my country limited us very very.and we are very poor and dont can pay money to unlock my iphone.please help me.thank you very math.my s/n iphone is.         012652000197750.my email i

    Hello my name is amer and i live in iran and i have one iphone lock.but my country limited us very very.and we are very poor and dont can pay money to unlock my iphone.please help me.thank you very math.my s/n iphone is: 012652000197750.my email iS: [email protected]  please help me im very poor.im student and dont have money to keep on.

    Only your cell service provider can unlock the phone. We cannot help you with that.
    BTW, you should not provide information on your serial number or email address in an open forum.

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • Event OnInputProcessing not triggered ..... please help, it's urgent

    hi all,
    i have a problem in my bsp page.
    in my bsp page, there is a button which is clicked, a new pop up window will appear. after the pop up window closed the caller window will be submitted.
    after submitted, the server side script ( ABAP Code in event OnInputProcessing & OnInitiallization will be run ).
    in order to be able to do this, i used java script. and it's already works well.
    the problem is : there is 1 record that the ABAP code in event OnInputProcessing is not run. I have set break points on one of code in event OnInputProcessing, but it seems event OnInputProcessing is not triggered. if i also put the break point in event OnInitialization, it will stop in the break point in event OnInitialization.
    is there any clue why this happened ?
    please help, it's urgent because it's happened in my production system
    many thanks in advance
    regards
    eddhie

    hi Raja,
    thanks for the respond.
    the code is already works for 2 years and just 1 record of ... perhaps thousands record that used the same code.
    for other record, it go to event OnInputProcessing
    but just this 1 record it won't go to event OnInputProcessing.
    any clue ?
    please help
    regards

  • My iPhone hasn't turned on in 2 days and none of the solutions i have looked up worked, please help,this is a very urgent matter!

    my iPhone hasn't turned on in two days and none of the solutions i have looked up worked. i need all the help i can get. this matter is very urgent!

    Before we can help you we will need more information. Did you try to reset the phone while it was charging by holding the power button and home button until you saw the apple then let go? Please give a summary of what you have attempted, any error messages, what do you see on the screen, if anything.

  • My install of maverick failed as disk is damaged and cannot repaired. I tried to erase disk but got error that disk cannot be umounted. Please help! Thank you very much.

    My install of maverick failed as disk is damaged and cannot repaired. I tried to erase disk but got error disk cannot be unmounted. Please help. What can i do? Thank you very much.

    First have you got a backup of your data? If not try to get one now while you have some access to the drive. The drive is probably faulty and will need to be replaced, without the backup you risk losing the data.
    Have you a bootable external USB drive with Mavericks on it, if so boot from that and try and repair or erase the drive and reinstall Mavericks.
    If you don't have Mavericks on an external drive,  boot from you Leopard DVD ( I am presumimg your profile is correct) and run Disk Utility from there, you may be able to erase the drive and reload Leopard. You can then install Mavericks. Even if all that works you will most likely need a new drive in the near future.

  • Please help a dedicated yet VERY FRUSTRATED Zen Touch U

    Please help me!!! I have become very frustrated with my Zen Touch (40GB)(well..only the transferring of songs really...otherwise I think it is one of the best things I ever bought). Has anyone had the following issues..and if so..how have you resolved them?
    . When I used the software that came with it (the Media Source I think)...every time I try to transfer tracks it locks up after one track (says that the CPU usage is 00%) so I have to attempt to get out of the program and start it up again...this happens 99.9999% of the time. Are there any other programs out there that are less frustrating. I have re-installed the software numerous times and it is still happening.
    2. I prefer to use Music Match to put my track information in. Unfortunately, it has only recognized my player once..normally it doesnt even know it is connected. Is anyone else using this program..and what do I need to do to get this to work (their support staff hasn't been much of a help)
    3. I have one folder on my hard dri've (in my computer) that has a hand next to it (palm up). The songs in there were ripped from a CD. They are in the folder...but the Media Source program isn't recognizing it. Is there anything I can do to get these files to my player? Also, when I went to e-mail them to my account at work it wouldnt do it..said the file size was 0.0kb (yet, they are on my hard dri've). Any suggestions? Is it protected somehow..and can I unprotect it's LOL
    4. When initially transferring the majority of my files, I noticed that some files weren't transferred. What are the reasons why that might happen?

    As SSR said, install all the newest software. The Creative stuff is smart enough to install right over (replace) the older stuff you have now. I have had various problems over the past year with drivers, etc, and every time it was resolved by reloading the software or updating it. There is all new stuff; driver, MediaSource, Nomad Explorer. Download and install all three. Also, download and install the plug-in for yor Zen. That's 4 things.
    I'll bet this fixes all your problems.
    One thing you said--some tracks don't transfer at all. Is that using MediaSource or Music Match? You have to be careful with DRM tracks that you use software that can handle a DRM license (this is stuff you bought on Yahoo Music, Napster, MSN Music, etc.). It will not transfer using just any old software. MediaSource and WIndows Media Player both work for this purpose.
    My personal choice for editing ID3 tag info is Windows Media Player. You can "group select" a whole range of tracks and change them all. You can drag and drop (like songs to an artist or album) and the tags change. It is a super-powerful program.
    You may think you'll never use Nomad Explorer, but download and install it anyway. I don't use it, but something in that program updated Windows Media Player 0 and it worked WAY faster after that. Who knows what it did? It's all free, so you might as well.
    OOPS, forgot about your MediaSource Library thing. CLick "tools" in MediaSource, then go to the PC Library section. Make sure all the folders you have music in are listed. Also list them in the "media sniffer" tab, if you want them to be updated for changes you make.
    Message Edited by MikeM32 on 09-23-2005 09:5 PM

  • REPORT ERROR .... PLEASE HELP .. URGENT

    Hi,
    I have created a matrix report. While i try to run it , it gives
    me an error as follows
    REP-1814 Report can not be formatted. Object 'vertically' can
    never fit within 'R_G_BRAND'
    Its a matrix report. I looked at some of the documentation
    regarding this, but could not solve the problem. I can send my
    report if required. Please tell me how to solve this. It is very
    very urgent.
    Thanks
    Feroz

    I think knows Matrix reports very well Thiruchendhuran
    Selladurai
    Thanks
    Raja

  • Oracle Express Batch Manager-Please Help me out-urgent

    Dear all,
    I have created a Relational Access Administrator project and mapped an Express Datamodel with RDBMS lookup and fact tables and created a Maintenance Procedure Using "Express Database Maintenance" from "Relational Access Administrator". After that when I tried to run that "Procedure" using "Batch Manager", it creates a Command definition file "~5848371.cmd" and nothing is showing in the "Job Monitor" tab of "Batch Manager". At the same time since it could not run the procedure, no Express database have been created to the specified path.
    Please help me out, as I am in need for this very badly. I have gone through the document "Relational Access Administrator(User Guide)" from otn.oracle.com, but nowhere such type of problem have been addressed.
    Thanking you in advance,
    regards,
    Manoj Ghosh,
    Mail ID: [email protected]

    There is a tutorial on building a chat application (or applet) on the ibm site.
    http://www-105.ibm.com/developerworks/education.nsf/dw/java-onlinecourse-bytitle
    You need to register to use it, but it is free.
    Hope this helps
    Peter

  • Please Help its an urgent

    Dear,
    I am making BDC for Transcation Code <b>KKS1</b>. In this transcation when we go through the transcation then the output is shown in ALV Grid format and as we know that we can convert an ALV Grid into List output or Excel sheet. which I want finally in EXCEL Sheet Format. During transaction there is no Problem every thing is happening perfectly.
    <b>But if I want to record a BDC for the same</b> then then first of all I have to check the box continue after commit. then only I can record the BDC. because only after checking this box i get the output in ALV format. <b>Now till here I have done sucess fully.</b> Now In BDC I want to convert the  ALV into EXCEL SHEET OR LIST OUTPUT. Generally we can't do this. we have to do this manually but is there any way to convert the <b>ALV Grid into EXCEL Sheet or List Output during the BDC.</b>
    Please help me Out.
    I need it urgently.
    who ever will solve my problem I will reward him 10 Points.
    Siddarth

    Hi Siddarth!
    Like already Erik began to describe:
    most probably you can't use a BDC in a way you expect this.
    Excel is just installed on your PCs, also SAP needs GUI interaction to make an excel sheet. So your call transaction would have to run online - but normally you create BATCH input sessions to run something in background...
    Without GUI you won't get a correct ALV (also this can create it's containers with link to a GUI), nor excel download.
    If it's a one-time action: maybe you can run a BDC online and placing a mobile phone or some other office tool on the 'Enter'-key.
    You can also try to record a CATT (transaction SCEM) or eCATT - they are newer and can handle more dynpro situations, especially one option of eCATT should be able to make scripting.
    Regards,
    Christian

  • HT1338 How to get rid of Apple Support Community notices, my box is full I receive thousand a day and I really cannot handle it.  Please help, I cannot find the notification tad in my "preferences"  I have Mac OS X 10.7.5.  Please help it is urgent

    How to get rid of Apple Support Community notices?  my box is full as I receive thousand of messages a day.  I cannot handle it anymore, please it is urgent.  Help!  I have Mac OS X 10.7.5 and unable to find the "notification tab" in my "preferences"  I need a image if possible to better understand.  Thanks a lot.

    Thank you, but I just  tried everything you said, my apple id account (icloud) continues and still is receiving the email from ASC each second.  My i phone and macpro (i cloud account) is full of messages that I have difficult to erase at once.  I have to do it one by one which can take me the whole day.  How can i unsucribe from ASC, just get ride of my account, I mean cancel the ASC account, so I will not get any messages.  Please help.  Thanks.

  • Problem in HTMLB..Please Help...urgent....:(

    Hello All,
    Please refer to the below code:
    package com.sap.NewOrderAssignment;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Locale;
    import java.util.GregorianCalendar;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.TableColumnType;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    public class BeanOrderDetails implements Serializable
    {     public Date toDay, orderDate;
         public String toDayAsString;
         public IListModel deliveryAddress;
         public TextEdit address;
         public DefaultTableViewModel orderLines;
         public Locale locale;
         public String poNumber, model, qty;
         public Object colTitle[] = {"Model","Description","Qty (pcs)","AD Price","Net Price","Total amount","Indication ETA","12 NC","Part Del","GIM","# A-box","Pcd/A-box"};
         public BeanOrderDetails()
         {     Calendar cal = new GregorianCalendar();
              toDay = cal.getTime();
              String year = String.valueOf(cal.get(Calendar.YEAR));
              String month = String.valueOf(cal.get(Calendar.MONTH)+1);
              String day = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
              toDayAsString = year"-"month"-"day;
              deliveryAddress = new DefaultListModel();
              deliveryAddress.setSingleSelection(true);
              deliveryAddress.addItem("1", "Delivery Address1");
              deliveryAddress.addItem("2", "Delivery Address2");
              deliveryAddress.addItem("3", "Delivery Address3");
              //company address
              address = new TextEdit("Company Address");
              address.setRows(4);
              address.setCols(40);
              String line1 = "KPIT Cummins Infosystems Ltd.";
              String line2 = "MIDC, Hinjewadi";
              String line3 = "Pune, India";
              address.setText(line1line2line3);
              address.setEnabled(true);
              //Table creation
              Object data[][] = {{"HQ8894","Sensotec Dry Rota Shaver","500","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              orderLines = new DefaultTableViewModel(data, colTitle);     
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
         public void setLocale(Locale l)
         {     locale = l;
         public Locale getLocale()
         {     return locale;
         public void setOrderDate(Date od)
         {     orderDate = od;
         public Date getOrderDate()
         {     return orderDate;
         public void setOrderLines(DefaultTableViewModel mm)
         {     orderLines = mm;
         public DefaultTableViewModel getOrderLines()
         {     return orderLines;
         public void setAddress(String adr)
         {     address.setText(adr);
         public void setTextEditAddress(TextEdit adr)
         {     address = adr;
         public TextEdit getTextEditAddress()
         {     return address;
         public String getAddress()
         {     return address.getText();
         public void setDeliveryAdresses(IListModel model)
         {     deliveryAddress = model;
         public IListModel getdeliveryAddresses()
         {     return deliveryAddress;
         public void setPoNumber(String pon)
         {     this.poNumber = pon;
         public String getPoNumber()
         {     return this.poNumber;
         public void setModel(String m)
         {     this.model = m;
         public void setQty(String quantity)
         {     this.qty = quantity;
         public void getNewRow()
         {     Object data[][] = { {"","Sensotec Dry Rota Shaver ABC","","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              this.setQty("");
              this.setModel("");          
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
    The above code creates a table. It actually maps the various fields as the TableColumn.
    <b><u>Question:</u></b>
    I have added a button which appears below this table.
    Name of button = AddNewLine
    Now, when this button is clicked, a new empy row should appear in the table.
    <i><b>My stmts in method - getNewRow() are not working.</b></i>
    Please help me do so.
    Please help...its kinda urgent.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • My swf file doesn't sees flv format video, what can i do? Please help, it's urgent

    I made an video animation presentation in Flash CS6. I have a video part into this animation (flv format), but when i export the animation in swf, the video doesn't appear (i see only white screen. On my computer i can see it good, but from another computers it appears white screen.). I need to export the animation in video format, but i can't. Please help me, it's urgent for a project. Thank you!

    you can export the fla as a .mov.  file>export> export video. from here you can elect to open in Adobe Media Encoder and then choose your file extension type you want.
    if you cannot see the animation in the .swf my guess everything your doing is on a local computer and not on a site/server somewhere.

Maybe you are looking for

  • Understanding Datasources

    Hi gurus, I have an issue in seecting the DS in DS expert, I am refering to a report in building a new report with slight modifications on same DB. Firstly, I am in satandard report creation wizard - what is the diffrence of Datasources's - Dataroot/

  • Indesign cs6 has stopped working and needs to close in windows 8

    We have Adobe InDesign CS6 installed on 2 different computers and on both computers it frequently crashes saying "cs6 has stopped working" and closes the application. Restarting it ok for a while and then the same thing happens. We have uninstalled a

  • The best way to do paging and get total rows count given a sql statement

    Hi, Just got a quick question.... what is the best way to do paging as well as the total rows count given by a sql statement. e.g. "select * from emp" 1. I need to know the total row count for this statement. 2. I also need to do a 10 rows per page..

  • Dreamweaver CS4 hangs on spash screen

    Hi, When booted in Safe Mode on XP, Dreamweaver CS4 works fine. However opening Dreamweaver when booted in normal mode, causing it to hang at the splash screen. Any idea on finding out what is causing it to hang? Thanks.

  • Not sure on how to return a new object

    hi i am not sure on how to return a new Set object, i am not asking how to code this, i just don't exactly know what to write after "return.." to return a new object ...that part of the code is towards the bottom where i put arrows.....this is the sk