How could I run the client

I deployed an ejb bean and client on a server. I actually run the deploytool on the server machine. Now I want to run the client from a different machine. I took the client jar the deploytool created and run it on the client machine but it gave me the following message
Root exception is omg.org.CORBA.COMM_FAILURE minor code 1398079689 completed no.
Anybody know how to solve this problem?
To explain the problem again with example: I created an application (.ear) file on the server machine. I copied the ear file and the client jar file to another machine. I run the client.jar from the new machine (client). And I got the above message

Apologises. The URL in the last post is about JMS setup rather than EJB applications. I suspect that within client.jar or somewhere else on the client machine there will be a jndi.properties file that isn't correctly configured or perhaps doesn't reflect the location of your server.

Similar Messages

  • Running the client in ejb

    i have written code for the following.
    *Remote Interface
    *Home Interface
    *Stateless SessionBean
    *Client Program
    how do i run the client program. Im using a jboss application server. what files should be kept in which folder to run the program...

    Verify if the connect.properties match your deployment mode viz Local, EJB or Oracle8i.
    Uday

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

  • Fireworks (cs3) could not run the script

    When I choose in adobe dreamweaver: command->create web
    photo album fireworks (fw) is launched. The problem is that when fw
    is launched I got the following message: "Could not run the script.
    The file was not found." So the result is a webpage without
    pictures and thumbnails.
    What can I do?
    Thank you for your answer in advance,
    sz.g.

    [AM] I wonder if this could be related to your InteliMac?
    I'll try and repro the problem you are experiening.
    Alan I do believe the problem is directly related to the
    IntelMac issue with DW & FW having to run in Rosetta.
    Unfortunatly the Adobe document FAQ Adobe Support for
    Intel®-based Mac computers
    http://www.adobe.com/products/pdfs/intelmacsupport.pdf#search=%22adobe%20studio%208%20not% 20supported%20intel%22.
    in the section "Are there any known issues with running Adobe
    Creative Suite 2, Studio 8, or After Effects 7.0 under Rosetta?"
    doesn't say anything about the Web Photo Album command not working.
    I upgraded to Studio 8 in mid August because when I upgraded
    to an InteliMac I found that the FTP in my older DW MX application
    would crash the application and obviously that would make working
    on any websites sort of difficult. So I upgraded to Studio 8 and
    everything was running fine (albeit slow at times) until about
    three weeks ago now when a web site I was working on for a client
    called for Web Photo Album and I discovered this problem.
    It also turns out that I happen to like using the JustSo
    Photo Album extension but it failed in the same way so it must call
    on Fireworks in the same way that Web Photo Album does.
    [AM] You could try this Slideshow Creator extension for
    Fireworks:
    Thanks for that tip. Is the Slideshow Creator your creation?
    Unfortunalty I needed a "Photo Album" and not a slide show so I
    ended up using Galerie (
    http://www.myriad-online.com/en/products/galerie.htm)
    but I like the idea of a slideshow too.
    I downloaded and tested your Slideshow Creator Extension and
    ran a quick test and I like it but for one thing. The album page it
    created had all the thumbnail images bunched up in the upper left
    hand corner. I don't know whether that was something I did or
    failed to do in setting up the output or is it another InteliMac
    with Fireworks? I'll have to take another look at it this weekend
    when I have some extra time.
    Thanks again for the tip.

  • How could I find the SQL statement who get this message ?

    ORA-01555 caused by SQL statement below (Query Duration=11191 sec, SCN: 0x0854.723b9c32)
    ... How could I find the SQL statement who got this message ?
    Thanks, Paul

    ORA-01555 means that the UNDO/ROLLBACK space is not large enough.
    This occurs because the SELECT statement is attempting to read the UNDO, but the UNDO has been released (transactions have committed or rolled back) and reused.
    The following are SOME of the reasons I have seen this to occur:
    1) Updates in a loop, with commits happening in the same loop
    - this will mark the UNDO available quickly and quickly reuse it. Then when the SELECT wants to rebuild a block, the UNDO used to rebuild the block has been reused (solution, make the UNDO bigger)
    2) A SELECT cursor used to control a loop in which updates are performed, and a 'done' flag is marked against the current cursor record, and commits are performed at the end of each loop, prior to fetching the next record
    - same problem as above, but it hits the current process. Same solution
    3) A 'month end' activity spike occurs, and all sorts of transactions create updates. There is a report that reports the activity - amusingly it needs to start at the beginning of all the work and updates periodically by doing a huge SELECT up front. This is then used to drive a loop which attempts to get information from the various transactions that have been updated and committed. After a while, the SELECT gets an ORA-01555
    - same problem as above and same solution. Get a bigger UNDO segment.
    You say this only happens once a month. That should give a hint.
    I wouldn't bother with which SELECT statement, as much as which APPLICATIONs are being run when it happens.
    One way around this - use 10g and set the guaranteed retention period. All sorts of other things will break, by no more 1555. <g>

  • HT201328 I've purchased a used  iPhone 3g via similar site like eBay in Hungary.The phone is legal but no invoice was included.How could I unlock the phone?

    I've purchased a used  iPhone 3g via similar site like eBay in Hungary.The phone is legal but no invoice was included.How could I unlock the phone?

    cv.references wrote:
    How could I unlock the phone?
    ONLY the Carrier it is Locked to can unlock it.
    No one here will know who that Carrier is.
    The iPhone 3G can only run iOS 4.2.1

  • HT5246 How do you run the Flashback malware removal tool?

    How do you run the Flashback malware removal tool?
    Thanks

    I am away from my computer and it is somewhat awkward to reply on an iPad.
    > I had already done what softwater instructed. I've read that it deletes itself on other threads, but it's still in my Finder as a Device. That's what confused me, because it doesn't appear to have deleted itself.
    Sorry, I wasn't clear. That is not the tool. It is the .dmg image mounted to your desktop. Next to the name you will see a small eject icon. Click on it or highlight it and choose "Eject" from the appropriate Finder menu. Once that happens you can drag the .dmg file to the trash as it will not delete itself.
    > I only recently upgraded to Snow Leopard and then Lion, in quick succession. My understanding is that there were (are) variants that would have infected my computer prior to my upgrading my OS to Lion. Before the upgrade, they were Adobe, but afterward they were Java. Could it be that be that the pop-ups were/are some other variant?
    Difficult to say for certain. Apple says it deletes all the common variants but does not specify which and I haven't seen the results of any testing done to verify that it finds and deletes those. The only dialogs that appeared with the initial variants were for FlashPlayer. They are depicted in the descriptions for Flashback-A on F-Secures site if you want to take a look. There have been none that I am aware of for Java, so that is probably either a web page or application that needs Java to run giving you that alert.
    > If the Flashback malware removal tool didn't find anything and my Software Update is current, does that mean the vulnerability has been fixed? At least for now? I understand that I Software Update will prompt downloads in the future if and when it needs to be patched again.
    The vulnerability is in Java, nowhere else, so if you don't have it installed there was nothing to fix.
    If you download Java in the future it will be the latest version Apple has available at the time, which hopefully will not be subject to exploitation, yet...

  • How could i run two file of same url mapping

    hi,
    i am very new to servlet technolgy using weblogic 8.1 server. i want to know that can i provide same url mapping to two diffrent servlet files.if yes then how could i run files seperatly - i want to know that what should i pass in the address bar.
    my directory structure is
    C:\ ----------> helloWeb
    |
    |----------->WEB-INF
    |------------>classes
    and suppose i have two files in helloWeb directry
    1) ajitAutomobile.java
    2) ajitAutomobileUpdate.java
    i m using "http://localhost:7001/helloWeb/man" in my address bar but it executes only the first servlet added.
    plz help me
    im confused...
    thanx for any answer

    You can not map two servlets to the same url because the servlet container will just send the request to the first url mapping it can match. What you can do is map one servlet that will check the request for a parameter that flags the request and if it finds it will forward the request to the next servlet.

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • How SAP standard run the interest calculation in AR module

    Dear expert,
    would like to seek for your advise, how SAP standard run the interest calculation in AR module ?
    Also advise,does the interest calculation generate the interest base on the dunning run?What are relationship between interest calculation generate ?
    What are the T-code for running the interest so that able to generate the interest posting according to baseline due date?
    On top of that, does SAP have standard AR interest calculation report and what are the T-code ?
    Between, do you have any ideal the Interest Indicator ZB stand and reminder date it is the last reminder date,waive,KIV and charge Interest and also noted item amount mean for in the AR Interest Calculation report?
    Please help.
    Regards,
    Karen

    Hi,
    Thank you for the promtp reply.
    I still have query would like to seek for your advise.
    1.Does the interest calculation generate the interest base on the dunning run?For example, the interest is only can be post/generated when there is dunning run and vise versa.
    2.What are relationship between interest calculation generate ?Does interest generation depand on the dunning run?
    On top of that, does SAP have standard AR interest calculation report and what are the T-code ?
    3.Between, do you have any ideal the reminder date it is the last reminder date,waive,KIV and charge Interest and also noted item amount mean for in the AR Interest Calculation report?
    4.For posting use F.2B and that will calculate interest on open items of customers. Does this posting is post as noted item or posting document? Beside, do we every day need to run this posting  F.2B in order to update the AR interest calculation report and post the interest for the overdue invoice?
    5.Do you have any reference link/document /SAP notes on calculate interest on arres F.2B?
    a)How the program calculate those overdue invoice for example: does sap calculate the interest  base on interest + due amount until the customer made the payment?
    b) If customer made payment on the due amount and not the interest and vise versa? How theF.2B program logic work on the calculation ?
    Please help.
    Regards,
    KH

  • How can I run EJB Client in other computer ?

    Hello,
    I'm trying to run converter examples.
    if ejb client pgm resides on a same machine with j2ee server , it works fine.
    But when I put client pgm on a different maching
    below message show.
    No application client descriptors defined for: ConverterClinet
    I put ConverterApp.ear, ConverterAppClient.jar and ConverterClient.class on the machine and
    set APPCPATH=ConverterAppClient.jar
    set VMARGS=-Dorg.omg.CORBA.ORBInitialHost=xxx.xxx.xx.xx
    What should I do to run ejb client on different machine?

    Hi SangHPark,
    I had the same problem but have solved it and it works.
    I ran the client remotely from a win98 box.
    Keep two things in mind
    1> Deploy the applications to an ip address and not to the local host using the deploy too. Use the deploy tool Gui to add a new server and then deploy the application to this ip address.
    2> I am running j2ee version 1.3 and jsdk 1.3
    Use the following code but instead of using "java:comp/env/ejb/SimpleConverter" use the jndi name of the object: "MyConverter" as specified in the tutorial.
    Properties prop = new Properties();
    prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
    prop.setProperty(Context.PROVIDER_URL,"IIOP://xxx.xx.x.xxx:1050");
    System.out.println("Attempting to create context...");
    Context initial = new InitialContext(prop);
    // Instead of this use the below line of code
    //Object objref = initial.lookup("java:comp/env/ejb/SimpleConverter");
    Object objref = initial.lookup("MyConverter");
    // MyConverter is the Jndi name of the ConverterBean as per the tutorial
    You need to do the following things.
    1> After making changes to the code recompile using Ant and redeploy it.
    2> Copy the j2ee.jar, ConverterAppClient.jar and ConverterClient.class file to the machine that u want to run the client from.
    3> create a directory called "config" on the remote machine where you copied the files in step two.
    4> Copy to this directory the files ejb.properties and security.properties from your j2ee_home\config\ directory.
    For example you copied the files in step 2 on the remote machine in the c:\test directory. Create c:\test\config directory and copy the files from step 4 into this directory.
    5> Run the following command from the directory where u copied the client files
    java -Dorg.omg.CORBA.ORBInitialHost="host name" -classpath .\j2ee.jar;.;.\ConverterAppClient.jar ConverterClient
    Monal

  • Basically... I had an ipod touch sync'd to my dads i tunes.. i then got an iphone and created my own apple id.. how could i transfer the media from my ipod which was used on a different apple id onto my own account without everything deleting

    basically... I had an ipod touch sync'd to my dads i tunes.. i then got an iphone and created my own apple id.. how could i transfer the media from my ipod which was used on a different apple id onto my own account without everything deleting

    Syncing an iDevice to a computer does not remove content from the computer.
    Syncing an iDevice to a computer that it does not normally sync with will remove the content from that device.
    If the media was acquired with a different Apple ID it is in no way linked to your Apple ID.

  • Error When running the Client Program

    hi all,
    i got exception while running the Client program
    "Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]"
    plz solve my problem ASAP.
    thanks in advance..
    from
    sree

    thanks this problem solved...
    but i got another exception
    javax.naming.NameNotFoundException: Unable to resolve 'ExeBean' Resolved: '' Unresolved:'ExeBean' ; remaining name 'ExeBean'
    thanks in advance
    from
    Sree

  • I recently purchased an HP officejet 6600 and whenever I put in the disk to install the printer nothing pops up. How do I run the disk on my 2011 MacBook Pro?

    I recently purchased an HP Officejet 6600 and whenever I put the disk in to install the software nothing happens. How can I run the program to install it and get started using my printer???

    You should be able to go to HP Web site and download the installer. It sounds like you got a bad CD.

  • I wanted a solution to the problem I was having on Win 7 Pro Service Pack 1 in that links on an open Adobe Acrobat file will not open in my Firefox Browser 33.0.2. The Error I receive is "Acrobat could not run the web browser.  Unknown Error. (123)"

    I want a solution to the problem I was having on Win 7 Pro Service Pack 1 in that links on an open Adobe Acrobat Pro 10.1.12  file will not open in my Firefox Browser 33.0.2. The Error I receive is "Acrobat could not run the web browser.  Unknown Error. (123)"

    Change browsers. See what happens.
    Be well...

Maybe you are looking for