How to run the client program in weblogic 8.1 server

Hi
I am new to EJB 2.0. I am deployed sucessfully a session ejb program.
While running an ejb client program it throws an exception. In my session ejb program i created two jar file. one is sessionejb.jar and another one is sessionejbclient.jar. In sessionejb.jar contains home ,remote ,session bean class and deployment descriptor.In sessionejbclient.jar contains home,remote and client program. Both jar files are included in class path of environment variable( i am using Standalone server).
Plese guide me how to run an session ejb client correctly.
Regards
Jaiganesh

Both jar files are
included in class path of environment variable( i am
using Standalone server).did u include both these jars in the "weblogic's class path" ?
in that case, it obviously wont work.
what u need is an understanding of the following topics (i have described them briefly, but for details u can always check the documentation of weblogic):
1. Class loaders in weblogic: there are various levels of class loaders. at the top is the weblogic's class loader. below it are various EARs' class-loaders. and so on....
2. Packaging. You must ensure that in the same class loader, there are not two classes from 2 different jars.
hope that helps

Similar Messages

  • How to run a client program in Session bean using weblogic 8.1

    Hi
    I am new to weblogic server 8.1. I sucessfully deployed session ejb Session Bean. I created sessionbean jar file and put it it classpath also.
    and also i created sessiobeanclient jar file, it included in class path.
    While running client program it throws exception like noclass def found exception
    plz tell me the right way to run the session ejb program.
    bye

    Hi,
    You have to follow the given steps before you are going to run the client program that invokes the session bean .
    1)set the Weblogic Environment using the tool setWLSEnv
    2)place the Session bean jar file in classpath
    3)run the client program
    Note:If the client has to execute on remote machine we need to copy client class,remote interface, home interface and other classes which are used as
    parameters and return types.
    Regards
    Anilkumar kari

  • 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

  • How to run the Servlet program?

    hi, all, I am new to servlet, and I want to know how to run the servlet program. I got the TomCat and Java JDK install in my computer, something else I need for create and run the servlet program?

    no that is all u need to run servlets. u can try few of the servlets that come with tomcat

  • How to run the package programs in eclipse ?

    hi all,
    how to run the package programs in eclipse ?
    plz clarify...
    regards
    balakrishna.m

    package source code is
    package package1;
    public class ClassaA
              public void displayA()
                   System.out.println("class A");
         }java source code is import package1.ClassA;
         class Packagetest1
              public static void main(String args[])
                   ClassA objectA = new ClassA();
                   objectA.displayA();
         }if i write the notepad means its executing successfully..
    but in eclips is not working..
    plz help me..

  • How to run the simple jsp on oracle 9ias application server?

    hi,
    how to run the simple jsp application jst disply the date on oracle 9ias application server?
    can any expline the steps how to do it?
    thanks
    pullareddy

    No, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
    I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often.

  • Not able to run the client program

    I have written a simple example to print a string using EJB on weblogic 6.0
    I have written a simple RMI client program .
    when i run that program it is throwing an remote exception saying that connection refused to host..
    pls help me
    redgs
    aaag555

    Have you set the jndi.properties right?
    You'll need to specify username and password correctly....

  • How to run the client from server

    HI FRIENDS,
    I HAVE A SMALL PROBLEM WITH MY PROGRAM.I WANTED TO START THE CLIENT FROM SERVER I.E THE CLIENT SHOULD BE EXECUTED AS SOON AS THE SERVER STARTS EXECUTION.SOME OF THEM SAID THAT THIS CAN BE DONE BY USING 'EXEC' COMMAND.BUT I COULDNT.SO PLEASE ANYONE HELP ME IN DOING THIS.
    BYE
    KP

    HI FRIENDS,
    I HAVE A SMALL PROBLEM WITH MY
    MALL PROBLEM WITH MY PROGRAM.I WANTED TO START THE
    CLIENT FROM SERVER I.E THE CLIENT SHOULD BE EXECUTEDCan't be done, unless the server and the client are on the same machine, or you have some other COM object or service set up to allow someone to do this remotely

  • How to run the jsp programs

    hi how to develop the html and jsp 's using eclipse IDE what are the steps to follow inorder to develop and run the jsp's using Eclipse IDE

    Eclipse cannot do that. You need an application server for that. Best what you can do is to integrate that application server in Eclipse using a plugin and run the application server from within Eclipse. There are lot of tutorials available about that. You can find them at www.eclipse.org and wiki.eclipse.org.

  • How to run the java program from another directory?

    Hi
    Assumption:
    data.java is in a package suncertify.db and place in a directory c:/code/suncertify/db/ directory
    data.class file: is in c:/code/suncertify/db/ directory
    current directory: c:/
    How can execute the data.class directly in c:/ directory without changing directory to c:/code/ ?
    Thanks in advance,
    Adrian

    Yes. You can use the -classpath and -sourcepath options to specify where to look for source files, and the -d option to specify where to generate the class files. Look up the usage of those options in the javac documentation:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html

  • How to access the client PCs via RDP FROM Windows Server 2003

    Hopefully this is not an ignorant question, but every thread I've read focuses on client PCs not being able to access the terminal server. I have the opposite problem. I am working remotely and have full access to the servers (some of which are virtuals).
    I need to be able to connect to the various workstations, but I cannot.  Is this just a setting I have misconfigured?  Is there any software I can deploy to these PCs that will allow me to log in and update their workstations?
    Any help is sincerely appreciated.
    - Jeff

    Hi Jeff,
    Thank you for your posting in Windows Server Forum.
    You can able to take RDP for client system from server. But keep in mind that; client system can only allow 1 RDP session at a time for administrator purpose. For that you need to have permission for taking rdp session. 
    Also you need to verify that “Remote Desktop Service” service is running and also need to verify the below thread as per snap.
    In addition, if you want to manage all the server and client system, then you can use Remote Desktop Connection Manager to manage all the client and server remotely.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • How to change the port no in weblogic 10.3 server.

    Hi,
    Could you please tell me the steps,how to change my bea10.3 port no from 7001 to 7002?
    Thanks Advance.

    Hi,
    Please refer to : http://weblogic-wonders.com/weblogic/2010/02/25/changing-adminserver-port-using-jmx/ (Using JMX)
    http://forums.oracle.com/forums/thread.jspa?threadID=1037611&tstart=0 (Using WLST)
    Simplest option ...your can change it from AdminConsole as well.....
    Login to AdminConsole--->Server--><YourServer_name>--->Cionfiguration(Tab)--->ListenPort (Change it)
    Thanks
    Jay SenSharma

  • No name found Exception when running entity client program?

    Hi
    I am deployed an bean managed Entity bean successfully. And also i created one table in SQL . I am usung weblogic server 8.1 . while running Bean managed entity bean client program it throws no name found exception.please guide me how to run a entity client program. i configured JDBC driver for SQL successfully.
    Regards
    Priya.M

    Hi Priya,
    Before running the ejb client we need to follow the steps as given below.
    1)set the weblogic environment using the setWLSEnv
    2)set the classpath for ejb(home,remote and bean).
    3)run the client program
    Note:To set the classpath for the ejb(suppose if we placed the ejb's in ejb folder)
    set classpath=d:\ejb;.; %classpath%
    Regards
    Anilkumar kari

  • How to run application client of an EJB application?

    Hi,
    My EJB application is deployed on websphere. I have written a small java client program to interact with an EJB which is working fine if I compile and run it in websphere studio environment.
    However I am getting runtime exception when I tried to run it at command line.
    RemoteConn.java
    import java.util.Hashtable;
    import com.deque.HelloJavaHome;
    import com.deque.HelloJava;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.ejb.EJBHome;
    import javax.ejb.EJBObject;
    public class RemoteConn {
    public static void main(String[] ar) throws Exception{
    String name="Paruchuri!!";
    String greeting = "";
    try{
    Hashtable env = new Hashtable();
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
    InitialContext initContext = new InitialContext(env);
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
    HelloJava remote = home.create();
    greeting = remote.getGreeting(name);
    catch(Exception e){
    e.printStackTrace();
    System.out.println("Greeting::"+ greeting);
    I have set the application ejb client jar in the class path of client program.
    The exception I am getting at runtime is
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
    at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
    at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
    at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
    at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at RemoteConn.main(RemoteConn.java:38)
    Initially I thought I shuold set some jar file of websphere in the classpath of client. But I did not find such a jar containing the above class in websphere studio.
    Basically the error is generated at the below statement at runtime.
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    The only difference I discovered was that the client application has a descriptor file (application-client.xml ) available to it when it ran in websphere studio,. I guess the same META-INF should be provided to client when it runs at command line.
    Right now I am not using any client descriptor file to run the client program. If the above error is due to not supplying META-INF to the client application, how should I make this folder available to client at runtime?
    I greatly appreciate if I could get help ASAP.
    Thanks

    Hey got what is going on. In order to invoke EJB, deployed on WebSpehre App Server, from application client we need to install either WebSphere Application Pluggable Client or WebSphere Thin client on the workstation. Pluggable client is a wrapper to SUN JRE where as Thin Client uses IBM JRE.

  • 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

Maybe you are looking for

  • How can I get access to all the disk capacity?

    I want to use all the disk capacity of SCSI target disks. When I call prtvtoc for these disks, it written something like this: cylinders number is N, available cylinders number is N-2, so Solaris takes 2 cylinders from each disk. Is there any way to

  • UWL displaying workflow NOT defined in the XML

    Can someone tell me why/how some workflows are displaying in UWL even though the workflows are not defined in the XML file?

  • Music app always on top in ipad

    How do I keep music app always on top in ipad

  • BAM and ORACLE_HOME environment

    Hi all, while trying to install BAM i get always that the ORACLE_HOME environment could not set to my computer and after that the installation aborts with check errors!!! ORACLE_HOME is set on my computer to my ORACLE DB 10g!!! What should I do to re

  • Texteditor - get_text_as_r3table only copies the first line into the itab.

    Hi Folks. I have a Texteditor from which i want to copie the entered text into an itab. i defined my itab like this: DATA: BEGIN OF txt_tab OCCURS 0, line(250) , END OF txt_tab. but now if someone writes into the Texteditor: Blablablabla, blabla bleb