Applets to EJB Cluster

Hi,
          Is the following true? If so what is the recommended way to load balance
          EJB calls from applets?
          Since applets (not signed) can only create a connection to the server they
          where downloaded from, I can not call EJBs that reside in a WL cluster.
          These EJBs may reside on a different machine other than the one the applet
          was downloaded from.
          Can I solve this by installing a Web Server on each of the machines in the
          cluster and have the applets stick the one machine? What I do not like
          about this scheme is that I loose the dynamic load balancing features of WL.
          Any help will be appreciated,
          Assaf Pazner
          

               The WLS RJVM scheme supports routing / session concentration of
          request. Thus, using clustered services within the applet security
          model or over a firewall should work fine. The server that the applet
          talks to will route requests to the appropriate server within the
          cluster.
                                        - Mike
          Assaf Pazner wrote:
          >
          > Hi,
          >
          > Is the following true? If so what is the recommended way to load balance
          > EJB calls from applets?
          >
          > Since applets (not signed) can only create a connection to the server they
          > where downloaded from, I can not call EJBs that reside in a WL cluster.
          > These EJBs may reside on a different machine other than the one the applet
          > was downloaded from.
          >
          > Can I solve this by installing a Web Server on each of the machines in the
          > cluster and have the applets stick the one machine? What I do not like
          > about this scheme is that I loose the dynamic load balancing features of WL.
          >
          > Any help will be appreciated,
          > Assaf Pazner
          

