Problem in loading applet

Hi...
i m facing problem in loading my applet, my root directory (Chat) is placed in webapps. i m copying my classes in WEB-INF/classes & then in a package, named 'chat'.... which includes all my beans & applets... i m using JApplet component from swing .... i m gettin following error msg when i try to load it on a webpage
oad: class ChatServer.class not found.
java.lang.ClassNotFoundException: ChatServer.class
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
i even tried with the <jsp:plugin>, but it didn't work, can anyone guide me what shall i need to do if i want to load the applet from the same arrangement?
thanx

Use the plugin for your browser that corresponds to the version of the JDK that the server is running, ie 1.2 plugin for 1.2 server.
jairag wrote:
Hi!
When I try this Hello example of weblogic in 4.5 I am getting the following error.
How to resolve this?
Very Urgent.
thanks in advance.
regards,
jai
HelloApplet: an exception occurred:
[Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
- with nested exception:
[java.io.EOFException]]javax.naming.CommunicationException
at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
at weblogic/jndi/WLInitialContextFactory.toNamingException
at weblogic/jndi/WLInitialContextFactory.newContext
at weblogic/jndi/WLInitialContextFactory.getInitialContext
at weblogic/jndi/Environment.getContext
at weblogic/jndi/Environment.getInitialContext
at weblogic/rmi/Naming.getContext
at weblogic/rmi/Naming.lookup
at HelloAppletLocal.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
--------------- nested within: ------------------
weblogic.rmi.UnknownHostException: Could not init server [T3://sanjay:7001/HelloServer]
- with nested exception:
[[Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
- with nested exception:
[java.io.EOFException]]javax.naming.CommunicationException]
at weblogic/rmi/Naming.getContext
at weblogic/rmi/Naming.lookup
at HelloAppletLocal.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run

Similar Messages

  • Problem on loading applet netscape4.73 in macos9 very urgent pls help me

    Hello,
    Problems on loading applet in Netscape4.73(jre1.1.5) AppleMac OS-9.
    when i try to load applet of size ~ 200kb in Netscape 4.73 AppleMac os9, then browser abruptly closing with the AppleMac os error message :- the Applicarion " Netscape Communicator " has unexpectedly quit because an error of type 2 occured. And then asking for system restart.
    Since i am new to the AppleMac environment i cant adjust the settings please help me to overcome the problem. Its Very urgent and i am in great hurry pls.
    thanks in advance.
    Rao. V.N.

    Hi Rao,
    I'm not a mac-os specialist (even I had some business with mac !!), and it is very difficult speaking in blind, but I have severals questions that may help you.
    - Did you try you applet in other AppleMac plateform ?
    - Does your applet work fine in other browser/plateform ?
    - Does a small applet work fine on this plateform with this browser ?
    - Does you applet contains instructions like System.exit, System.* or try to access (read or write) to local files ?
    Otherelse it is possible you have problem with your jre config, try to configure your plugin with command like : -Xmx64m -Xms16m
    (These commands tell the plugin to use at least 16 Mo memory and 64 Mo for the maximum see : http://java.sun.com/docs/hotspot/gc/)
    Hope that will help you

  • Problem while loading applet in opera- very urgent please

    hi,
    I am having problem while loading applet in opera browser. Showing "Applet loading " continuously. I am trying to use URLConnection to read information from applet's own host. I cant find the exact problem what is happening, Since there is no error message in browser Javaconsole.
    If anybody have idea on this please help me. I am in great hurry.
    Thanks in advance.
    Rao. V

    hi this is rao,
    I inserted a lot of System.out statements throughout applet life cycle. But they are not displaying in java console. I think the problem is in Opera-java settings. Since i am new to the opera environment i cant get right solution.
    Please help me if anybody having clear idea on this aspect.
    thanks in advance

  • Problem in loading applet in HotJava browser

    I am having a problem in loading a simple applet in HotJava
    browser
    The code of the applet is shown below
    import java.awt.*;
    import java.applet.*;
    public class HelloJava extends Applet
    public void paint(Graphics g)
    g.drawString("Hello Java", 10, 100);
    The code of the HTML file HelloJava.html is shown below :
    <HTML>
    <! This page includes a welcome title in the title bar and also
    displays a welcome message. Then it specifies the applet to
    be loaded and executed.
    >
    <HEAD>
    <TITLE>
    Welcome to Java Applets
    </TITLE>
    </HEAD>
    <BODY>
    <CENTER>
    <H1> Welcome to the World of Applets </H1>
    </CENTER>
    <BR>
    <CENTER>
    <APPLET
    CODE = HelloJava.class
    WIDTH = 400
    HEIGHT = 200 >
    </APPLET>
    </CENTER>
    </BODY>
    </HTML>
    ON opening the HTML file in HotJava Browser, the following error comes up :
    HelloJava: class not loaded: file:/D:/Poonam/Java/Src1/HelloJava.class:
    java.lang.ClassNotFoundException: HelloJava: class not loaded: file:/D:/Poonam/Java/Src1/HelloJava.class

    Well the obvious question is what is utilities.PropertyManager up to at line 23? It appears to be trying to get the system classloader which applets aren't allowed to do.
    You should probably be using the ClassLoader from the class in question.

  • Problem in loading applet from non executable jar file

    hello ,
    I am new to jar concept plz help.. I am trying to call an applet from another applet through frame it is working fine but its download time is much more. now i want to store all my images , sound files and class files of other applets in a jar file and want to access these inner applets from this jar file so that it will make only one http connection with the server for this jar file only and can reduce the download time of applet.
    Can anyone can give me suggestion plz..
    Thanx

    You have to download what you have to download. You
    probably can't easily share images between 2 separate
    Jar files. Unless you can expose them through the
    other applet via a method that can be known once you
    have the reference to the other applet.Thanx but i think i have to elaborate the problem :
    my project structure is just like this ::
    on the top is ::
    Applet A---> from this applet i am callling Applet B & Applet C in frame
    and communication is established between these 3 applets successfully .
    now i have made a single non executable jar file which contains images , sound and class files of these applets .
    so i am referencing images and sound files in applets through this jar.
    but i wanted to load Applet B & C through this jar file only.
    How can i do this ??
    Thanx .. I hope now the problem is clear

  • Problem in loading applet into java card.

    Hi all,
    I have developed an applet using java card development kit 2.2.2 and JDK1.5. The cap file is generated successfully. Am using gpshell to load applet into the card but am getting an error saying "Error : load_applet() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)" . Can anyone please tell me where am wrong. My install file contains :
    mode_211
    enable_trace
    establish_context
    card_connect
    select -AID a0000000030000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    delete -AID a00000006203010c0101
    delete -AID a00000006203010c01
    delete -AID a00000006203010c0101
    install -file wallet.cap -nvCodeLimit 28500 -nvDataLimit 28500 -instParam 00 -priv 2
    card_disconnect
    release_context
    and when i execute gpshell install.txt, i get error like :
    mode_211
    enable_trace
    establish_context
    card_connect
    select -AID a0000000030000
    Command --> 00A4040007A0000000030000
    Wrapped command --> 00A4040007A0000000030000
    Response <-- 6F658408A000000003000000A5599F6501FF9F6E06405163452900734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012A026E01029000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Command --> 80CA006600
    Wrapped command --> 80CA006600
    Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012A026E01029000
    Command --> 8050000008F156D9048BF4FB6800
    Wrapped command --> 8050000008F156D9048BF4FB6800
    Response <-- 00008247040433914208FF020052DF76EF50F6457F4F16E031638B009000
    Command --> 84820100109D59E7CE033B4A5B70115EB7CA3F523C
    Wrapped command --> 84820100109D59E7CE033B4A5B70115EB7CA3F523C
    Response <-- 9000
    delete -AID a00000006203010c0101
    Command --> 80E400800C4F0AA00000006203010C010100
    Wrapped command --> 84E40080144F0AA00000006203010C01011C9450FF5E3DCB3800
    Response <-- 6A88
    delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
    delete -AID a00000006203010c01
    Command --> 80E400800B4F09A00000006203010C0100
    Wrapped command --> 84E40080134F09A00000006203010C013421B120E65613F100
    Response <-- 009000
    delete -AID a00000006203010c0101
    Command --> 80E400800C4F0AA00000006203010C010100
    Wrapped command --> 84E40080144F0AA00000006203010C010136D28BC08D59D9FA00
    Response <-- 6A88
    delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
    install -file wallet.cap -nvCodeLimit 28500 -nvDataLimit 28500 -instParam 00 -priv 2
    Command --> 80E602002009A00000006203010C0608A000000003000000000AEF08C6026F60C7026F540000
    Wrapped command --> 84E602002809A00000006203010C0608A000000003000000000AEF08C6026F60C7026F54005A411C50F04D651900
    Response <-- 009000
    Command --> 80E80000EFC48203BD010013DECAFFED010202000109A00000006203010C0602001F0013001F000000150062001201CB000A003C000700D600000000000002000004001502030107A0000000620101000107A000000062000106001200800302000104040000005CFFFF004F00640701CB000543188C0003188F00133D0610088C00028700191E2529041E160441044131191E2529051E160541044131191E252906AD00191E044116068B0004188B00057A05308F00063D181D1E8C00073B7A0110AD008B00086104037804780110AD008B00097A0221198B000A2D198B000B60101A042510A46B037A116E008D000C1A032510
    Wrapped command --> 84E80000F7C48203BD010013DECAFFED010202000109A00000006203010C0602001F0013001F000000150062001201CB000A003C000700D600000000000002000004001502030107A0000000620101000107A000000062000106001200800302000104040000005CFFFF004F00640701CB000543188C0003188F00133D0610088C00028700191E2529041E160441044131191E2529051E160541044131191E252906AD00191E044116068B0004188B00057A05308F00063D181D1E8C00073B7A0110AD008B00086104037804780110AD008B00097A0221198B000A2D198B000B60101A042510A46B037A116E008D000C1A032510CCBBB987BED1F686
    Response <-- 6A80
    load_applet() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)
    Thanks in advance

    Hi all,
    Sorry above i forgot to mention the java card am using. It is JCOP21 and in its datasheet its mentioned that it specification needed are javacard development kit 2.2.1, is that may be the reason for this error?
    Thanks in advance

  • Problem in loading applets

    HI,
    Im facing a problem when im trying to open a URL containing a applet in IE 7.
    When i checked in the settings of IE the JVM used for loading of applets is java 2 v 1.5.0_03.
    This JRE is installed in my system.
    The error im getting in the browser is
    "THe JAVA RUN TIME ENVIRONMENT CANNOT BE LOADED"

    Well, this needs further investigation, Mr. Watson ;)
    Looking at the output you provided, it seems to me that you ommited the cache_version parameter. (on purpose?)
    The caching process involves the check for newer versions of the jars: this can be done either using the version tag, or letting plugin compare the cached jars with the ones on the server using their timestamp. According to the output you've got, the verification is done using that timestamp. This might be the problem.
    Did you check the logs of your webserver -you're using apache, right? Nothing unusual there? Raised debuglevel there?
    You could try to exclude some possible problems by trying to change the verification process: Instead of using the timestamp, give it a try and use version numbers for your jars.
    Since the version numbers are coded in the object tag in your jsp page, plugin can do the verification without getting the jar-files' timestamps.
    If this solves the problem, the timestamp is definitely the cause of your trouble.
    ;)

  • Problem in Loading Applet using WebLogic 4.5

    Hi!
    When I try this Hello example of weblogic in 4.5 I am getting the following error.
    How to resolve this?
    Very Urgent.
    thanks in advance.
    regards,
    jai
    HelloApplet: an exception occurred:
    [Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.io.EOFException]]javax.naming.CommunicationException
         at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
         at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
         at weblogic/jndi/WLInitialContextFactory.toNamingException
         at weblogic/jndi/WLInitialContextFactory.newContext
         at weblogic/jndi/WLInitialContextFactory.getInitialContext
         at weblogic/jndi/Environment.getContext
         at weblogic/jndi/Environment.getInitialContext
         at weblogic/rmi/Naming.getContext
         at weblogic/rmi/Naming.lookup
         at HelloAppletLocal.init
         at com/ms/applet/AppletPanel.securedCall0
         at com/ms/applet/AppletPanel.securedCall
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    --------------- nested within: ------------------
    weblogic.rmi.UnknownHostException: Could not init server [T3://sanjay:7001/HelloServer]
    - with nested exception:
    [[Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.io.EOFException]]javax.naming.CommunicationException]
         at weblogic/rmi/Naming.getContext
         at weblogic/rmi/Naming.lookup
         at HelloAppletLocal.init
         at com/ms/applet/AppletPanel.securedCall0
         at com/ms/applet/AppletPanel.securedCall
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run

    Use the plugin for your browser that corresponds to the version of the JDK that the server is running, ie 1.2 plugin for 1.2 server.
    jairag wrote:
    Hi!
    When I try this Hello example of weblogic in 4.5 I am getting the following error.
    How to resolve this?
    Very Urgent.
    thanks in advance.
    regards,
    jai
    HelloApplet: an exception occurred:
    [Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.io.EOFException]]javax.naming.CommunicationException
    at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
    at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
    at weblogic/jndi/WLInitialContextFactory.toNamingException
    at weblogic/jndi/WLInitialContextFactory.newContext
    at weblogic/jndi/WLInitialContextFactory.getInitialContext
    at weblogic/jndi/Environment.getContext
    at weblogic/jndi/Environment.getInitialContext
    at weblogic/rmi/Naming.getContext
    at weblogic/rmi/Naming.lookup
    at HelloAppletLocal.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    --------------- nested within: ------------------
    weblogic.rmi.UnknownHostException: Could not init server [T3://sanjay:7001/HelloServer]
    - with nested exception:
    [[Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.io.EOFException]]javax.naming.CommunicationException]
    at weblogic/rmi/Naming.getContext
    at weblogic/rmi/Naming.lookup
    at HelloAppletLocal.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run

  • Could not load applet in a browser using jre 1.6.0_06

    Hi,
    I am facing problem with loading applets when the browser uses jre 1.6.0_06.
    Not able to understand what actually the problem is, I tried to check with a small applet that would simply print Hello World on the java console. Even this applet also could not be loaded on the browser. I could load this applet in the test environment of eclipse, but not able to load it on the browser when the applet is deployed on Tomcat.
    We have no problems in loading applet if the browser is using an earlier version of the jre.
    One more thing we have found out that, if we change the SSL cipher suite of the ssl.conf file such that it can support weaker protocols, my applet works with jre 1.6.0_06 also.
    But one thing we could not understand is that why changes in SSL cipher suite of the ssl.conf file creates problem in loading the applet, only in case the browser is using jre 1.6.0_06. I mean to say that changes in the SSL cipher suite does not create any problem in loading the applet if my browser is using an earlier version of jre 1.6.0_06.
    Please help me out as I don't have any clue regarding this problem.
    Thanks in advance.

    Hi,
    We have found a wor around for this problem.
    The following option has been unchecked and the applet could be loaded.
    Go to java control panel
    Under the Advanced Tab
    Under the Security section
    Uncheck the last option "Use TLSv1.0".
    This makes the applet work.
    But could not understand as why this is creating a problem.
    We have tried to include TLSv1.0 in the cipher suite of our apache server, while keeping the above option in java plugin control panel checked, but even that did not solve the problem.
    Please help me of how should I proceed for this problem, as I am totally stuck.
    Thank you.

  • Is OCF related to loading applet into the sim

    I've read some text about OCF(Open Card Framework) it is said that it is an interface to both smart card reader and applications on the sim. if we take "the application on the sim" same as "Installer Applet" then the ocf stands in the place which the problem of loading applet exists.
    could you please explain:
    Can I use OCF for witing a programm to load my applet into card?
    Is There any other way to do the task??

    If it is a GlobalPlatform card, there are some simple steps to validate if your card is locked/terminated
    1. send GET DATA on some tag you know for sure is in the data store of the CardManager
    2. If this works, try to authenticate (INIT-UPD, EXT-AUTH)
    3. If this works, GET STATUS on ISD --> AID and life cycle of the CM
    - If 1. does not work, then your default select application is not the ISD --> contact the issuer for the AID
    - If 2. does not work, then your card is locked or terminated
    - If 3. does not work, then the GP secure channel protocol on-card has a different implementation than your off-card tool/API (most likely with a Gemalto card)

  • Facing the problem in loading the applet in mozilla, Firefox and netscape

    Dear sir,
    Well I am facing the problem regarding loading of applet in firefox,mozilla and netscape. Its working fine in IE6 I have the samplecode which asks for jdk1.4 whenever the applet gets loaded in IE6 and also it works fine for every browser but he is asking jre for every time whenever the page gets loaded even if the jre is installed. I need a code such that it should ask only if the jre is not installed. One more thing is it so that for mozilla or netscape the jre installation files are different.
    pls give the solution.
    Well I am also facing the problem like when I load login page of my applicatoin in netscape or firefox
    I provided the buton on login page on which the hyperlink is present, the hyperlink is of servlet path when I click on the same it shows me the blank page instead he should forward the page to the next jsp webpage where I am showing the applet. But it works fine in IE versions and opera but not in the others.
    Awating for your reply.
    Rgs
    sumeet.

    Issue resolved with the help of ABAP.
    Regards
    Bijudas

  • Security problem when signed applet dynamically load plugins

    Hi!
    I have one problem : "security problem when signed applet dynamically load plugins"
    This is the scenario:
    the main program [app.jar]
    . contain applet and shared library (interface & implement of common class)
    . it is signed and run normally on browser
    . it can draw image loaded from other URL [ex] http://bp1.blogger.com/image.jpg
    . the image loader is in the shared library
    . dynamically load amazon.jar through URLClassLoader and reflection
    the plugin [amazon.jar]
    . search amazon product [ex] Harry Potter book
    . draw image on applet
    . use image loader from shared library, BUT CANNOT LOAD IMAGE
    The question: "Why it cannot load image, because the image loader is in the shared library which has been signed and working?" I tried to sign the amazon.jar too, but it did not work.
    Your reply would be very helpful. Thank you.
    Sovann

    hello. i have create a signed applet for A.jar. A.jar include two package B and C. the main applet class is within B.
    B need some classes in C to run the applet. but i got the error that class in package c are not found.
    what shall i do?

  • Problem loading applet in website

    I'm having a problem with my applet~ it runs in the AppletViewer, but not on the website. (I've checked a few pages into this forum and couldn't find anything that quite helped)
    I think I know what the error is--it won't open the image files because it believes they are restricted. This is the error I receive in the Java Console:
    java.security.AccessControlException: access denied (java.io.FilePermission ronkus001.gif 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.checkRead(Unknown Source)
         at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
         at sun.awt.SunToolkit.getImage(Unknown Source)
         at javax.swing.ImageIcon.<init>(Unknown Source)
         at ImgArray.<init>(ImgArray.java:12)
         at RonkusBrowser.<init>(RonkusBrowser.java:13)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I have gone back and added <PARAM> tags to the HTML file (as well as modifying my code so it will look for them and USE them), but there is no difference.
    NOTE:
    1) I have installed the latest Java plugin.
    2) Other applets run, so it's my code, not FireFox (which I am running)
    3) I have checked that all of the needed classes and files are uploaded. I uploaded in binary format because I read somewhere that doing so helps. (I don't really know how that works)
    There are 5 total classes in my program, so the applet calls the other classes. Does this need to be modified somehow, maybe?
    Any advice on how to fix this?

    Sorry to keep reposting like this, but I just checked and found that the Param version doesn't run in AppletViewer anyway. Without the param tag, I still have the exact same error.
    So, now my code does not require parameters and none are being given.
    this is my page code:
    <applet code="RonkusBrowser.class" width="940" height="415">
    </applet>

  • Dynamically Loading Applet in an IFRAME

    Hi All!
    I'm not sure if this is the right place to put my question, since it's more of a JavaScript issue. But, I'll just test my luck here.
    I have a signed applet that I wish to load dynamically. What I did was to create an HTML document containing the applet then have another HTML document, containing an IFRAME element with it's source pointing to the applet HTML document. This is how it looks like:
    *Applet.htm (HTML containing the applet)<HTML>
    <BODY>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
              width="0"
              height="0"
              id="JavaPOSDiags"
              name="JavaPOSDiags"
              viewastext>
              <PARAM name="CODE" value="javapos.DiagApplet">
              <PARAM name="ARCHIVE" value="JavaPOSDiags.jar">
              <PARAM name="NAME" value="JavaPOSDiags">
              <PARAM name="type" value="application/x-java-applet;jpi-version=1.3.0">
              <PARAM name="scriptable" value="true">
    </OBJECT>
    </BODY>
    </HTML>
    *Main.htm (HTML containing the IFRAME that loads the applet)<HTML>
    <BODY>
         <iframe id="fxJavaPOS" src="Blank.htm" width=0 height=0 frameborder=0 style="display: none"></iframe>     <!-- Blank.htm is another HTML file that contains a blank document. ->
         <script language=javascript>
              var bAppletLoaded = false;
              function loadApplet() {
                   var eJavaPOSFrame = document.getElementById("fxJavaPOS");
                   if(eJavaPOSFrame != null) {
                        eJavaPOSFrame.src = "Applet.htm";
                        bAppletLoaded = true;
              function testApplet() {
                   if(bAppletLoaded) {
                        var eJavaPOS = document.getElementById("fxJavaPOS").contentWindow;
                        var eJavaPOSApplet = eJavaPOS.document.getElementById("JavaPOSDiags");
                        try {
                             if(eJavaPOSApplet != null) {
                                  //call applet's methods/properties here...
                        } catch(exception) {
                             //an exception occured...
         </script>
         <input type=button id=loadApplet value="Load Applet" onclick="loadApplet()" name=loadApplet>
         <input type=button id=testApplet value="Test Applet" onclick="testApplet()" name=testApplet>
    </BODY>
    </HTML>My problem is, when testApplet() is called, an exception is thrown once the applet reference is compared to null:if(eJavaPOSApplet != null).... I don't know why this happens. When I do remove the comparison statement and just proceed w/ calling the applet's methods/properties, the browser goes crazy. It seems that the line:var eJavaPOSApplet = eJavaPOS.document.getElementById("JavaPOSDiags");gives me an object, but, I'm not sure if it is the applet, because referencing eJavaPOSApplet, e.g. calling methods or comparing to null, causes the browser to hang.
    Could this be a Java security issue?
    Can anyone help me?

    How long does it take to load the same remote image in a browser? (clear the cache first)
    What code are you using to load and wait for the image?
    Have you indentified for certain that the 15s is entirely down to image loading and not anything else?

  • Loading Applet on a Smart Card

    I am new to JavaCard development so forgive me if you find the question stupid.
    I am trying to load an applet on a NXP based Sm@rtCafe Expert card. I have completed the following steps:
    - Compiled the applet
    - Converted the package into a cap file using the Converter tool.
    - Generated the upload scrpit file using the scriptgen tool and appended the requisite powerup and powerdown commands.
    Now when I try to upload the applet through the apdutool, I get an exception.
    Here is the apdutool command I am using:
    apdutool -t0 upload
    Where upload is the name of my script file.
    I am getting the following exception:
    Opening connection to localhost on port 9025.
    java.net.ConnectException: Connection refused: connect
    So my card reader is probably not on the default port is what I gather. How do I find out what port is my reader at if that is the problem.
    For additional information I am using JavaCard 2.2.2 development kit along with JDK1.5. My card reader is a USB based SCR3310 reader manufacture by SCM Microsystems.
    Any help in this regard will be greatly appreciated.
    Thanks.

    hi
    1- for Sending commands to a PC/SC-compatible card reader with apdutool, you have to use pcsc command line option , apdutool -pcsc
    you need to configure pcsc Functionality. refer to
    java card dev kit2.2.2 user guide, page 10,11.
    2 - The sun JavaCard Development Kit can only be used for testing applets in a simulated environment, it does not allow you to load applets to a physical card. Most cards use the GlobalPlatform specification for content management.
    Best regards,
    siavash

Maybe you are looking for

  • Brand new iPod will not fully sync with iTunes

    Howdy! My issue seems to be similar to the other thread "new 5G iPOd formatted for windows, no Movies tab????" I purchased a new 30GB iPod yesterday and plugged it into my iTunes (7.0.2). After naming the iPod I set it to upload all my iTunes content

  • Left click on early '08 MBP not working

    don't think you can imagine how frustrating this is until it happens to you. basically, yesterday my left click stopped working. restart/shutdown/safe mode atleast ten times didn't help. my magic mouse and magic trackpad were paired and the left clic

  • How to resolve corrupt downloaded updates

    Being new to the Apple MacBook Pro product I'm hoping someone could assist in advising on the following problem I'm experiencing. I purchased the item two days ago and after setting up the basics fro the first time of switching on the machine, I foun

  • RE:  Essbase Report Scripts

    Hi all i really thanks for your support ... Here is my question I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points. i.e i need to delete some level 0 memb

  • Examples of implementation of SCC in some of your clients

    Hello Experts, We are pursuing SAP solution of Subcontracting with Chargeable Components (SCC) with one of our clients at present. We have used the solution as enumerated in the document (http://www.sap.com/germany/services/consulting/acs/pdf/ACS_MM_