Converterappclient.jar

I was following the example given in docs of j2ee. It mentions Converterappclient.jar, can any body tell me where can i find this file.

It will be created when you deploy the ConverterApp.ear application.

Similar Messages

  • 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

  • Can't import SavingsAccountHome with Deploytool

    *****MY QUESTION TO YOU***********
    Why can't deploytool load SavingsAccountHome?
    A few facts:
    --j2ee is running
    --cloudscape is running
    --'ant create-savingsaccount-tables' worked (I can query the table)
    --'ant savingsaccount' worked, i.e., no error msgs and all .class files appear in build tree
    When I hit 'finish' to complete the deploytool build of SavingsAccountApp, I get the following response:
    *************ERROR MESSAGE**************
    "There was an error importing component(s) into this application.
    The application file has not been updated."
    *****ERROR TEXT IN DOS deploytool WINDOW*******
    e:\j2ee_tuto\j2eetutorial\examples\src>deploytool
    Deployment tool version 1.3. Type deploytool -help for command line options. Starting...
    java.lang.ClassNotFoundException: SavingsAccountHome
    at com.sun.enterprise.util.EJBClassLoader.findClass(EJBClassLoader.java:203)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at com.sun.enterprise.deployment.EjbDescriptor.getMethodDescriptors(EjbDescriptor.
    java:1100)
    at com.sun.enterprise.deployment.EjbDescriptor.convertMethodPermissions(EjbDescrip
    tor.java:656)
    at com.sun.enterprise.deployment.EjbDescriptor.getExcludedMethodDescriptors(EjbDes
    criptor.java:642)
    at com.sun.enterprise.deployment.xml.EjbBundleNode.setDescriptor(EjbBundleNode.jav
    a:87)
    at com.sun.enterprise.deployment.xml.EjbBundleNode.getDocument(EjbBundleNode.java:
    717)
    at com.sun.enterprise.deployment.EjbBundleArchivist.writeDeploymentInfo(EjbBundleA
    rchivist.java:238)
    at com.sun.enterprise.deployment.EjbBundleArchivist.save(EjbBundleArchivist.java:3
    25)
    at com.sun.enterprise.deployment.EjbBundleArchivist.save(EjbBundleArchivist.java:3
    57)
    at com.sun.enterprise.deployment.ApplicationArchivist.save(ApplicationArchivist.ja
    va:494)
    at com.sun.enterprise.deployment.ApplicationArchivist.save(ApplicationArchivist.ja
    va:455)
    at com.sun.enterprise.deployment.ApplicationArchivist.addEjbJar(ApplicationArchivi
    st.java:1109)
    at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.addEjbJar(DeployToolWin
    dow.java:1533)
    at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.newEjbJarAction(DeployT
    oolWindow.java:1464)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIAction
    Dispatcher.java:111)
    at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIAction
    Dispatcher.java:132)
    at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.actionPerformed
    (UIActionDispatcher.java:152)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.j
    ava:1504)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMen
    uItemUI.java:886)
    at java.awt.Component.processMouseEvent(Component.java:3715)
    at java.awt.Component.processEvent(Component.java:3544)
    at java.awt.Container.processEvent(Container.java:1164)
    at java.awt.Component.dispatchEventImpl(Component.java:2593)
    at java.awt.Container.dispatchEventImpl(Container.java:1213)
    at java.awt.Component.dispatchEvent(Component.java:2497)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
    at java.awt.Container.dispatchEventImpl(Container.java:1200)
    at java.awt.Window.dispatchEventImpl(Window.java:914)
    at java.awt.Component.dispatchEvent(Component.java:2497)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
    at com.sun.enterprise.tools.deployment.ui.utils.UIBusyCursor.dispatchEvent(UIBusyC
    ursor.java:132)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:
    131)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    Error loading class (EjbDesciptor.getMethods())
    ******MY VARIOUS ENVIRONMENT VARIABLES******
    e:\j2ee_tuto\j2eetutorial\examples\src>path
    PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;e:\.;e:\j2sdkee1.3\bin;e:\jant\jaka
    rta-ant-1.3\bin;e:\jdk1.3.1;e:\jdk1.3.1\bin
    J2EEJARS=e:\j2sdkee1.3\lib\j2ee.jar
    J2EE_CLASSPATH=e:\j2sdkee1.3\lib
    J2EE_HOME=e:\j2sdkee1.3
    CLOUDSCAPE_INSTALL=e:\j2sdkee1.3\lib\cloudscape
    CLASSPATH=.;e:\j2eesdk1.3\lib;e:\jdk1.3.1\lib;e:\j2ee_tuto\j2eetutorial\examples\build\ejb\savingsaccount
    CLOUDJARS=e:\j2sdkee1.3\lib\system\cloudscape.jar;e:\j2sdkee1.3\lib\system\tools.jar;e:\j
    sdkee1.3\lib\cloudscape\RmiJdbc.jar;e:\j2sdkee1.3\lib\cloudscape\client.jar
    CLOUDSCAPE_INSTALL=e:\j2sdkee1.3\lib\cloudscape
    ANT_HOME=e:\jant\jakarta-ant-1.3
    APPCPATH=ConverterAppClient.jar
    JAVACMD=e:\jdk1.3.1\bin\java -Xmx128m -Djavax.net.ssl.trustStore=e:\j2sdkee1.3\lib\securit
    y\cacerts.jks -Djava.security.auth.policy=e:\j2sdkee1.3\lib\security\jaas.policy
    JAVAHELPJARS=e:\j2sdkee1.3\lib\jhall.jar
    JAVART=e:\jdk1.3.1\jre\lib\rt.jar
    JAVATOOLS=e:\jdk1.3.1\lib\tools.jar
    JAVA_HELP=e:\j2sdkee1.3\lib\jh.jar
    JAVA_HOME=e:\jdk1.3.1
    JMS_CLASSESDIR=e:\j2sdkee1.3\classes
    JMS_DB_PATH=e:\j2sdkee1.3\repository\EXODUS\db\
    JMS_HOME=e:\j2sdkee1.3
    JMS_RI_JDBC=e:\j2sdkee1.3\lib\system\cloudscape.jar;e:\j2sdkee1.3\lib\system\tools.jar
    LIBDIR=e:\j2sdkee1.3\lib
    LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTEN
    T_SSL:1060
    LOCALEDIR=e:\j2sdkee1.3\lib\locale
    SSL_OPTIONS=-Djavax.net.ssl.trustStore=e:\j2sdkee1.3\lib\security\cacerts.jks
    SystemDrive=C:
    SYSTEMJARS=e:\jdk1.3.1\jre\lib\rt.jar;e:\jdk1.3.1\lib\tools.jar
    SystemRoot=C:\WINNT
    SYSTEM_LIB_DIR=e:\j2sdkee1.3\lib\system

    refer to the thread=149467
    I had the same problem. Hints from thread 149467 solved the problem.
    Thanks

  • Java.io.FileNotFoundException when deploy converter in Tutorial

    I try to deploy converter application in the Tutorial. Always got the following Error:
    java.io.FileNotFoundException:http://10.1.5.104:9191/converter/ConverterAppClient.jar
    checked in examples/src/converter. The jar file is not there. But I found the jar file in
    j2sdkee1.3\repository\hg\application
    My OS is NT4.
    Please help. I tried million of times, still the same error.

    Now I get the deployment through. And the client can be startup correctly. But when I enter the URL. I got an empty page. In Netscape I get "the document contains no data" and in IE get an empty page. Anyone know why is this.

  • Connecting to EJ bean in Sun App Server 8

    I am working my way through the j2eetutorial14, and have successfully built the Converter app. However, I need to run the stand-alone client, connecting to the bean, in a server-independent way. So, as part of my exercise, I copied the client code in Eclipse, and made the following changes to the code:
    from the original example:
    Context initial = new InitialContext();
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);to this:
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    properties.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:3700");
    Context initial = new InitialContext(properties);
    Object objref = initial.lookup("ConverterBean");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);Now I am getting this exception in the narrow() method:
    java.lang.ClassCastException
         at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
         at ConverterClient.main(ConverterClient.java:27)When I run the client from the script:
    appclient -client ConverterAppClient.jarit works as expected. I am obviously missing something in my Eclipse runtime environment, but the manual was of no help so far. (But j2ee.jar library from C:\Sun\AppServer\lib is in the classpath.)
    If anyone successfully connected to the Sun App Server 8 EJB from a stand-alone client and can share their wisdom, I will appreciate it.
    On a more general note, what are the pitfalls to watch for when writing, packaging and distributing an EJB app (bean and stand-alone client) in a server-independent way? Any pointers?
    Thanks for any help.
    Alex.

    Did you have the EJB client JAR in your classpath? Yes, and I spent all day searching the Forums for the clues. I found the answer, and was going to post it here. The client JAR was missing the RMI stubs. The process of generating the stubs is quite cumbersome - at least, the one that I discovered. It involves deploying the EAR first, then going to the Admin Console and manually setting a number of options, then collecting the sought-for JAR from the Sun App Server's applications directory. The generated file will contain the stubs, and also the Home and Remote interface files, as well as the bean class (something that the client will never need). So, I may have to write a script to strip off the needless baggage from the client JAR.
    I have been working with JBoss and its plugin for Eclipse for some time now, and grew spoiled by the ease of deployment there, including the fact that the JBoss/Eclipse combo took care of the RMI stubs and many other things that Sun's server exposes to the developer.
    Anyway, here is my cookbook that I made as I was working through the process of generating the stubs:
    ====================================
    Creating a stand-alone Client:
    The stand-alone client need RMI stubs to communicate with the EJ bean on the server side. To create the stubs:
    1. Start the Admin Console web page (Start > All Programs > Sun Microsystems > Application Server PE > Admin Console). In the left-hand frame select: Applications > Enterprise Applications.
    2 In the right-hand frame, press Deploy button.
    3 Select file to upoad (navigate to the application EAR). Press Next.
    4. Set Application Name field (it should be preset), and check the Generate: RMIStubs checkbox. If this procedure was done before, check the Redeploy box to force generation of the file.
    5. Press OK button.
    The JAR file with stubs will be placed into C:\Sun\AppServer\domains\domain1\applications\j2ee-apps directory.
    The stubs have format _name_Stub.class and _nameHome_Stub.class (e.g. for Converter app the files are ConverterStub.class and ConverterHomeStub.class). These files must be extracted and placed into the client's classpath. Alternatively, the entire JAR file can be made part of the client's classpath.
    ====================================
    Thank you for the quick reply.
    Alex.

  • Problem Deploying Examples

    Hello everybody.
    I'm having a strange problem when trying to deploy the examples described in the J2EE-Developers guide (e.g. the Converter example).
    It requires me to check "Return Client.jar" which I did and I specified the location for the file.
    The rest all works fine, but then I get the message:
    "There was a deployment error.java.io.FileNotFoundException: http://10.100.100.7:9191/ConverterAppClient.jar"
    On a different machine, using the same procedure as I did on mine, it works without any problems.
    Does anyone have any idea what this is about?
    THX in advance

    Hi again...
    I now kinda fixed the problem, by completely reinstalling the J2EE SDK. I had it installed in a folder like C:\Program Files\Java\j2eesdk13, and there it didn't work. Now it's installed in C:\j2ee and it works. I don't know, if that's the real reason (maybe folder names with spaces), but it works for me.
    But I'm havong another problem:
    When trying to run the examples from the developers guide with the J2EE SDK1.3, they don't work. I get some Corba NO_PERMISSION Error. Any ideas???

  • Runclient problem

    After runclient -client ConverterApp.ear -name ConverterClient -textauth
    I got: Binding name: 'java:com/env/ejb/SimpleConverter'
    Application threw an exception: java.lang.NoClassDefFoundError: ConverterHome
    I am using redhat linux8.0, J2ee1.3, jdk1.3.1_06, ant1.5.1
    Can anyone help me sort out this problem?
    Thanks

    How to set the APPCPATH?
    Have you set the APPCPATH environment variable to
    "ConverterAppClient.jar" ?
    Your error would suggest that you've skipped this
    step.
    HTH, Ben

  • Deployment Problem (FileNotFoundException)

    Hi
    I use J2ee 1.2.1 & j2ee document 1.2.1 & Windows200
    I use java examples "examples\Converter"
    I can compile all class file and make new application
    and EJB
    But I can't deployment the Application when deployment
    process.
    It use messagebox tell me below:
    There was a deployment error.java.io.FileNotFoundException:http://<my IP>/ConverterAppClient.jar
    I found the ConverterAppClient.jar file at this path "
    c:\j2ee\reposition\<my computer name>\applications\"
    I want know
    1. how do I name the Clent jar file when Deployment?
    2. What funtion is reposition folder ?
    Thanks a lot
    David

    Is your CLASSPATH variable (in your autoexec.bat script) pointing to the correct location?
    Hi
    I use J2ee 1.2.1 & j2ee document 1.2.1 & Windows200
    I use java examples "examples\Converter"
    I can compile all class file and make new application
    and EJB
    But I can't deployment the Application when
    deployment
    process.
    It use messagebox tell me below:
    There was a deployment
    error.java.io.FileNotFoundException:http://<my
    IP>/ConverterAppClient.jar
    I found the ConverterAppClient.jar file at this path
    c:\j2ee\reposition\<my computer name>\applications\"
    I want know
    1. how do I name the Clent jar file when Deployment?
    2. What funtion is reposition folder ?
    Thanks a lot
    David

  • Deployment Problem(NotFoundException)

    Hi
    I use J2ee 1.2.1 & j2ee document 1.2.1 & Windows200
    I use java examples "examples\Converter"
    I can compile all class file and make new application
    and EJB
    But I can't deployment the Application when deployment
    process.
    It use messagebox tell me below:
    There was a deployment error.java.io.FileNotFoundException:http://<my IP>/ConverterAppClient.jar
    I found the ConverterAppClient.jar file at this path "
    c:\j2ee\reposition\<my computer name>\applications\"
    I want know
    1. how do I name the Clent jar file when Deployment?
    2. What funtion is reposition folder ?
    Thanks a lot
    David

    This does not appear to be a question about the Javadoc tool.
    This forum is for questions about the Javadoc tool. You would be more
    likely to receive an answer if you submitted it to the "J2EE JDK" forum.
    -Doug Kramer
    Javadoc team

  • Running j2ee

    Hi I have a question regarding how to run the j2ee. I tried to compile the example like the converter example. I did according to the tutorial but am having problems running it. Tried runclient -client ConverterApp.ear -name ConverterClient -textauth
    Yes I do have the ConverterApp.ear and ConverterAppClient.jar files.
    Can someone help. They mentioned setting appcpath, but the compiler gives me a syntax error:
    usage : blah blah blah...
    Also I am typing this on my c:\j2eetutorial\examples\ejb\src\converter directory

    Hi Amit,
    I had similar problems. But I managed to solve them. Make sure that you have changed the Client Authentication to "Support Client Choice" instead of "Password" in the Deployment setting in the Security Tab of your ConverterBean.
    Then restart your EJB Server and redeploy your Application. Also make sure your APPCPATH setting is set. Don't use the -textauth option.
    Also make sure that the runclient.bat file's last line is modified to :
    rem @echo on
    %JAVACMD% %VMARGS% -Djms.home=%JMS_HOME% -Djms.properties=%J2EE_HOME%\config\jms_client.properties -Djava.security.policy==%J2EE_HOME%\lib\security\client.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH%;%APPCPATH% com.sun.enterprise.appclient.Main %1 %2 %3 %4 %5
    Note the Parameters %1 to %5 that have been mentioned. These are the parameters that you give to the runclient program...
    I hope that helps.
    Regards,
    Linda.

  • My problem in deploy(j2ee tutorial,chapter 19)

    d:\ConverterAppClient.jar is not return
    deploy message is:
    distribute: D:\ConverterApp.ear
    Deploy action running...
    Completed
    --- Operation Completed Successfully ---
    start: ConverterApp
    Running...
    Completed
    --- Operation Completed Successfully ---
    com.sun.enterprise.admin.common.exception.AFException: D:\ConverterAppClient.jar     at com.sun.enterprise.deployapi.SunTarget.exportClientStubs(SunTarget.java:181)     at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform.writeAppClientStubs(DeploymentPlatform.java:1024)     at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform._deploy(DeploymentPlatform.java:1240)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> Unable to create client stub jarfile: com.sun.enterprise.admin.common.exception.AFException: D:\ConverterAppClient.jar
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:324)     at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:371)     at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:393)     at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform$DeploymentProcess.run(DeploymentPlatform.java:1705)     at com.sun.enterprise.tools.deployment.ui.utils.ExecProcess$ThreadProcess.run(ExecProcess.java:585)     at java.lang.Thread.run(Thread.java:534)
    [Completed (time=28.0sec, status=0)]
    I am a beginner.And my English is very poor ! Could you help me?Thanks!!!

    when specifying the the path for returning the client jar, dont give the jar file name.
    just give "d:\"
    Try it out!!!!!!!!
    Thanks............

  • Trouble with deploying a standlone Java app/client that calls an EJB

    Hey guys,
    I am well aware that there are many topics that are quite similar to this topic that I am posting but the fact of the matter is I have failed to procure a satisfactory answer.
    So a bit of background about the environment I am using. I am using Netbeans 5.5 development build, today's version, JDK 6 Build 77, and Sun Application Server 8.2 to create, run and learn J2EE 1.4 based apps following the Sun J2EE 1.4 tutorial pdf and the Netbeans 4.1 tutorial pdf which I realize is a bit outdated but it gets the job done for the most part.
    I have satisfactorily created and built the Converter application as described in the above mentioned tutorial pdfs. For memory refreshment purposes, it is the simple session bean example where it is stateless and remote and has 2 business methods:
    dollarToYen(BigDecimal dollar)
    yenToEuro(BigDecimal yen)So I have this EJB being called, for learning purposes, by both a JSP and a Servlet as well as a standalone Java client. Now since the development machine is where I am deploying and running the enterprise application, everything works without a hitch. Once I have the Application server up and running I am able to access and execute the EJB's methods through JSP and Servlet even from remote machines on my home LAN. I realize that since the JSP and Servlet are in the same application context as that of the EJB I am not requiring the client jar which is where my confusion starts coming in. I know I need the client jar when I try to run the standalone java client from a different machine because it simply cannot access the EJB I have written.
    Now I found this link below and I read it and sorta understand it. I also found that under C:\AppServer\domains\domain1\applications\j2eeapps\ConverterApp I see a file called ConverterAppClient.jar. Is this the so called client jar? If so how do I go about using it?
    Before I end my rather long post, let me detail the steps I used to create the standlone Java client. I selected java application in the new menu of Netbeans and gave it the name ConverterClient and the IDE then proceeded to create a main class for me with a main method where I stuck in the following code:
    try
                Context c = new InitialContext();
                Object remote = c.lookup("ejb/ConverterBean");
                ConverterRemoteHome rv = (ConverterRemoteHome) PortableRemoteObject.narrow(remote, ConverterRemoteHome.class);
                ConverterRemote converter = rv.create();
                BigDecimal param = new BigDecimal(100);
                System.out.println(param + " Dollars are  " + converter.dollarToYen(param) + " Yen.");
                System.out.println(param + " Yen are " + converter.yenToEuro(param) + " Euro.");
            catch (RemoteException ex)
                ex.printStackTrace();
            catch (ClassCastException ex)
                ex.printStackTrace();
            catch (NamingException ex)
                ex.printStackTrace();
            catch (CreateException ex)
                ex.printStackTrace();
        }and that code works when I call it from the same machine that the Application Server is running with the EJB deployed. I also added in the classpath of the client application, the j2ee.jar and the other appserv-rt.jar as well. Have I missed anything?
    I even tried using the deploytool but to no avail as all it generated for me was the same jar file that I found underneath the Application server application directory as I mentioned earlier.
    If anyone is willing to help me, I will upload my Netbeans project files and all you have to do is open it through Netbeans 5.5 to recreate the exact scenario I am talking about.
    Thanks in advance. I apologize for the rather long post but I thought it would be best to provide as much details as was possible.
    Cheers,
    Surya

    hI,
    Pls, I'm happy to know u r using application server. I have just started reading enterprise bean.
    But I could not set the path and some other configurations for it to start working.
    Pls, I would be most grateful, if u could put me through on how to configure application server.
    Right now, I'm in the state of dilemma due to the insufficient knowledge in it.
    My email is [email protected]
    Remain blessed

  • What this exception mean?

    I depeloped a EJB componment, named "ConverterApp".
    I have successful deployed it. But When I use a client application to test this EJB compoment, It generated this exception: "java.lang.ClassCastException: com.sun.corba.ee.internal.iiop.CDRInputStream$1
    at ClientTest.main(ClientTest.java:14)".
    I hava add ConverterAppClient.jar and j2ee.jar to CLASSPATH.
    Who can tell me the possible reason? Thanks!!!

    I hava add ConverterAppClient.jar and j2ee.jar to
    CLASSPATH.it's not a problem of finding the class, it's a cast exception. you're casting an object into non suitable class.
    for instance :
    Socket s;
    String str = ( String ) s;
    will throw a ClassCastException because s is not of String class but Socket class..
    this example is silly, but it is rughly what happens in your code.
    raphaele

  • Installation of IPC AP 7.0 Jar is getting Failed when uploading in CRM

    Hello Experts,
    we did some changes in the previosly uploded version of IPC AP 7.0  customer user exit Jar file in eclipse.
    While uploading the new modified jar through transaction /SAPCND/UE_DEV in CRM we are getting error :" installation of module <Jar file name > has failed ".
    when we checked the logs in SM 53 we seen the below mentioned error:
    Message: Exception of type com.sap.sql.log.OpenSQLException caught: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permit ted)" is not supported
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permitted)" is not supported
    --> com.sap.sql.log.OpenSQLException: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is n" is not suppor ted
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is not permitted)" is not supported
    at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Lcom/sap/sql/log/OpenSQLException;(Syslog.java:85)
    at 
    if  required i can post the complete stack trace.
    any inputs/suggestions are most welcome.
    Thanks & regards,
    Siddharth

    Hi Mark,
    Yesterday after Posting the thread we found the same Note ,Issue occured because of  JAVA write access was not enabled on the table ,After enabling it as mentioned in SAP Note, Jar file get successfully uploaded.
    Thanks for your Help also.
    Regards,
    Siddharth

  • Application working under NetBeans but not as a *.jar file

    Hello,
    recently I found a little problem. I wrote application that shows all available ports in my computer. When I am running this applications under NetBeans it works with no problem - finds all available ports. Then I am building it to the *.jar file. Application is working with no problem but command:
    Enumeration PortIds = CommPortIdentifier.getPortIdentifiers();
    is not returning any identifiers - PortIds is empty.
    Anyone knows a solution for this type of problems? Thanks

    Hi Venkatesh,
    Few questions.
    1. What is your JDeveloper version? (Always better to post your JDev version along with the question, which would help us to help you better).
    2. Did you try adding webserviceclient.jar to the classpath? (Search in your JDev installation directory for the location of this jar file).
    -Arun

Maybe you are looking for