NoClassDefFoundError trying to load an applet

First off I am developing on a macintosh with os x and eclipse. I am developing a web site which I am serving from my home/sites/ directory. The problem is I am doing something wrong in my java code because the applet gets this error when trying to load. Currently I have the php file with html in the sites directory and I copied the class file into that directory. no luck. If I copy the php/html file into the eclipse workspace directory it works. What I want and feel I will need to have happen is to have the class files in the sites/project directory - what do I need to do to get this to work. Is it a setting in eclipse with the classpath or ???
Any help you can give will be greatly appreciated.
Thanks,
Dean

If it's a class not found error, then it's an issue with the HTML invoking the applet -- basically, you're not telling it where to find the java class.
You should probably ask on an Eclipse forum about how to configure it to run an applet using PHP. It's not clear what you're trying to accomplish -- you just want to run it locally for testing?

Similar Messages

  • Firefox crashes when trying to load jmol applets

    Hi there, for couple of weeks now every time I try to load a Jmol applet like the ones in the page:
    http://jmol.sourceforge.net/demo/atoms/  firefox suddenly crashes everytime. First I thought the problem was firefox,
    so I switched to Chrome which although doesn't crash doesn't render anything either. Finally, because I normally use an enlightment (e17) desktop, I tried an alternate window manager (it actually was wmii) and the problems continued.
    Do you thinks this has anything to do with my 64 bit system? Would anyone have any advice, I really need this to work!!
    Thanks

    I use 64bit, and that applet works for me in firefox and chromium.
    Did you install the icedtea-web package?
    EDIT: just in case you hadn't read Browser Plugins - Java
    Last edited by steabert (2011-08-10 21:41:41)

  • Discoverer client screen hangs trying to load the applet

    ...or so I think.
    We have a portal server running Discoverer 10.1.2.1. When using IE 6, the developers can get to the login screen (we're using the default one) and after they hit GO the new client browser window comes up but then just sits there blank.
    The person that is our Discoverer admin and one other in the office do not have this problem, the rest do. Using Firefox does get you in, however the client is standardized on IE so we need to figure out what's wrong.
    It's failing right at the point where you should get prompted to install the applet, but never gets that far. I've turned off the popup blocker and added the portal to the trusted sites with no luck.
    I did find a METALINK report regarding this exact behavior when there is an underscore in the host name, but in our case there isn't. Regardless it's not the case since there are a couple IE users that are getting in so I'm guessing it's due to a specific permissions setting on the client.
    Anyone struggle with this before?
    Thanks.

    Update -
    One of the clients that IS connecting is running the latest: 1.5.0_09 which makes no sense based on the other behavior.
    Well we figured it out (I think). If you have 1.4.2_06 on the box, you can connect, it installs the applet and you get in. If you then upgrade or uninstall/reinstall 1.5, Discoverer still works. Now we haven't tested anything else other than just logging in so what ever might blow up on us is still in question.
    But what it looks to be is that the kick off for the install is failing under 1.5 and once it's on the system, using a newer version is just fine. Now without really knowing/understanding what's going on under the hood this is just an assumption. However I've repeated it on a couple XP machines so far.
    That is, have 1.5 on the box, fail to get to Discoverer. Uninstall, then install 1.4, get Discoverer loaded, then upgrade/reinstall 1.5 and move on.
    We did give JInitiator a try but had similar strangeness happen and gave up since the client machines should have a copy of 1.4 on them to begin with. It's a matter of ironing out the details with our app. Hopefully 1.5 will be compatable by the time we go live which isn't for some time yet.

  • ClassFormatError when attempting to load an applet from within a JSP

    Greetings everyone.
    I have a problem that i seem unable to solve.
    I've created a web application. I'm using Java 1.4.2_05 and Tomcat. Right now i'm trying to load an applet from a JSP and i'm getting an error that, try as i might, i can't understand why it happens.
    Here is some detailed info:
    The applet's code:
    package smpb.myapp.controllers;
    import java.applet.Applet;
    import java.awt.Graphics;
    public class GUIApplet extends Applet
         public void init()
         public void stop()
         public void paint(Graphics g)
                  g.drawString("Hey hey hey",20,20);
               g.drawString("Hellooo World",20,40);
    The JSP's code:
    <%@ page language="java"
                   import="java.util.*"
                   session="true" %>
    <%
         String name = (String) request.getSession().getAttribute("userName");
    %>
    <html>
         <head>
              <title>Login</title>
         </head>
         <body>
              <h1><p align="center">Application</p></h1>
              <br>
              Welcome <%= name %>! Thank you for logging in!
              <br><br><br>
              <applet align="middle" code="smpb.myapp.controllers.GUIApplet.class" codebase="./" archive="MyApp_applets.jar">
                   Your browser does not support this feature.
              </applet>
              <br><br>
              <a href='<%=request.getContextPath() + "/LogOut"%>'>Log Out</a><br>
         </body>
    </html>-------------------------------------------
    When i reach this JSP the applet fails to load and i get the following error message at the java console:
    Loading applet ...
    Initializing applet ...
    Starting applet ...
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Last modified time and/or expiration value is not available.  Jar file will not be cached.
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Last modified time and/or expiration value is not available.  Jar file will not be cached.
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
         at sun.applet.AppletPanel.run(AppletPanel.java:298)
         at java.lang.Thread.run(Thread.java:534)
    Exception: java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)-------------------------------------------
    The JSP is in the root directory of the web application's path right along with the jar file. The jar file itself has the following structure:
    Archive:  HelpDesk_applets.jar
      Length     Date   Time    Name
            0  05-17-06 12:17   META-INF/
          106  05-17-06 12:17   META-INF/MANIFEST.MF
            0  05-10-06 17:14   smpb/
            0  05-10-06 17:14   smpb/myapp/
            0  05-12-06 16:50   smpb/myapp/controllers/
          794  05-12-06 17:15   smpb/myapp/controllers/GUIApplet.class
          900                   6 filesNow, i've tried loading the very same jar file that i use in the JSP through a static HTML which is virtually identical to the JSP i presented and everything works just fine. I've checked and rechecked to see if all the permissions to access the jar file were accurate, i checked to see if Tomcat had it's MIME settings correctly configured so that there was no chance that the files were being corrupted during the load (as that is a usual cause for the problem, or so i've gathered) but to no avail. I've searched the web, including these forums, and found similar problems but no conclusive solution. I can't seem to figure out, at all, what could possibly be wrong. Does anyone have any ideas? I've tried to be as thorough as i could from the start, so, any help would be deeply appreciated.

    Hi mshah101,
    This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher)

  • Problem while loading the applet across SSL in IE 5.0 & NS 6.0

    Hi
    Can any one of u guys solve my problem????
    I m trying to load an applet thru https protocol in both the browsers( IE 5.0 and Netscape 6.0). I am having a jar file which contains the applet class files and some helper files for the applet.When i m accessing the image URL (in the html file for the applet) thru https protocol itz working fine on both the browsers. But when i try to access codebase thru https i m getting different errors on both the browsers. Errors r as follows.
    Exception in IE 5.0
    java.net.ConnectException: HTTPS response=404
    at
    sun.plugin.protocol.https.BrowserHttpsInputStream.openStream(Native
    Method)
    at
    sun.plugin.protocol.https.BrowserHttpsInputStream.<init>(Unknown
    Source)
    at
    sun.plugin.protocol.https.BrowserHttpsURLConnection.getInputStream(Unknown
    Source)
    at sun.plugin.cachescheme.PluginURLConnection.downLoadFile(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.downloadJarFileToCache(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.cacheHandler(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.getJarFilesPath(Unknown
    Source)
    at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception in Netscape 6.0
    java.lang.ClassFormatError: package1/package2/package3/TiffViewer (Bad
    magic number)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at sun.plugin.security.PluginClassLoader.access$201(Unknown
    Source)
    at sun.plugin.security.PluginClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.security.PluginClassLoader.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)
    Plz help me out if any one of u guys have came across such type of problem. Its very very urgent as well as critical. Any help / suggestion will highly be appreciated
    tks in advance
    Soniya

    Hi..
    I m also facing the same problem as described above. I have checked up the path for the class files mentioned in the "code" param in the html file.I also tested with the sample program but could not succed in getting the result.Both the browsers give different error messages as mentioned in the query posted by soniya1.I would be thankful if u can kindly throw some light on this
    if u have some sample code u may kindly drop it to the following mail id
    [email protected]
    hope to hear from u soon
    tx in advance
    R.Lakshmi

  • Loading multiple applets

    Dear users,
    I am using Gemplus Cards. I am trying to
    load multiple applets with same package ID but
    not able to load. Please can any body
    let me know a set of clean steps or any source of Information
    Docs/Tutorials etc..
    Thanks
    Aslam

    hi!
    I was facing the same problem as you and had it fixed recently. You must change the code from your cardconvert batch file accordingly.
    Keeping in mind the command for the creation of a jca file should remain like this -->
    converter <options> package_name package_aid major_version.minor_version
    So we just change the <options> code to accomodate the additional applets. All else remains unchanged. Hope it helps =)

  • Cant load an applet in a JSP under tomcat localhost

    Hi, i am currently running tomcat 5.5. I load a jsp with an applet plugin on the host machine and it runs fine but when I try to connect to tomcat server from another pc he jsp loads but the applet does not. I get the following error.
    java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(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)
    <!-- Fig. 10.15: plugin.jsp -->
    <html>
       <head>
          <title>Wireless Sensors</title>
       </head>
       <body>
          <jsp:plugin type = "applet"
             code = "Charts" archive="jfreechart-1.0.4.jar, jcommon-1.0.8.jar, mysql-connector-java-3.0.10-stable-bin.jar, substance.jar"
             width = "980"
             height = "580">
             <jsp:params>
                <jsp:param name = "red" value = "255" />
                <jsp:param name = "green" value = "255" />
                <jsp:param name = "blue" value = "0" />
             </jsp:params>
          </jsp:plugin>
       </body>
    </html>If more detail is needed i can supply it no problem. I think the problem is when accessing the localhost from another PC the jar files I am using can not be seen. I am lost if anybody can help

    I have never seen anyone do this where it turned out to be a good idea. That said...
    1. Application servers usually don't allow extraneous files to be placed in the application root. they will generate a security exception in the app server when trying to load.
    2. Applets can only access the server they were loaded from. If the app server uses the page 10.1.1.2 and you are using www.myserver.com as the codebase, it won't work.

  • Can't load java applet? help please?

    I am trying to load a java applet after an upgrade - but security settings are blocking it - please help

    Java is no longer supported on Mac OS X 10.6.    The security of Java has been found to be so bad, you are lucky to get any Apps that work wtih it.    You need a minimum of Mac OS X 10.7.3 to run the latest Java applets and that using Java from http://www.java.com/  See the user tip here to optimize Java under 10.6.8
    https://discussions.apple.com/docs/DOC-5532

  • How to load an applet jar file?

    Hello everyone,
    I have an applet that uses my own jar file and approximately 6 third party jar files. I set up jar indexing (jar -i) which will download the jar files when they are needed. All seems to work well, but now I want to manually load the jar files which I cannot get working.
    When the applet starts, about 1/2 of the jar files are downloaded (because they are needed at startup). I then want to load the additional jar files in the background, after the gui is initialized. I have tried this using the below thread which is executed from within the applet's start method:
    // Try to load additional jar files in background by loading a class from each jar file.
    Thread loadClass = new Thread() {
      public void run() {
        System.out.println("Loading classes...");
        try {
          // Tried loading classes this way, doesn't work.
          getClass().getClassLoader().loadClass("pkg1.Class1");
          getClass().getClassLoader().loadClass("pkg2.Class2");
          getClass().getClassLoader().loadClass("pkg3.Class4");
          getClass().getClassLoader().loadClass("pkg4.Class4");
          /* Loading classes this way doesn't work either.
          Class.forName("pkg1.Class1");
          Class.forName("pkg2.Class2");
          Class.forName("pkg3.Class3");
          Class.forName("pkg4.Class4");
        catch(ClassNotFoundException e) {
          // First attempt to load a class (pkg1.Class1) throws exception.
          System.out.println("Can't find class: " + e.getMessage());
    loadClass.start();As you can see from above I am trying to load a class from each of the jar files so that the jar files would load into memory/cache. Unfortunately, it cannot find the classes. These are the errors from the java console:
    Loading classes...
    Loading: pkg1.Class1
    Connecting http://my.server.com/my_dir/pkg1/Class1.class with no proxy
    Connecting http://my.server.com/my_dir/pkg1/Class1.class with cookie "JSESSIONID=some_big_long_char_list"
    Can't find class: pkg1.Class1
    So it appears the jar file is not being downloaded. When I take away the dynamic jar loading (removing the "jar -i" & adding them all to the applet archive list) the thread executes correctly. So I know the class names, etc, are correct. How does one load an applet jar file?
    Any help/suggestions are appreciated.

    The above error I posted was because I forgot to index the jar files. That is why it couldn't find the jar file. I thought I was getting farther along with my problem, but I apparently just forgot to index the jars. I am now getting the problem that I got yesterday...
    The applet freezes/hangs when it hits the thread. The GUI never opens (even though I'm running this thread right after the gui shows). The java console quits responding and the applet just stays the grey screen. I also tried the invoke later that you suggested.
    public void start() {
      // ...initialize gui...
      // Applet freezes and remains grey, also the java console freezes.
      javax.swing.SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          System.out.println("Loading classes...");
          try {
            // When I comment out the below forName calls, the thread will still run evidenced through the done print statement.
            Class.forName("pkg1.Class1");
         Class.forName("pkg2.Class2");
         Class.forName("pkg3.Class3");
         Class.forName("pkg4.Class4");
            System.out.println("...Done loading classes");
          catch(Exception e)     {
            System.out.println("Can't find class: " + e.getMessage());
    }

  • The error occurred while trying to load UMEServiceFrame

    Hi,
       Here is full error line
    The error occurred while trying to load "com.sap.security.core.server.ume.service.UMEServiceFrame".
        Can someone tell me what exactly is wrong. We are running Netweaver 7 ehp1. These are the rest of the lines
            at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)
            at java.lang.Class.forNameImpl(Native Method)
            at java.lang.Class.forName(Class.java:152)
            at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:136)
            at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
            at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:83)
            at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:156)
    #1.5^H#AA43C515B303000F00000003000E20FA0004A70F7F225CE0#1309584906148#com.sap.engine.core.service630.container.ServiceRunner##com.sap.engine.core.service630.container.ServiceRunner#######SAPEngine_System_Thread[impl:5]_59##0#0#Error#1#/System/Server#Java###Core service com.sap.security.core.ume.service failed. J2EE Engine cannot be started.
    [EXCEPTION]
    #1#java.lang.NoClassDefFoundError: com.sap.security.core.IEngineResourceHelper
    Loader Info -
    ClassLoader name: [common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:signature_lib;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore]
    Parent loader name: [Frame ClassLoader]
    References:
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:ejb20
       library:servlet
       library:sapxmltoolkit
       library:compilation_lib
       interface:webservices
       library:core_lib
       library:com.sap.guid
       library:j2eeca
       library:com.sap.mw.jco
       interface:security
       interface:log
       interface:shell
       interface:keystore_api
       interface:tcseccertrevoc~interface
       library:com.sap.ip.basecomps
       library:com.sap.util.monitor.jarm
       library:opensql
       library:tcbltxmanager~plb
       library:tci18ncp
       interface:appcontext
       interface:endpoint_api
       interface:resourceset_api
       interface:resourcecontext_api
       common:service:iiop;service:naming;service:p4;service:ts
       interface:ejbcomponent
       interface:container
       interface:visual_administration
       interface:transactionext
       interface:dsr_ejbcontext_api
       service:timeout
       library:tc~jmx
       interface:cross
       service:file
       service:locking
       library:tcSLUTIL
       service:memory
       library:antlr
       library:jdbdictionary
       library:opensqlextensions
    Resources:
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/webservices_lib/saaj-api.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/webservices_lib/jaxrpc-api.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/basicadmin/jstartupapi.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/dbpool/sqljimpl.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/webservices_lib/jaxm-api.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_toolkit_api.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/jmx/jmx.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/signature_lib/signature.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/jmx/jmx_sec.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/security/security.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_csi.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/jmx_notification/jmx_notification.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_jaas.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/dbpool/dbpool.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/adminadapter/adminadapter.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/dbpool/opensqllib.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/connector/connectorimpl.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_service_api.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/com.sap.security.core.tpd.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_xmlbind.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/userstore/userstore.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_ssf.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_jaas.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_https.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/basicadmin/basicadmin.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_toolkit_core.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/com.sap.security.api.sda/com.sap.security.api.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/keystore/keystore.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_userstore_lib.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/configuration/configuration.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/com.sap.security.api.sda/com.sap.security.api.perm.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_jaas_test.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/basicadmin/jstartupimpl.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/com.sap.security.core.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/deploy/deploy.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/services/com.sap.security.core.ume.service/com.sap.security.core.ume.service.jar
       /usr/sap/EP2/JC00/j2ee/cluster/server0/bin/ext/security.class/tc_sec_compat.jar

    Solved by manually copying /usr/sap/<SID>/JCnn/j2ee/cluster/server0/bin/ext/com.sap.security.core.sda where com/sap/security/core/IEngineResourceHelper.
    class can be found.
    I had to perform jar -tvf to every .jar file mentioned in the trace

  • Trying to run sample applet 'Wallet'. What is PIN?

    Dear
    I'm trying to run sample applet 'Wallet' in java card development kit.
    I have 2 questions.
    1) I successfully upload 'cap file'. but I got an error when I install it.
    I don't know why.
    Below is the APDU
    cm> upload "C:\wallet.cap"
    => 80 E6 02 00 16 09 77 61 6C 6C 65 74 70 6B 67 08 ......walletpkg.
    A0 00 00 00 03 00 00 00 00 00 00 00 ............
    (114664 usec)
    <= 00 90 00 ...
    Status: No Error
    => 80 E8 00 00 FF C4 82 02 A8 01 00 13 DE CA FF ED ................
    01 02 04 00 01 09 77 61 6C 6C 65 74 70 6B 67 02 ......walletpkg.
    00 1F 00 13 00 1F 00 0D 00 0B 00 66 00 12 01 87 ...........f....
    00 0A 00 3A 00 00 00 DD 00 00 00 00 00 00 01 01 ...:............
    00 04 00 0B 01 00 01 07 A0 00 00 00 62 01 01 03 ............b...
    00 0D 01 09 77 61 6C 6C 65 74 61 70 70 00 01 06 ....walletapp...
    00 12 00 80 03 02 00 01 04 04 00 00 00 3A FF FF .............:..
    00 2D 00 42 07 01 87 00 04 30 8F 00 0A 18 1D 1E .-.B.....0......
    8C 00 09 7A 05 40 18 8C 00 16 18 8F 00 10 3D 06 ...z.@........=.
    10 08 8C 00 15 87 00 AD 00 19 1E 1F 8B 00 03 18 ................
    8B 00 12 7A 01 10 AD 00 8B 00 08 61 04 03 78 04 ...z.......a..x.
    78 01 10 AD 00 8B 00 06 7A 02 21 19 8B 00 02 2D x.......z.!....-
    18 8B 00 0F 60 03 7A 1A 03 25 10 B0 6A 08 11 6E ....`.z..%..j..n
    00 8D 00 0D 1A 04 25 75 00 2D 00 04 00 20 00 27 ......%u.-... .'
    00 30 00 21 00 40 00 1B 00 50 00 15 18 19 8C 00 [email protected]......
    0E 7A 18 19 8C 00 04 7A 18 19 8C 00 17 7A 18 19 .z.....z.....z..
    8C 00 0B 7A 00 ...z.
    (551929 usec)
    <= 90 00 ..
    Status: No Error
    => 80 E8 00 01 FF 11 6D 00 8D 00 0D 7A 03 24 AD 00 ......m....z.$..
    8B 00 13 61 08 11 63 01 8D 00 0D 19 8B 00 02 2D ...a..c........-
    1A 07 25 32 19 8B 00 07 5B 29 04 1F 04 6B 07 16 ..%2....[)...k..
    04 04 6A 08 11 67 00 8D 00 0D 1A 08 25 29 05 16 ..j..g......%)..
    05 10 64 6E 06 16 05 63 08 11 6A 83 8D 00 0D AF ..dn...c..j.....
    01 16 05 41 11 27 10 6F 08 11 6A 84 8D 00 0D 18 ...A.'.o..j.....
    AF 01 16 05 41 89 01 7A 03 24 AD 00 8B 00 13 61 ....A..z.$.....a
    08 11 63 01 8D 00 0D 19 8B 00 02 2D 1A 07 25 32 ..c........-..%2
    19 8B 00 07 5B 29 04 1F 04 6B 07 16 04 04 6A 08 ....[)...k....j.
    11 67 00 8D 00 0D 1A 08 25 29 05 16 05 10 64 6E .g......%)....dn
    06 16 05 63 08 11 6A 83 8D 00 0D AF 01 16 05 43 ...c..j........C
    63 08 11 6A 85 8D 00 0D 18 AF 01 16 05 43 89 01 c..j.........C..
    7A 03 22 19 8B 00 02 2D 19 8B 00 11 32 19 05 8B z."....-....2...
    00 0C 1A 03 AF 01 8D 00 18 3B 19 03 05 8B 00 05 .........;......
    7A 04 22 19 8B 00 02 2D 19 8B 00 07 5B 32 AD 00 z."....-....[2..
    1A 08 1F 8B 00 14 61 08 11 63 00 8D 00 0D 7A 08 ......a..c....z.
    00 0A 00 00 00 .....
    (405152 usec)
    <= 90 00 ..
    Status: No Error
    => 80 E8 80 02 AE 00 00 00 00 00 00 00 00 05 00 66 ...............f
    00 19 02 00 00 00 02 00 00 01 03 80 0A 01 03 80 ................
    09 08 06 00 00 F0 03 80 0A 04 03 80 09 05 03 80 ................
    0A 06 03 80 09 02 06 00 00 0D 01 00 00 00 06 00 ................
    01 69 03 80 0A 09 06 80 07 01 06 00 01 49 03 80 .i...........I..
    03 03 01 80 09 00 03 80 0A 07 03 80 03 01 03 80 ................
    09 04 03 80 09 01 06 80 09 00 06 80 03 00 06 00 ................
    00 94 06 80 10 06 09 00 3A 00 0E 1F 02 0F 0D 5A ........:......Z
    41 11 05 05 41 0E 05 16 1A 00 28 04 06 07 04 07 A...A.....(.....
    0A 04 08 0D 07 05 10 1D 06 06 06 07 08 08 04 09 ................
    12 15 10 10 08 04 09 12 15 0D 0F 05 06 07 07 07 ................
    05 0A 08 00 ....
    (658167 usec)
    <= 00 90 00 ...
    Status: No Error
    Load report:
    684 bytes loaded in 1.8 seconds
    effective code size on card:
    + package AID 9
    + applet AIDs 16
    + classes 21
    + methods 394
    + statics 0
    + exports 0
    overall 440 bytes
    cm> install -i 77616c6c6574617070 -q C9#() 77616c6c6574706b67 77616c6c6574617070
    => 80 E6 0C 00 24 09 77 61 6C 6C 65 74 70 6B 67 09 ....$.walletpkg.
    77 61 6C 6C 65 74 61 70 70 09 77 61 6C 6C 65 74 walletapp.wallet
    61 70 70 01 00 02 C9 00 00 00 app.......
    (269663 usec)
    <= 6A 80 j.
    Status: Wrong data
    jcshell: Error code: 6a80 (Wrong data)
    jcshell: Wrong response APDU: 6A80
    Unexpected error; aborting execution
    Another question
    2) According to the code I have to specify PIN number when I
    install it. Is PIN different from PIN in the card?
    Is it application dependent?
    private WalletApp (byte[] bArray, short bOffset, byte bLength){
              pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
              // bArray contains the PIN initialization value
              pin.update(bArray, bOffset, bLength);
              // register the applet instance with the JCRE
              register();
         } // end of the constructor
    Anyone can help?
    I really appreciate your help

    2) According to the code I have to specify PIN number when I
    install it. Is PIN different from PIN in the the card?
    Is it application dependent?Yes, it is an card idependent but application dependent PIN.
    Jan

  • Trying to include an applet in a JSP page

    Hello,
    I have a jsp page trying to include an applet class in it.
    Both of them are part of a war file put on an apache server.
    The directories tree looks like this :
    root
    MyJSPPage.jsp
    WEB-INF
    classes
    MyDir
    MySubDir
    MyApplet.class
    In MyJSPPage.jsp, the code looks like this :
    <jsp:plugin type="applet"
    code="MyApplet.class"
    codebase="/WEB-INF/classes/MyDir/MySubDir">
    </jsp:plugin>
    When loading the page on my browser, it fails, and the java console indicates the following :
    java.lang.ClassNotFoundException: MyApplet.class
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:153)
         at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:506)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:567)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1778)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:496)
         at sun.applet.AppletPanel.run(AppletPanel.java:293)
         at java.lang.Thread.run(Thread.java:536)
    I tried several things for codeBase :
    codebase="/WEB-INF/classes/MyDir/MySubDir"
    codebase="/MyDir/MySubDir"
    codebase="MyDir.MySubDir"
    without any success.
    Could you tell me what is wrong?
    Thanks in advance,
    Olivier

    Hello,
    I tried what you proposed.
    It continue to fail. I think I haven't give you the whole stack :
    charger : classe MyClass.class introuvable.
    java.lang.ClassNotFoundException: MyClass.class
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:153)
         at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:506)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:567)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1778)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:496)
         at sun.applet.AppletPanel.run(AppletPanel.java:293)
         at java.lang.Thread.run(Thread.java:536)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:252)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
    What ca this HTTP connection failed stuff be?
    Help, thanks in advance,
    Olivier

  • How can i load a applet in a jsp page

    hi ,
    i am chiranjit , i am working in a jsp project . i want to load a applet in a jsp page.previously i had tried this one through <jsp:plugin> but when it goes in cross platform this page unable to load the applet from the serverside.
    if have any solution then pls send the solution in forum.
    thank you.
    chiranjit

    I never tried this... but doesn't the normal html <applet> tag work?

  • How do I load an applet in a JSP?

    i have coded an applet in a JSP, the page loads without any errors, but I am not able to view the applet. Any clues? thanks in advance

    I have never seen anyone do this where it turned out to be a good idea. That said...
    1. Application servers usually don't allow extraneous files to be placed in the application root. they will generate a security exception in the app server when trying to load.
    2. Applets can only access the server they were loaded from. If the app server uses the page 10.1.1.2 and you are using www.myserver.com as the codebase, it won't work.

  • Loading Java Applet....again

    Hi,
    I've done a search on this topic and have not been able to resolve the problem.
    The problem being that after trying to "Run a Form on the Web" using test.fmx, The loading java applet message stays in the browser indefinitely.
    Some have suggested turning on the JInitiator Console to get a better understanding of the problem.
    My problem is that when I click the "Show Java Console" and then "apply" in the JInitiator Control Panal nothing happens. I'm completely new to all of this, is there anything else I have to do to display the Java console?
    Java consoles aside, any suggestions as what else I can do? When I first run the form I get an "applet loading" message in the browser status bar for a split second, followed by "exception:http://<servername.domain>/forms60java/f60web.jar"
    I'm using IE 5.00 and jinitiator 1.1.7.27
    Thanks for any help.
    Darren

    Anyone knows what's the classid of Jinitiator 1.1.7.31?
    Thanks a heap for any replies
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dhananjay Jawale ([email protected]):
    Hi,
    Please make sure what Shay has suggested about the correct class id . For Jinitiator 1.1.7.27 it is 093501ce-d290-11d3-a3d6-00c04fa32518
    Check your toolbar if you can see a application icon with java cup. If you can get it, maximize it .
    This is a known problem with OS like Windows 95.
    In my application support, i get calls regarding not able to find the login screen and i help them in same way.
    Try it and let us know
    Thanks,
    Dhananjay<HR></BLOCKQUOTE>
    null

Maybe you are looking for