Jdk 1.2 clients running ejb deployed on oracle 8.1.5

Oracle claims that it is possible to run jdk 1.2 clients with ejb on oracle 8.1.5 in the faq : http://technet.oracle.com/products/oracle8i/htdocs/jserver_faq/815faq0012.html
If you have JDK1.2 on the client side and:
8.1.5 clients connecting to an 8.1.5 server: This does not work, because of conflicts with the ORB supplied in JDK1.2.
8.1.5 clients connecting to an 8.1.6 server: This does not work, because of conflicts with the ORB supplied in JDK1.2.
8.1.6 clients connecting to an 8.1.5 server: This works provided the "server" portion of the application is developed/loaded using the client side tools and jars that are supplied with 8.1.5.
What do they meen with 8.1.6 clients? and how to make 8.1.6 clients?

Oracle 8.1.6's JVM uses JDK 1.2. Oracle's 8.1.6 JDBC drivers support JDBC2 and JDK2. The 8.1.6 drivers are available for download from OTN under the Technologies section.
If you develop a client (application, applet, servlet, JSP, etc.) using the Oracle 8.1.6 JDBC drivers, then this is considered an Oracle 8.1.6 client.
Laura

Similar Messages

  • Problem running Java client of EJB deployed on WebSphere

    Hi,
    I am using websphere studio 5.1.2 with fix pack 3. I have a sample Stateless Session Bean (EJB) deployed and running on websphere.
    I wrote a small Java client program as below.
    import java.util.Hashtable;
    import HelloJavaHome;
    import 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 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.ejs.ns.jndi.CNInitialContextFactory");
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
    //env.put(Context.PROVIDER_URL, "corbaloc:iiop:myhost.mycompany.com:2809/NameServiceCellPersistentRoot");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
    System.out.println("Before creating context ");
    InitialContext initContext = new InitialContext(env);
    System.out.println("Before looking up HelloJavaHome.");
    //Object obj = initContext.lookup("java:comp/env/ejb/HelloJavaHome");
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    System.out.println("After lookup javahome.");
    HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
    HelloJava remote = home.create();
    greeting = remote.getGreeting("John");
    catch(Exception e){
    e.printStackTrace();
    System.out.println("Greeting::"+ greeting);
    I did not have any problem if I write and run this client from Websphere studio environment..
    However its giving lot of compilation and runtime errors when I tried to run from command line.
    I could eliminated compilation errors by setting the below jar files in the classpath.
    testclient.jar; (client jar of my EJB)
    j2ee.jar;
    naming.jar;ras.jar;
    wsexception.jar;
    bootstrap.jar;
    namingclient.jar;
    websphere.jar;server.jar;
    ejbcontainer.jar;
    ecutils.jar;
    Now it is throwing runtime error after the statement, "Before looking up HelloJavaHome.", has printed. Here is the stack trace of exception ..
    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 RemoteEJBConn.main(RemoteEJBConn.java:38)
    I appreciate if sombody could help me ASAP fixing this problem.
    Thanks in advance.

    Try using the IBM JVM (theres one shipped with WebSphere in websphere_home\AppServer\java
    Also include idl.jar and ffdc.jar on the classpath

  • Memory leak in a client using EJBs deployed in a Bea Weblogic 10.0.0 cluste

    Hi all,
    We are having a memory leak in a client using stateless EJBs deployed in cluster. The client is a Tomcat 6.0.18 with java 6 but it is reproduced using Tomcat 5 with java 5. The client is calling a Weblogic Server 10.0 making
    calls to an EJB deployed in cluster that has two instances installed in two different machines.
    The client works fine if we shutdown one of the server instances and so when the client is using only one instance.
    Resuming the environment:
    Client Side:
    1 HP-Itanium machine with HP-UX.
    1 Tomcat 6 with java 6 (reproduced with java 5)
    Bea Weblogic client (wlclient.jar) for Weblogic 10.0.0
    Server Side:
    2 HP-Itanium machines with HP-UX
    Bea Weblogic Server 10.0.0 installed in both machines
    An unique domain
    Two Bea instances (one per machines) associated to a Bea Cluster
    EJBs deployed in both instances
    We have monitored the memory consumed in Tomcat and we have noticed that the VM memory PS OLD GEN grows up permanently when we make tests having the two server side Bea Instances up. We have extended
    the memory VM parameters in Tomcat client till 1G and it's only a way to delay the end: the free memory is empty, the GC is not able to free no more byte and the CPU is 100% consumed by the GC work. At the end Tomcat Client
    doesn't accept more http petitions and must be restarted.
    Besides, we have studied the VM memory in Tomcat using jmap and importing it using Eclipse Memory Analyzer. We have seen some strange memory blocks of several Mbytes that are always growing up and that are stored
    under data structures in the package com.sun.corba:
    com.sun.corba.se.impl.legacy.connection.SocketFactoryConnectionImpl (4.5Mb)
    |
    -> com.sun.corba.se.impl.transport.CorbaResponseWaitingRoomImpl
    |
    -> java.util.Hashtable
    |
    -> java.util.Hashtable$Entry
    |
    -> java.util.Hashtable$Entry
    -> java.util.Hashtable$Entry
    -> java.util.Hashtable$Entry
    Has anybody any idea about this problem?
    Thanks in advance.

    Hi all,
    We are having a memory leak in a client using stateless EJBs deployed in cluster. The client is a Tomcat 6.0.18 with java 6 but it is reproduced using Tomcat 5 with java 5. The client is calling a Weblogic Server 10.0 making
    calls to an EJB deployed in cluster that has two instances installed in two different machines.
    The client works fine if we shutdown one of the server instances and so when the client is using only one instance.
    Resuming the environment:
    Client Side:
    1 HP-Itanium machine with HP-UX.
    1 Tomcat 6 with java 6 (reproduced with java 5)
    Bea Weblogic client (wlclient.jar) for Weblogic 10.0.0
    Server Side:
    2 HP-Itanium machines with HP-UX
    Bea Weblogic Server 10.0.0 installed in both machines
    An unique domain
    Two Bea instances (one per machines) associated to a Bea Cluster
    EJBs deployed in both instances
    We have monitored the memory consumed in Tomcat and we have noticed that the VM memory PS OLD GEN grows up permanently when we make tests having the two server side Bea Instances up. We have extended
    the memory VM parameters in Tomcat client till 1G and it's only a way to delay the end: the free memory is empty, the GC is not able to free no more byte and the CPU is 100% consumed by the GC work. At the end Tomcat Client
    doesn't accept more http petitions and must be restarted.
    Besides, we have studied the VM memory in Tomcat using jmap and importing it using Eclipse Memory Analyzer. We have seen some strange memory blocks of several Mbytes that are always growing up and that are stored
    under data structures in the package com.sun.corba:
    com.sun.corba.se.impl.legacy.connection.SocketFactoryConnectionImpl (4.5Mb)
    |
    -> com.sun.corba.se.impl.transport.CorbaResponseWaitingRoomImpl
    |
    -> java.util.Hashtable
    |
    -> java.util.Hashtable$Entry
    |
    -> java.util.Hashtable$Entry
    -> java.util.Hashtable$Entry
    -> java.util.Hashtable$Entry
    Has anybody any idea about this problem?
    Thanks in advance.

  • Ejb deployment in Oracle 8i

    deployejb -user scott -password tiger -service sess_iiop://tossserver:1521:orcl -descriptor HelloBeanDescriptor.txt -temp /ejb/HelloEJB \-generated HelloClient.jar myBean.jar
    Exception in thread "main" java.lang.ClassCastException: com.sun.corba.se.intern
    al.iiop.ORB
    at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24)
    at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:7
    8)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.jav
    a:499)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java
    :130)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolI
    mpl.java:101)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.j
    ava:213)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
    1)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)

    Unfortunately, I don't believe this is an appropriate forum to address this question to. The ODBC protocol has nothing to do with Java or EJB.
    Justin

  • Problem while running ejb application in Oracle Application Server

    I have created sample ejb application in jdeveloper with ejb 3.1 version,
    i also created jsp page which will invoke ejb client and display result,
    its running perfectly in embeded oc4j server, but while deploying application in
    Oracle application server its is giving below error message
    Javax naming exception: unable to find remote interface., i am confusing please give me sollution .

    Hi Mr.Frank,
    i have created remote interface by importing javax.ejb.Remote,
    my interface name is additionEjb
    and i defined a sample method and in my client i called like below
    additionEjb AdditionEjb = (additionEjb)context.lookup("additionEjb");
    In embeded oc4j server its running perfectly but after deploying to OAS below error throwing
    The exception is : javax.naming.NameNotFoundException: additionEjb not found
    Help me regrding this.

  • Entity EJB deployment on Oracle through JDeveloper 3.2

    I have a project which is using Oracle 9iAS as the for the web server. There were intial plans to use the 8i database within the 9iAS machine as the place where the EJBs would be stored. There was a comment from the Oracle support people that the EJBs would be better off stored on the backend. We are trying to do the same.
    We have experienced mainly two problems
    1) While trying to deploy the container managed beans through JDeveloper, just after creating the deployment profile, an error ORA - 00904 comes up. (no columns). Then there is a prompt to install BC4J. On doing that the error comes up again and while it goes further, it says 'Exhausted ResultSet'. But the BMP entity beans are working OK.
    2) We had a bug report from the Oracle people on entity bean support through JDeveloper on non-NT machines. But we have been trying to deploy beans on the Solaris DB using JDeveloper and we keep getting 'peer socket disconnected errors'. I'll try the workaround which was suggestesd by the Oracle people to solve the problem and get back on this.
    I don't know how Oracle will measure up to the performance when EJBs are running. But the problems mentioned above would have to be solved first.
    Can anyone help out?
    Thanks in advance.
    Aby Philip

    I can't resist a comment here. Oracle folks seem to always recommend putting the EJBs in back-end database. How many real-world enterprise-scale applications (i.e., one's that would need EJBs at all) have a non-shared back-end database? And in those cases, who in their right mind would accept running application code in the back-end database? I guess Oracle just hasn't really bought in to the concept of multi-tiered applications. The whole reason for separating the business logic tier from the EIS tier is to insulate the EIS services from the demands of the business logic code.
    So from that perspective, I would highly recommend running an 8.1.7 instance in your middle tier to house your EJBs. Then you can hook up to your EIS tier either with database links, or (for better performance) by caching data in the EJB database from the EIS tier.
    As for your specific issues, I can't help with the first. On issue 2, I am installing the 8.1.7.1 patch set today and I'll let you know if it fixes the JDeveloper --> Solaris deployment problem.
    John H.

  • Corba Client For EJB

    Hello
    I am trying to connect Corba Client to EJB deployed in OC4J.
    I followed the instructions given on
    http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-rmi-iiop.html
    But I am not getting success after making tries in different ways.
    Can some body tell how to connect to EJB by a corba client using Oc4j.
    If OC4J does't support RMI-IIOP , can you suggest other server which supports that.
    Thanx in advance.

    I'm stuck exactly with the same issue while trying to port my application from weblogic to jboss.
    I tried to specify different ORB implementations (JacORB, OpenORB) for jvm option org.omg.CORBA.ORBClass, but JBoss couldn't get them instantiated. Native Sun implementation which is used in JBoss by default and can be instantiated, apparently is not fully compatible with weblogic security module.
    So did you manage to find out the solution?
    Edited by DigitalDude at 04/09/2008 11:47 PM

  • The server deploy EJB but I run EJB Client program,The error msg is can't find JNDI

    Hi all:
    I am using Weblogic 6.1/SP2. I use the console to start
    server and deploy EJB jar,from the msg I see my EJB jar
    been deployed. When I run EJB Client program, the error
    msg is can't find JNDI name t3://URL:11003.....
    I check my ejb-jar.xml amd weblogic-ejb-jar.xml are fine.
    Last week I did deploy EJB and ran the client both
    suceessful. Any ideas, Thank you.

    Sabha:
    Thank you for your help info, I soloved the problem.
    The problem is the ejb jar was deleted(I don't why)
    then System Admin to deploy EJB jar from Admin console.
    After that everything is fine.
    "Sabha" <[email protected]> wrote:
    Run weblogic.Admin -url ... LIST to see whether the JNDI name is there
    . or
    you can view the jndi tree of the server from the console (right click
    on
    server name) and check whether the ejb home is bound to the correct jndi
    name.
    -Sabha
    "Matthew Shinn" <[email protected]> wrote in message
    news:[email protected]..
    Hi Albert,
    I would double check to make sure the EJB was indeed deployed (check
    server log). What message did you see that leads you to believe itwas
    successfully deployed? Also, verify the JNDI name you are lookingup in
    your client matches the JNDI name for the EJB. If this doesn't solve
    the problem, please post the error message and stack trace you are
    seeing on the client.
    - Matt
    Albert Pi wrote:
    Hi all:
    I am using Weblogic 6.1/SP2. I use the console to start
    server and deploy EJB jar,from the msg I see my EJB jar
    been deployed. When I run EJB Client program, the error
    msg is can't find JNDI name t3://URL:11003.....
    I check my ejb-jar.xml amd weblogic-ejb-jar.xml are fine.
    Last week I did deploy EJB and ran the client both
    suceessful. Any ideas, Thank you.

  • Error while running EJB Client

    Hi All,
    I have just written a program in EJB for currency conversion. But while running the client , i am getting the following error:
    C:\Java Source Code\EJB>java CalculatorClient
    java.lang.NoSuchMethodError: loadClass0
    at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native
    Method)
    at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoade
    r.java:58)
    at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:18
    0)
    at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:83)
    at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:37
    8)
    at javax.rmi.CORBA.Util.loadClass(Unknown Source)
    at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(Unknown Sour
    ce)
    at javax.rmi.PortableRemoteObject.<clinit>(Unknown Source)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:57)
    etc........
    The files that have been created are in the same folder which are as follows:
    Calculator.java Calculator.class - Remote Interface
    CalculatorHome.java CalculatorHome.class - Home Interface
    CalculatorEJB.java CalculatorEJB.class - EJB class
    ejbClient.jar - Client Jar
    ejb.ear
    The version for J2EE is 1.2.1
    Version for Jdk is 1.4.2
    Operating System - WinXP
    Could somebody pls help?
    Cooljacks

    ... but you did deploy it to an application server, right?

  • 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

  • How to call EJB deployed on websphere from JSP running on Tomcat?

    I am trying to establish communication between two app servers. I have a sample EJB deployed on Websphere and wish to call its business methods from a JSP page which is running on Apache Tomcat server. (ie) Tomcat is client to websphere. Is it possible to do? If so, what are the client Jar files of websphere that I should make available to JSP page on Tomcat? Do I need to set any Jars in Tomcat environment variables? Lood forward for your immediate help. Thanks in advance

    Please see the thread
    http://forum.java.sun.com/thread.jspa?threadID=514536.
    Hope that helps..

  • BC4J EJB deployment ; testing deployment to 8i with client application

    Hi,
    Is there a way to to connect a java client application to a 8i deployed BC4J using the oracle.dacf.dataset.SessionInfo ? Can we do this using the JDev wizards - property inspector ?
    (I've seen in the doc :"Testing a Business Components EJB Deployed to Oracle8i with a Code Client" but the given code
    // setup application module variable
    ApplicationModule appMod = null;
    javax.naming.Context ic = new InitialContext(env);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(DeployedMod);
    appMod = home.create();
    does not contains any SessionInfo object.)
    Thanks,
    Xvc

    Chris,
    Perhaps you should be checking if the user you wish to deploy
    EJBs to has at least JAVAUSERPRIV.
    As SYSTEM
    grant JAVAUSERPRIV to <user>;
    Good luck
    /Mark
    Chris Jones (guest) wrote:
    : Hi,
    : I'm having a problem deploying an EJB to Oracle 8i with
    : JDeveloper 2.0.
    : I am receiving an insufficient privileges error in the
    : deployment process when it reaches the stage Generating EJBHome
    : and EJBObject on the server. I am logging in using the system,
    : sys, scott or internal account and all still receive the same
    : error. What role/privelege do I need to deploy an ejb to 8i?
    : Thanks in advance.
    : Here is a dump of the output JDeveloper produces.
    : *** Invoking the Oracle JDeveloper deployment utility ***
    : Scanning project files...done
    : Generating classpath dependencies...done
    : Generating archive entries table...done
    : Writing archive...done
    : *** Invoking the Oracle8i deployment utility ***
    : Reading Deployment Descriptor...done
    : Verifying Deployment Descriptor...done
    : Gathering users...done
    : Generating Comm Stubs...done
    : Compiling Stubs...done
    : Generating Jar File...done
    : Loading EJB Jar file and Comm Stubs Jar file...done
    : Generating EJBHome and EJBObject on the
    : server...oracle.aurora.server.tools.sess_iiop.ToolsException: A
    : SQL exception occured while compiling:
    : oracle.aurora.ejb.gen.test_MyEJB.EjbObject_MyEJB : ORA-01031:
    : insufficient privileges
    : at oracle.aurora.server.tools.sess_iiop.ToolImpl.error
    : (Compiled Code)
    : at oracle.aurora.ejb.deployment.GenerateEjb.generateBean
    : (Compiled Code)
    : at oracle.aurora.ejb.deployment.GenerateEjb.invoke
    : (Compiled Code)
    : at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke
    : (Compiled Code)
    : at
    : oracle.jdeveloper.wizard.deployment.EJBDeployMonitor.run
    : (Compiled Code)
    : at oracle.jdeveloper.wizard.common.ProgressDialog.run
    : (Compiled Code)
    : at java.lang.Thread.run(Compiled Code)
    null

  • Client of the deployed BC4j to EJB

    Hi!
    I have a problem, i do a deploy from my BC4j from JDev3.1 to Oracle 8.1.6 like a EJB, the problem is that i don4t know what i have to change in my client that was implement local like in the samples, and what jars i have to import in my client.
    Could anyone tell me what i have to do?
    Thanks, in advance.

    Hi Dirk,
    Following the instructions in JDeveloper and the 9iAS Administration Docu I created a .ear file
    from the business components project partYou should now have a 'BC4J Configuration' (let us call 'Mypackage1ModuleOc4j2') with parameters for this iAS instance. You can test the deployment by running BC4J Tester.
    1) How do I configure/create the Client (JClient) project part of the demo to use the BC4J(the EJB) deployed to the OC4J instance in the 9iAS app server ?To create a new JClient project based on the BC4J EJB deployed to this OC4J instance
    1. Create a new 'Data model' and base it on the Configuration, 'Mypackage1ModuleOc4j2'.
    2. Create/Modify your code and set the panel bindings.
    3. Start your OC4J instance if it is not running already.
    4. Run your JClient application. It will connect to the external oc4j extance.
    If you want to configure an existing project to use the BC4J EJB session bean, then
    right click on cpx file, modify the datamodel to use the 'Mypackage1ModuleOc4j2' configuration.
    2) I want to have a 'standalone' JClient application using the BC4J deployed as Appmodule Session Bean(BMT) EJB to OC4J. How do I do this ?You can create a jar file, optionally choosing to include all dependent classes. You would get a single
    jar file which you can invoke from the command line, like
    java -jar <your_jar_file_name>
    HTH,
    Sathish.

  • I unable to run ejb with application client using oc4j j2ee container

    Hi,
    I have installe oracle9i (1.0.2.2) oc4j j2ee container.
    I unable to run the ejbs . please help me how to run ejbs with application client and which files are shall configure.
    See the client application is :
    public static void main (String []args)
    try {
    //Hashtable env = new Hashtable();
    //env.put("java.naming.provider.url", "ormi://localhost/Demo");
    //env.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
    //env.put(Context.SECURITY_PRINCIPAL, "guest");
    //env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //Context ic = new InitialContext (env);
    System.out.println("\nBegin statelesssession DemoClient.\n");
    Context context = new InitialContext();
    Object homeObject = context.lookup("java:comp/env/DemoApplication");
    DemoHome home= (DemoHome)PortableRemoteObject.narrow(homeObject, DemoHome.class);
    System.out.println("Creating Demo\n");
    Demo demo = home.create();
    System.out.println("The result of demoSelect() is.. " +demo.sayHello());
    }catch ( Exception e )
    System.out.println("::::::Error:::::: ");
    e.printStackTrace();
    System.out.println("End DemoClient....\n");
    When I am running client application I got this type of Exception
    java.lang.SecurityException : No such domain/application: sampledemo
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 2040)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 1884)
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java : 1491)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java : 323)
    at com.evermind.server.rmi.RMIContext.lookup(RMIConext.java : 106)
    at com.evermind.server.administration.LazyResourceFinder.lookup(LazyResourceFinder.java : 59)
    at com.evermind.server.administration.LazyResourceFinder.getEJBHome(LazyResourceFinder.java : 26)
    at com.evermind.server.Application.createContext(Application.java: 653)
    at com.evermind.server.ApplicationClientInitialContext.getInitialContext(ApplicationClientInitialContextFactory.java :179 )
    at javax.naming.spi.NamingManager.getInitialContext(NamingManger.java : 246)
    at javax.naming.InitialContext.getDefaultInitialCtx(InitialContext.java : 246)
    at javax.naming.InitialContext.init(InitialContext.java : 222)
    at javax.naming.InitialContext.<init>(InitialContext.java : 178)
    at DemoClient.main(DemoClient.java : 23)
    .ear file is copied into applications directory.
    I have configured server.xml file like this
    <application name="sampledemo" path="../applications/demos.ear" />
    demos.ear file Contains following files
    application.xml
    demobean.jar
    Manifest.mf
    demobean.jar file contains following files
    application-client.xml
    Demo.class
    DemoBean.class
    DemoHome.class
    ejb-jar.xml
    jndi.properties
    Mainifest.mf
    Please give me your valuable suggestions. Which are shall i configure .
    Thanks & Regards,
    Badri

    Hi Badri,
    ApplicationClientInitialContextFactory is for clients which got deployed inside OC4J container..
    For looking up EJB from a stand alone java client please use RMIInitialContextFactory..So please change ur code....
    Also please check ur server.xml
    Since you have specified your ejb domain as "sampledemo"
    you have to use that domian only for look up..But it seems that you are looking up for "Demo" domain instead of "sampledemo" domain...So change your code to reflect that..
    Code snippet for the same is :
    Hashtable env = new Hashtable();
    env.put("java.naming.provider.url", "ormi://localhost/sampledemo");
    env.put("java.naming.factory.initial", "om.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "guest");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    Context ic = new InitialContext (env);
    Hope this helps
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Packaging/deploying a webapp client to already deployed EJBs

    I have a webapp/ejb deployed on WLS 6.1. If it matters, the EJBs are
    deployed in jar files but the webapp component is deployed in exploded
    directory format.
    Now I want to deploy another webapp that uses the same EJBs. At this
    point in development, I am attempting to deploy this in exploded
    directory format as well. I have run ejbc manually against the original
    jars to create the EJB deployable units containing generated WL classes.
    This also created a ejb-client.jar, but it does not contain any impl
    classes for the home or remoted interfaces.
    I tried placing the ejb-client.jar in my WEB-INF/lib but it doesn't seem
    to be able to find the interface classes. Perhaps the exception I'm
    getting does not mean what I think it does. It is included below.
    I also tried adding the generated impl classes to the ejb-client.jar
    manually, but this didn't work either. I have read the
    packaging/deploying docs but don't seem to find this issue addressed
    directly. From all I know, I have done this correctly, but obviously I
    am missing something somewhere.
    Thanks in advance for your consideration.
    <May 10, 2002 1:53:57 PM CDT> <Error> <HTTP>
    <[WebAppServletContext(9605583,adminApp,/adminApp)] Servlet failed with
    Exception
    java.lang.ExceptionInInitializerError
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:42)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:30)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:277)
    at java.lang.Class.newInstance0(Class.java:301)
    at java.lang.Class.newInstance(Class.java:254)
    at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:342)
    at javax.rmi.CORBA.Util.<clinit>(Util.java:54)
    at
    javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
    at
    javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:61)
    at
    net.verizon.storm.util.DataBroker.initialize(DataBroker.java:102)
    at
    net.verizon.storm.util.DataBroker.getInstance(DataBroker.java:158)
    at
    net.verizon.storm.util.OrderDispatcher.<init>(OrderDispatcher.java:70)
    at
    net.verizon.storm.admin.OrderService.startOD(OrderService.java:159)
    at
    net.verizon.storm.admin.OrderService.processRequest(OrderService.java:104)
    at
    net.verizon.storm.admin.OrderService.doPost(OrderService.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Caused by: java.lang.RuntimeException: could not find or instantiate any
    UtilDelegate class
    at
    weblogic.iiop.UtilDelegateImpl.<clinit>(UtilDelegateImpl.java:72)
    ... 24 more

    Hi.
    I tried placing the ejb-client.jar in my WEB-INF/lib but it >>doesn't seem to beable to
    find the interface classes. Perhaps
    the exception I'm getting does not mean what I think it does. >>It is includedbelow.
    It seems fine since it is the way your webapp always to use its EJB client jar.
    I also tried adding the generated impl classes to the ejb-
    client.jar manually, but this didn't work either.Nope, you should never do this since Impl classes are used on Server Side ( webapp
    treated as client of EJB in this case ) only.
    It is so hard for us to analyze the problems without a test case, I would suggest
    you to create a support case via http://support.bea.com/welcome.jsp to BEA support
    for detailed work.
    Thanks.
    Ji Zhang
    Developer Relations Engineer
    BEA Support

Maybe you are looking for

  • Creative Zen Vision M not fully charging

    (Creative Zen Vision M not fully charging( Hi, I recently bought a refurbished ZVM that doesnt seem to charging properly. When I first got it, it hadnt been charged in quite some time so the battery was overdead. My PC couldnt detect it when I connec

  • Photo uploading in flex

    Hi, I am new to flex. I am developing a web application in flex. I want to do the photo uploading functionality in flex and action script3. I have to do that like "Applet photo uploader" Like what we have in facebook photo uploader. Means on left I h

  • Minidisplay port output logging

    Is there a way to monitor output activity of a minidisplay port? Some sort of a logger? thanks.

  • Soundmax XP driver unstable in Windows 7

    I recently upgraded my Pavilion zv5000 (PC742AV) from Win XP Pro to Win 7 Ultimate (32-bit). Everything went fine except that the only audio driver that "works" at all is the one for Win XP, it's version 5.12.1.5170 from 7/8/2004, and downloaded from

  • Network load balancing SQL Server 2012

    Hi all, Out of pure curiosity, would the following scenario to load balance work: * Create an NLB of 2 nodes * On each node, install sql server, in my case 2012 std * Create a merge replication which manages identity columns between the 2 servers. On