Similar Messages

  • Applet calls EJB

    Now I want to use an applet embeded in IE to call an EJB on the server.
    They worked well in JBuilder6.0,and there are:
    test.html
    eb/*.class (the classes of EJB)
    ebaptest/test.class (the class of applet)
    Generated Source/*.class (some class made by JBuilder)
    under the directory %JBuilderworkingdir%/classes.
    But I want to deploy them to weblogic6.1,and how to do that.
    I've tried many methods,and failed.
    After I input "http://localhost:7001/test.html" in the IE,then the message "javax/ejb/EJBHome not found" is displayed.
    pls help me,THX

    Although I've used applets and EJBs together, through servlets, I've not done it directly.
    I suspect that what is happening is that our applet, when deployed outside of the JBuilder environment, cannot find the j2ee.jar, which contains all of the javax.ejb.* classes and interfaces.
    Make sure that this jar file is in your applet's codebase. That should fix it.
    Paul

  • Applets and EJBs

    Hi:
    we have a jDK 1.1.8 version Applet that needs direct access to a EJB 1.1 version ( Direct access i mean: No servlet in Between applet and EJB). The tool we are using to deploy the EJB to the Applicaton Server 3.6 ( Sybase) is PowerJ 3.6.1.
    The Problem is the applet can access the EJB whenever we run the applet through Appletviewer BUT we get an Intial Context Failure error and subsequently everything related with the Bean functionality fails, when applet is run through a browser ( IE version 5.0 / 5.5 / 6.0)
    Note: The applet's webserver and the Application server are on the same machine.
    Can anyone help on this case.
    Thank you.
    Satish

    Hi paul:
    Thanks for your reply.
    For ur question about using Applest.getCodeBase to construct the URL that you are using for your context provider,
    We use the PowerJ tool to add the intial context and home interface of the EJB to the Applet application.
    I am in a way restricted with this tool. The applet has been developed through this tool and the tool doesnot allow any manual changes to the Intial Context code and the Codebase that it generates.
    I was going through many other forums , some say that Microsoft's ( IE / JVM ) doesnot support rmi stuff.
    Do u think i should make sure that the applet has the rmi files in its classpath because when i look at the stacktrace of the applet , it gives
    root execption: java.rmi.naming.* not found and subsequently Initial context fails.

  • Help: applet call ejb in oracle8i

    Hello:
    Can someone tell me how to call ejb in oracle8i from applet?
    thanks a lot!
    tom
    null

    Hi mark tomlinson:
    It does not work(IE and Netscape). Did you run the example
    ejbclubmed?
    tom
    mark tomlinson (guest) wrote:
    : Here is an example snippet:
    : Assuming that the EJB MyEJB has been deployed and the generated
    : server stubs (MyEJB_generated.jar) is referenced to resolve the
    : Home and Bean objects, then:
    : MyEJB myejb_obj;
    : String user = "scott";
    : String password = "tiger"
    : String URL = "sess_iiop://<my8iserver>:2481:ORCL:/test/MyEJB";
    : // Creates the Hashtable to hold the environment variables.
    : Hashtable environment = new Hashtable();
    : // Tells JNDI to speak sess_iiop
    : environment.put(javax.naming.Context.URL_PKG_PREFIXES,
    : "oracle.aurora.jndi");
    : // Tells sess_iiop the userid, password, and credential
    : authentication.environment.put
    (Context.SECURITY_PRINCIPAL,user);
    : environment.put(Context.SECURITY_CREDENTIALS, password);
    : environment.put(Context.SECURITY_AUTHENTICATION,
    : ServiceCtx.NON_SSL_LOGIN);
    : // Creates the initial context.
    : Context ic = new InitialContext(environment);
    : // Gets an implementation of the EJB's home interface from the
    : // inital context.
    : MyEJBHome home = (RentalsEJBHome) ic.lookup(URL);
    : // Tells the home interface to create an instance of the bean
    : myejb_obj = home.create();
    : From there you invoke moethods exposed on the bean object as
    you
    : would any other java object...
    null

  • Client Applet and EJB Server problem

    Hi,
    I developed a applet client that tries to connect to an EJB on the server side. The Applet runs okay in JDev3 but if I deploy it and test it outside the JDev tool I get an error. I tracked the problem to the following line of code:
    ic = new InitialContext(environment);
    Do I run into an applet security problem? If so what do i have to do to allow the applet to read/write to the local system?
    Thanks for any hints!
    Peter
    Error I get
    JAR cache enabled.
    Opening http://pete/gateway/clientmanagement.jar no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\clientmanagement[1].jar
    Creating an initial context
    Opening http://pete/gateway/oracle/oas/container/nls/Version_en_US.class no proxy
    CacheHandler file name: null
    null

    Hi,
    I have still problems getting the client applet running. I tested it with the appletviewer and I modified the security.policy file. I allow the applet to almost everthing but i still get the following error:
    What do I do wrong? Do I really have to sign the jar file? Do I miss some stub classes?
    Thanks for any hints...
    Peter
    JAR cache disabled.
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/test/Client.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client[1].class
    Opening http://pete/Gateway/test/Client$1.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client$1[1].class
    Creating an initial context
    Looking for the EJB published as 'Gateway/GatewayProcessorRemote'
    Opening http://pete:80/_RMProxyURL_ no proxy
    Naming exception!
    [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
    at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(BeanInitialContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(BeanInitialContext.java:165)
    at oracle.oas.jndi.oas.WrapperContext.lookup(WrapperContext.java:78)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:422)
    at javax.naming.InitialContext.lookup(InitialContext.java:288)
    at test.Client.initializeEJB(Client.java:104)
    at test.Client.startButton_actionPerformed(Client.java, Compiled Code)
    at test.Client$1.actionPerformed(Client.java:55)
    at java.awt.Button.processActionEvent(Button.java:308)
    at java.awt.Button.processEvent(Button.java:281)
    at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    null

  • Error when connecting Applet to EJB

    Hi,
    I have an Applet that I try to connect to an EJB, but without success.
    To pinpoint the problem, I took the client-side code of the example ...examples\ejb\basic\BeanManaged
    and made an AWT Applet out of it.
    I seem to trap some error when I call the getInitialContext() when trying to find the Home interface.
    Nothing happens in my code (ie. the Applet) after I enter this part of the code. It is a it hard to say
    where it stops, since I do not get all output. It seems to die when I am trying to instantiate the
    Context-object or the AccountHome object. Maybe I just have a Classpath error.
    When running the BeanManaged as a Java Application, everything is working fine.
    Does anyone have any experience in these matters ?
    I am using WL 5.1.0 (no SP-s), JDK 1.2.2
    Regards, Erik

    Thanks for you answer Jos, but honestly I don't know what I should do then, since I can't get data from database through the applet.
    I have read some articles that we can get data from database through the applet (they use tomcat too). I have followed what the article said, but I still get the error.
    Do you have any idea Jos? Thank you very much for your nice attention
    Warmnest regards,
    Vijay

  • Applets and EJB's

    Can an Applet work like a client for an EJB? How can I do this?
    Thanks for all.

    Yes you can use an applet here and applets can be very useful in a J2EE application. The rule of thumb should be to NOT use them unless your users demand a sophisticated UI component that can not easily be done in html/jsp/servlet. The advantages of an applet are the availability of swing and awt design ui objects. The major disadvantage is the requirement for users to download the swing and applet jars before they can run your app. If your doing an Amazon.com kind of thing that would be unacceptable but if your doing an intranet or industry specific site, it might be ok.
    When you decide to use an applet you can just put in in a jsp. Create a servlet to handle talking to the applet and user http sockets to do so.
    t3chi3

  • SOS!!!!!!Applet invoke EJB under Weblogic!!!

    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://192.162.125.177:7001");
    ht.put(Context.SECURITY_PRINCIPAL, "system");
    ht.put(Context.SECURITY_CREDENTIALS, "12345678");
    Context ctx = new InitialContext(ht);
    BasicDataManagerHome home = (BasicDataManagerHome)javax.rmi.PortableRemoteObject.narrow(ctx.lookup("BasicDataManagerBean"),BasicDataManagerHome.class);
    error:
    javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory. Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory

    You can either
    * include the WebLogic naming factory classes (jars) in the applet classpath, which will significantly increase the applet startup time, or (better)
    * have the applet communicate with a servlet over HTTP, and the (proxy) servlet communicates with the EJB.

  • Applet as EJB client error

    hello
    Is it possible to invoke EJB's from signed applets ?
    I have signed weblogic.jar and jar of my applet.
    APPLET CODE="MyApplet.class" ARCHIVE="MyAppletArchive.jar,weblogic.jar"
    WIDTH=600 HEIGHT=400
    When applet tries to invoke EJB it throws exception:
    java.lang.ClassNotFoundException: weblogic.jndi.internal.ServerNamingNode_WLStub
    I think that applet cannot load stub class from server because of security restrictions.
    Do you know how to solve the problem ?
    thanx
    Maris

    Hello Maris,
    This particular issue that you are facing is mentioned in the WLS documentation.
    Basically, you have to take caution when running ejbc (-disableHotCodeGen), and
    avoiding the ClassNotFoundException by accessing the InitialContext in only the
    thread that deals with applet lifecycle methods (such as start, stop, init, destroy).
    Please see the following link for more information:
    http://e-docs.bea.com/wls/docs70/applets/usingapplets.html#1075866
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    "Maris Orbidans" <[email protected]> wrote:
    >
    hello
    Is it possible to invoke EJB's from signed applets ?
    I have signed weblogic.jar and jar of my applet.
    APPLET CODE="MyApplet.class" ARCHIVE="MyAppletArchive.jar,weblogic.jar"
    WIDTH=600 HEIGHT=400
    When applet tries to invoke EJB it throws exception:
    java.lang.ClassNotFoundException: weblogic.jndi.internal.ServerNamingNode_WLStub
    I think that applet cannot load stub class from server because of security
    restrictions.
    Do you know how to solve the problem ?
    thanx
    Maris

  • Applet as EJB client

    I tryed to test applet, who will invoce EJB method. I set permitions in the JRE config file java.policy to AllPermissions. When I run the applet from AppletViewer, it works correctly. But when I run the applet from IE, I receive following warning:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission tunneling.shortcut read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
         at java.security.AccessController.checkPermission(AccessController.java:399)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
    at java.lang.System.getProperty(System.java:560)
         at java.lang.Boolean.getBoolean(Boolean.java:171)
    at com.evermind.server.rmi.RMIInitialContextFactory.<clinit>(RMIInitialContextFactory.java:34)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:195)
         at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
         at javax.naming.InitialContext.init(InitialContext.java:222)
         at javax.naming.InitialContext.<init>(InitialContext.java:198)
         at test.AppServerConnection.getBeanFromOracleForApplet(AppServerConnection.java:53)
         at test.AppServerConnection.getBeanFromApplet(AppServerConnection.java:102)
         at test.TestApplet.start(TestApplet.java:26)
         at sun.applet.AppletPanel.run(AppletPanel.java:358)
         at java.lang.Thread.run(Thread.java:484
    I changed the java.policy file in the $SDK_PATH/jre/lib/security to following:
    grant {
    permission java.security.AllPermission;
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.io.SerializablePermission "enableSubstitution";
    what's the problem??
    Thanks for all answers.
    Dalibor

    Hi Dalibor,
    Have you read these posts:
    Re: sql query taking lot of time...
    Re: Oracle HR 11.5.7 -Select DateTracked Info of Employees for Specific Period
    There are lots of others, of-course. Did you try searching the
    forum archives?
    Good Luck,
    Avi.

  • OTN Gurus ! Applet to EJB (through JNDI) !

    I am writing system for project management, that uses Oracle 8.1.6 as middle-tier platform and applet in front end. After first deployments I see that this kind of J2EE architecture is not foreseen by Oracle teams.
    After few days of fights I wonder if it is possible at all. Of course example from 8.1.6 demo, does not work wiht my Netscape. And after all even if it would be, how do you expect end-users to do all this mess with copying files, deleting netscape jndi jars, etc. Not to mention there is nothing about MS Explorer.
    Could anyone from Oracle professionals tell me openly if it is any sense to do it, how to do it, or at least some references to materials. Anything.
    Thanks in advance. Michal.
    null

    the oracle 8.1.6 rdbms has javavm release notes in the "relnotes/javavm" folder.
    In section 3.17.5 of the readme_javavm.txt file, it is clearly documented that applets can not talk to ejb or corba objects.
    i've been told that this feature has been added in the 8.1.7 rdbms.

  • Applet for EJB on Orcale application server

    I developed Oracle Application server deployed EJB. Then I developed Applet client for that EJB. Everything works fine when I use applet viewer for that applet. But when I try to do same from the Netscape (4.7) or IE5 problems occurs. First I try netscape alone. Netscape uses JDK 1.1.5. Applet created initial context, and found EJB on the server, but could not do anything (CORBA MArshall exception occured, and no completed string returned). Then I installed Java Plug in 1.2.2 and tried everything again. Now I always get naming exception. Initial context is created, but client cannot find EJB on the server ( [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265) at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328) .........
    occurs). Does someone has some expiriences or can help?
    I can run the application but when it comes to applet , its not working.
    further can the EJB applet run over Java 1.2 plugin?
    null

    yeah, but appletviewer is not the solution, I am using jdeveloper 3 , OAS4081. I need to put the client on applet. The documentation says it will work. but the problem remains. I have lareday spent more then 40 hours to find a solution but it won't work.
    Jayakumar,If you find a solution can you let me know also. my mail is [email protected]

  • Applet and EJB

    Hi! there.
    I use applet to get Bean from EJB.
    when I lookup jndiName from context. I get following exception ,
    java.lang.ClassCastException : weblogic.rmi.internal.StubInfo
    How I can obtain EJBean from context in applets?
    any reply is appreciated.
    I use wlServer 6.1sp1, and I use java plugin1.3.1_01
    I used following applet code
    <html>
    <OBJECT CODE = "Test.class" CODEBASE = "t3://localhost:7001/applets" ARCHIVE =
    "weblogic.jar, micDcdpApprovalEJB.jar, micDcdpSystemEJB.jar" WIDTH = 500 HEIGHT
    = 440>
    </OBJECT>
    </html>

    Of course can.
    You should call EJB remote interface.
    This will help you
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/J2eeTutorialTOC.html

  • Calling EJB from an applet in 9iAS Release 2?

    Hello!
    In 9iAS Release 1 it is not so easy to call an EJB from an applet. First the applet needs special privileges and then the applet starts only once. The cause of problem is the implementation of ormi.
    Will 9iAS Rel. 2 support Applets calling EJBs?

    Jeff,
    I am also trying to make an applet client for an EJB deployed to OC4J.
    I modified the java2.policy file as you suggested, but when I tried to run my applet, I
    got the following error:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission tunneling.shortcut read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at java.lang.Boolean.getBoolean(Unknown Source)
         at com.evermind.server.rmi.RMIInitialContextFactory.<clinit>(RMIInitialContextFactory.java:34)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.init(Unknown Source)
         at javax.naming.InitialContext.<init>(Unknown Source)
         at its.fnd.ejb.EJBHomeFinder.getHomeObject(Unknown Source)
         at its.fnd.flight.ejb.EJBFlightFactory.<init>(Unknown Source)
         at its.fnd.flight.FlightFactory.<init>(FlightFactory.java:97)
         at EJBApplet.jbInit(EJBApplet.java:47)
         at EJBApplet.init(EJBApplet.java:36)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I am using OC4J (stand-alone) version 9.0.2.0.0 on Solaris 7 and Microsoft Internet Explorer
    5.0 with the java 1.3.1 plug-in.
    Here is the applet code that I use to lookup the EJB home interface:
    Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
    props.put(Context.PROVIDER_URL,"ormi://host:6666/app");
    props.put(Context.SECURITY_PRINCIPAL,"admin");
    props.put(Context.SECURITY_CREDENTIALS,"password");
    Context ctxt = new InitialContext(props);
    Object homeObj = ctxt.lookup("my_bean");
    MyBeanHome home = PortableRemoteObject.narrow(homeObj, MyBeanHome.class);
    The HTML page with the <applet> tag is a static HTML page that is part of OC4J's default
    web application. The applet class file is located in a subdirectory of the default-web-app
    directory. Here is the HTML page...
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    HTML Test Page
    </TITLE>
    </HEAD>
    <BODY>
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="580" height="450" name="EJBApplet" align="middle" alt="Loading EJBApplet ...">
    <param name="java_code" value="EJBApplet">
    <param name="java_codebase" value="/tests">
    <param name="java_archive" value="xerces.jar,ejb.jar,oc4j.jar,jaas.jar"/>
    <param name="java_type" value="application/x-java-applet;version=1.3">
    <param name="java_scriptable" value="true">
    <table cellpadding="1" bgcolor="#FFFFFF" width="580" height="450">
    <tr><td>
    This is a place for an APPLET.<br>Your browser doesn't support the correct applet java plug-in.<br><br>You can install the correct plug-in from here.<br><a target='_blank' onClick='javascript:self.window.close()' href="/classes/3rdparty/j2re-win-plug-in.exe">Click here to install plug-in.</a><br><br>Or if you have an Internet connection you can install the correct plug-in from here.<br><a target='_blank' onClick='javascript:self.window.close()' href="http://java.sun.com/products/plugin/1.3/plugin-install.html">Click here to install plug-in from Internet.</a><br><br>You can call your System Administrator for assistance.</td></tr>
    </table>
    </object>
    </BODY>
    </HTML>
    I have searched the Internet, and the documentation, and tried several, different things,
    but I can't get it to work.
    Any and all help will be greatly appreciated.
    Thanks,
    Sofia.

  • Applet -ejb ; weblogic.jar

    Hi,
    <b>I am trying to access EJB from an applet thro' ejb-client.jar. It works fine if I include weblogic.jar in the applet archive but it throws a corba exception if I use wlclient.jar and wljmsclient.jar instead of weblogic.jar in the archive. As weblogic.jar is too huge <b>I want to use thin clients</b>. Could someone help me with this exception. I am using WLS8.1_sp4; jdk 1.4.2_05 and ie6 with latest jvm. Both applet and ejb are deployed in same localhost</b>
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = localhost port = 7001
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo
    te_host=localhost remote_port=7001 state=ESTABLISHED]
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message
    from stream
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Reading the mess
    age fully, size =1204
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Handling GIOP 1.
    0 LocateReply
    com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Constructing IIO
    PInputStream object
    com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Setting the time
    stamp
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message
    from stream
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = 172.16.65.14 port = 7001
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo
    te_host=172.16.65.14 remote_port=7001 state=ESTABLISHED]
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for 172.16.65.14:7001,4,ORB ThreadGroup]): Creating mess
    age from stream
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection
    com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file:
    /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): getEndpoint(IIOP_CLEAR_TEXT, 0, null)
    com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file:
    /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): createListener( socketType = IIOP_CLEAR_TEXT port = 0 )
    javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.MARSHAL:   vmcid: SUN  minor cod
    e: 217 completed: Maybe]
    at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:81)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:237)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:171)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at informatics.inventory.plates.editor.EJBPlateMapDAO.<init>(Unknown Source)
    at informatics.inventory.plates.editor.PlateMapEditor.init(Unknown Source)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 217 completed: Maybe
    at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_wstring(CDROutputStream_1_0.java:464)
    at com.sun.corba.se.internal.iiop.CDROutputStream.write_wstring(CDROutputStream.java:189)
    at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameComponentHelper.write(WNameComponentHelper.java:79)
    at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameHelper.write(WNameHelper.java:59)
    at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:79)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:213)
    ... 6 more

    Hi,
    <b>I am trying to access EJB from an applet thro' ejb-client.jar. It works fine if I include weblogic.jar in the applet archive but it throws a corba exception if I use wlclient.jar and wljmsclient.jar instead of weblogic.jar in the archive. As weblogic.jar is too huge <b>I want to use thin clients</b>. Could someone help me with this exception. I am using WLS8.1_sp4; jdk 1.4.2_05 and ie6 with latest jvm. Both applet and ejb are deployed in same localhost</b>
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = localhost port = 7001
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo
    te_host=localhost remote_port=7001 state=ESTABLISHED]
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message
    from stream
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Reading the mess
    age fully, size =1204
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Handling GIOP 1.
    0 LocateReply
    com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Constructing IIO
    PInputStream object
    com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Setting the time
    stamp
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message
    from stream
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = 172.16.65.14 port = 7001
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo
    te_host=172.16.65.14 remote_port=7001 state=ESTABLISHED]
    com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for 172.16.65.14:7001,4,ORB ThreadGroup]): Creating mess
    age from stream
    com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,
    4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection
    com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file:
    /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): getEndpoint(IIOP_CLEAR_TEXT, 0, null)
    com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file:
    /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): createListener( socketType = IIOP_CLEAR_TEXT port = 0 )
    javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.MARSHAL:   vmcid: SUN  minor cod
    e: 217 completed: Maybe]
    at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:81)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:237)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:171)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at informatics.inventory.plates.editor.EJBPlateMapDAO.<init>(Unknown Source)
    at informatics.inventory.plates.editor.PlateMapEditor.init(Unknown Source)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 217 completed: Maybe
    at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_wstring(CDROutputStream_1_0.java:464)
    at com.sun.corba.se.internal.iiop.CDROutputStream.write_wstring(CDROutputStream.java:189)
    at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameComponentHelper.write(WNameComponentHelper.java:79)
    at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameHelper.write(WNameHelper.java:59)
    at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:79)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:213)
    ... 6 more

Maybe you are looking for