"class not found error" and applets ...

To run an applet inside an html page using the embedded oc4j i have to copy the library containing the applet to the same directory as the html page. Otherwise i get a class not found error....Is there a better way of doing this?
thanks in advance for any advise
owen

Hi,
you should be able to reference the JAR file from teh HTML tag. If not then this sounds like a bug that should be filed
Frank

Similar Messages

  • Class not found error for applet.

    This is probally a really simple mistake but I've tried everything and can't find it.
    My applet works fine with applet viewer - I'm running it from JBuilder. But when I open my html file in the browser it gives me a 'Class not found' error. I've tried running other applets (my own and demos on this site) and they work fine.This is the applet tag code:
    <applet code = "Rotary.class" width = "650" height = "580" align = "top">
    <!-- coordinates of sectors -->
    <param name = "sector0" value ="234,215,244,207,154,43,125,63">
    </applet>
    The class file is in the same directory as the HTML file. Do I need to specify the codebase? I tried that too - giving it the full pathname of the class.
    In the Java console it said that it couldn't find "C:Project\Rotary\javax\swing\japplet"
    I don't think it could have anything to do with the fact that I'm using swing because the other applets I used used swing.
    Please help - I'm really running out of ideas here!

    You have a similar problem like I had.
    You seem to have a too old JAVA environment for the browser - I had a too new environment.
    For all who are experiencing the same problem!
    Problem:
    You're compiling your applets with a quiet modern compiler (i.e. Netbeans Version 3.5.1)
    You are able to compile your applets without any problems but if you try your applets in "real life", the browsers can't interpret your applets [class not found]. (I tested Internet Explorer 6.0 and Netscape Navigator 4.7)
    So you need a plugin for the new JAVA environment because the JAVA environment of the browser is older than that which the applet needs.
    Well, you have the choice to demand to every user of your applet to download the new Java Runtime Environment, but then don't wonder why nobody visits your site!
    But, don't worry: I figuered out another solution, that Netbeans (www.netbeans.org) allows to compile in different JAVA versions.
    Solution:
    What you have to do is:
    - Install a previous version of JDK (i.e. JDK 1.3 - I would suggest, lower versions don't work with Netbeans 3.5.1 and JDK 1.3 is enough for IE 6.0 and NN 4.7, which I tested)
    - Go into the "bin"-directory of Netbeans (i.e. c:/netbeans3.5.1/bin)
    - Open the file "ide.cfg" (with notepad or any other texteditor)
    - You see a line like: jdkhome "C:\java\j2sdk1.4.2" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - Change the path to your other JDK you wish, like: jdkhome "C:\java\jdk1.3" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - That's it, you can compile your applets in a previous version of JAVA so that "older" browser user don't have to install a plugin for the new JAVA environment.
    Have fun!
    If you have any questions I would be pleased to help you.
    If this tip helped you already I would be pleased if you would send me a quick email with your experience.
    My email: [email protected]

  • Class not found in signed applet

    Hello
    I am using a signed applet and am getting a class not found exception
    this works fine when i run it in the IDE but get the exception when i try to load the applet from the web browser in the application.
    java.lang.ClassNotFoundException: MyApplet
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162)
    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:566)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:619)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:548)
    at sun.applet.AppletPanel.run(AppletPanel.java:299)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:265)
    at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)
    at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)
    ... 9 more
    I have my applet code in the applet folder
    here is my jsp call
    <applet code="MyApplet" codebase="../applet" archive="SMyApplet.jar" width=400 height=400>
    </applet>
    here is my applet code
    package applet;
    import java.applet.*;
    import java.awt.*;
    public class MyApplet extends Applet
    public void paint(Graphics g)
    g.drawString("Generate Me",50, 50);
    }

    If i do
    <APPLET CODE="xxx.class" CODEBASE="." ARCHIVE = "skshrad.jar , javax.jar" WIDTH=500 HEIGHT=500>
    is it correct?
    because it still appeared class not found error..
    This is a signed applet
    thanks..
    i try to put 2 directories in a jar also did not work..

  • Class not found error over HTTPS connection

    Problem: Facing problem in downloading signed JAR file over HTTPS connection.
    While downloading the jar file over a https connection, i get a certificate with following message
    " Do you want to accept the certificate from web site <server name> for the purpose of exchanging encrypted information? "
    If i accept the ceritificate immediately without any delay, all goes fine. The jar file gets downloaded and the applet runs withoput any problem. But if we accept the certificate after some delay say after one or two minutes i get "Class not found error"
    Has anybody come across any such issue ?
    Thanks in advance.
    Rohit

    I got the same error. I believe the ssl connection has a short timeout.
    But I don't think this is a bug because there is no sense in letting a ssl connection open in the initial state before accepting the server's certificate.

  • Strange "class not found" errors

    here's the problem:
    i noticed that when you "run" an html page with a java applet in it, jdeveloper (ver 9.0.3) doesn't really process the page but instead it runs your applet in an applet window. the applets i made don't have a problem running this way, but when i force jdeveloper to run them in a browser window (ie, by loading the webpage housing the applet as a frame in another page), i get "class <mypackagename.myclassname> not found" errors and the applet doesnt run. this only started after i installed then uninstalled the latest jdk from sun (since it caused problems with jdeveloper) and reverted to the jdk that came with jdev. i already tried adding to the classpath project settings the paths of both the package and the class itself but still it doesn't work.
    even stranger still, another applet that i installed before (a 3rd party applet: mgmapguide viewer) works fine regardless wether its run in the page itself or in an appletviewer.
    i'm obviously missing something here, can someone point out what? any help would be appreciated.
    thanks in advance

    JDeveloper does this intentionally..
    Here is more info on how JDev deals with Applets and
    HTML pages.
    JDeveloper 903's Documentation:
    Top Level
    Developing Java GUI Clients> Working with Applets

  • Class not found error while accessing a Web Service

    Hi All,
    Im getting a Class not found error while doing method calls of a third party API.
    The required jars(axis.jar) are set in the weblogic 8.1 classpath and I tried putting those jars(axis.jar) in my application lib folder also, but dint help. Please help me with a solution.
    I'll paste the exception logs here by
    java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
    at java.lang.ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/CodeSource;)Ljava/lang/Class;(SecureClassLoader.java:123)
            at java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;(URLClassLoader.java:251)
            at java.net.URLClassLoader.access$100(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;(URLClassLoader.java:55)
            at java.net.URLClassLoader$1.run()Ljava/lang/Object;(URLClassLoader.java:194)
            at jrockit.vm.AccessController.do_privileged_exc(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;I)Ljava/lang/Object;(Unknown Source)
            at jrockit.vm.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Unknown Source)
    Thanks
    Noufal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Verify the 3rd party class files names are correctly written in your program. Sometimes wrong case might be the reason.
    bye for now
    sat

  • Class not found error afer loading classes to oracle

    hi i have loaded quite a few jars into oralce 11g databse
    created a java stored function
    and executed it
    some times it works... and hits the java front end environment... we are hitting a servlet.. and recording some output statements .. in the function
    but sometimes it throws class not found error
    any idea why its working sometimes and not some othr times?
    Also when i load the jars.. the classes are loaded but when i see the name of the classes using
    select * from user_objects where object_type like 'J%'
    then i see some additional characters prefixxed the class names ... is that causing the problem?
    something like this
    /1a248e6f_GetMethod
    Edited by: learning_man on Mar 11, 2010 1:27 PM

    Learning_man,
    Obviously you need to learn how to ask a question.
    There is nothing in your post other than 'It doesn't work. Why? Help"
    without any specific example. Also you still fail to include a 4 digit version!!!
    It is also the third or the fourth time you asked this very same question.
    Can you learn how to ask a question please? And stop repeating the question when you don't get a response?
    And no, the extra characters are not the problem.
    An incorrect CLASSPATH probably is.
    Sybrand Bakker
    Senior Oracle DBA

  • "Class not found" error at runtime when ExternalLib DC is included in WD DC

    Hi All,
    I am getting "Class not found" exception at runtime when external library DC is included in Webdynpro DC.
    I am following the below steps..
    1) Created a Webdynpro DC - "testProj" to which i need to add the external library DC.
    2) Created a DC of type "External Library" called "externaljar"
    3)Added Public Parts of type assembly and compilation to the "externaljar" DC (Component Properties Tab -> Public Parts)
    4) Right click on the assembly Public Part name -> Manage entities, and added the JAR files as archive.
    5)Right click on the compilation Public Part name -> Manage entities, and added the JAR files as archive.
    6)Go to Webdynpro DC "testProj" .
    Under Component Properties Tab -> Dependencies tab -> Add -> selected the "externaljar" DC -> Next -> for "externaljar" DC checked Deploy time and Run time.
    For assembly Public Part and compilation Public Part "build" is selected by default.
    7) I did build of both the DC's and deployed it.
    Im getting "Class not found" error.
    Please let me know where i am going wrong.
    Thanks,
    Shilpa.

    Hi Balakrishna,
    If I add Jar files in build path, at run time I dont get any errors, but I get error at comple time. So an external DC is made which includes all jar files in its public part and this DC is added as dependency in the webdynpro project (at deploy time,run time) as in below blog.
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    Here im getting the error "class not found".
    Thanks,
    Shilpa.
    Edited by: Shilpa KG on Jun 18, 2008 4:42 PM
    Edited by: Shilpa KG on Jun 18, 2008 4:44 PM

  • Class not found error on Firefox browser

    Requirement:-
    We have Apache server on the top of a tomcat container where we have deployed application Webnow. This application will provide SSO to another application Imagenow. The requirement is we have to authenticate and authorize a user based on the client certificate which will be installed on the client side browser.
    Issue:-
    We have achieved the requirement for the browser IE. But for browser Firefox ,we are getting an exception "Class not found". Basically an applet class from the jar is not getting loaded on the Firefox.
    Further investigating on this we came to conclusion that Firefox is not able to read the SSL certificate.
    In order to eliminate this, we have imported the client certificate in java console as well. After this step, we were not getting "ClassNotFoundException" in FF. But right now, user is getting prompted for certificate/keystore password each & every time while trying to login onto the application (both in IE & FF).
    So, we are trying to find ways to remove class not found exception without importing client certificate to java console. Also , is there any way to eliminate the authentication pop up for keystore (though we might not go for this approach as it will be very difficult to manage Java console for end users). Need your urgent help on this issue.
    Attaching stack trace of both the browser and screenshot of keystore authentication pop-up . FF_Issue_stacktrace.docx is one when we were getting "class not found exception" and IE_Stacktrace.docx is one for successful case.

    We have a similar set up where we have a web app and an applet in a JSP page. You have to put your applet classes up above WEB-INF. So, if your structure for your webapp was:
    tomcat/webapps/mywebapp
    you'd want your classes under mywebapp instead of webapps/mywebapp/WEB-INF. In your case, if I read your package structure right, you'd want a Log directory under webapp that contains your LogApplet.class file.
    I hope this works for you!

  • Servlet class not found error deploying a WAR on Web Logic Server 8.1

    I'm re-deploying an updated web application to a web logic server, but when I navigate to the login page of the web application to test it, I get a class not found error for my login servlet. I have both the web.xml and the weblogic.xml descriptors in my WEB-INF directory, and all of my compiled classes are in the WEB-INF/classes directory, is there something else I'm missing? Any help would be much appreciated.

    Thanks for the response. Here's the web.xml file:
    <?xml version="1.0" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <display-name>Web Forms</display-name>
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <display-name>LoginServlet</display-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <display-name>ChangePasswordServlet</display-name>
    <servlet-class>ChangePasswordServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>LogoutServlet</servlet-name>
    <display-name>LogoutServlet</display-name>
    <servlet-class>LogoutServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>PageServlet</servlet-name>
    <display-name>PageServlet</display-name>
    <servlet-class>PageServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>UploadServlet</servlet-name>
    <display-name>UploadServlet</display-name>
    <servlet-class>UploadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <url-pattern>/ChangePasswordServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>LogoutServlet</servlet-name>
    <url-pattern>/LogoutServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>UploadServlet</servlet-name>
    <url-pattern>/UploadServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PageServlet</servlet-name>
    <url-pattern>/PageServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>Login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    None of the classes are in a package (I know it's not the best idea, but I didn't write these, I'm just doing some updates). So the file structure is pretty much just WEB-INF/classes/
    At the moment I've got a fix by just putting the entire project (not in any sort of archive) on the server itself instead of deploying it as a WAR, any thoughts on why the WAR isn't working would be much appreciated though.

  • WLS 7 SSL class not found error

    Actually, I got the same error message to start the Node Manager. However, I don't
    have the RSA license at this moment. How can it make the WL to use com.certicom.net.ssl.CerticomContextWrapper
    instead of com.rsa.ssl.WeblogicContextWrapper?
    Thanks,
    Victor
    "Pavel Smelkov" <[email protected]> wrote:
    It looks like ClassNotFoundException happend when WLS tried to initialize
    SSL implementation class, which is
    com.certicom.net.ssl.CerticomContextWrapper by default, or
    com.rsa.ssl.WeblogicContextWrapper if you have an RSA license. Since
    Certicom classes are shipped in weblogic.jar, you must have RSA license,
    but
    no RSA SSL classes in the server classpath?
    Pavel.
    "Jeff Davis" <[email protected]> wrote in message
    news:[email protected]...
    I'm having difficulty configuring the SSL port to listen to httpsrequests. The error
    that I always receive (regardless of which sample I maybe running,from
    the server
    samples to the portal ones) is similar to the following (notice the"Not
    listening
    for SSL, java.net.SocketException: Class not Found" error):
    **** START OF CONSOLE LOG **** <Jul 1, 2002 5:07:21 PM PDT> <Notice><Management>
    <141052> app tag removed <!--- Application Poller started for developmentserver.>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ After the server hasbooted, your
    browser should automatically launch and point to the WebLogic ServerIndex
    running
    on this server. If your browser fails to launch, point your browserto the
    URL "http://JDavis-m1:7001/examplesWebApp/index.jsp"
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <Jul 1, 2002 5:07:22PM
    PDT> <Emergency>
    <Security> <090034> <Not listening for SSL, java.net.SocketException:Class not Found.>
    <Jul 1, 2002 5:07:23 PM PDT> <Notice> <WebLogicServer> <000354> <Thread"ListenT
    hread.Default" listening on port 7001> <Jul 1, 2002 5:07:23 PM PDT><Notice> <Management>
    <141030> <Starting discovery of Managed Server... This feature is onby
    default,
    you may turn this off by pas sing -Dweblogic.management.discover=false><Jul 1, 2002
    5:07:23 PM PDT> <Notice> <WebLogicServer> <000331> <Started WebLogic
    Admin Server
    "examplesServer" for domain "examples" running in Development Mod e><Jul
    1, 2002
    5:07:23 PM PDT> <Notice> <WebLogicServer> <000365> <Server state changed
    to RUNNING>
    <Jul 1, 2002 5:07:23 PM PDT> <Notice> <WebLogicServer> <000360> <Serverstarted in
    RUNNING mode>
    **** END OF CONSOLE LOG **** I haven't made any changes to the SSLsetup,
    other than
    simply indicating I want it active (if that choice is not already active)
    I am just seeking to get the SSL using the test/demo certificate tofunction so that
    I can complete a demo of the commerce product to a client (requiresport
    7502 to
    function)
    Thanks!
    Jeff Davis
    </textarea> <br>
    <input type=submit name="action" value="Post" >
    </font></td></tr></table>
    </form>
    <hr>
    </FONT>
    <!-- ** COPY CONTENT INTO THIS SECTION HERE ** -->
    </TD>
    </TR>
    </TABLE>
    <!--start footer include -->
    <table width="720" border="0" cellspacing="0" cellpadding="0">
    <tr bgcolor="#CCCCCC">
    <td><img name="news_r06_c01" src="/images/shim.gif" width="1" height="1" border="0"></td>
    </tr>
    <tr>
    <td nowrap>
    <div align="left"><img name="news_r17_c01" src="/images/footer1.gif" width="467"
    height="18" border="0"><img name="news_r17_c31" src="/images/footer2.gif" width="200"
    height="18" border="0" usemap="#news_r17_c31Map"><MAP name="news_r17_c31Map"><AREA
    shape="rect" coords="139,2,167,18" href="http://www.bea.com/privacy.html"><AREA
    shape="rect" coords="80,3,127,16" href="mailto:[email protected]"><AREA shape="rect"
    coords="11,4,73,16" href="http://www.bea.com/contact/index.html"></MAP></div>
    </td>
    </tr>
    </table>
    <!--end footer include -->
    </BODY>
    </HTML>
    </body></html>

    Thanks for your responce ...
    I had discovered that when I typed "java program name" the java was running from /usr/bin a non-ssl enabled java installation. There was an SSL enabled version under another path on this box and it ran my code fine.

  • Class Not Found Error during provisioning

    Hello,
    I am running on jboss-4.0.3-SP1, OIM 9.0.3 latest patch. I am new to this implementation and just rebuilt the dev environment. I am checking the provisioning of the resources and ran into a class not found error.
    The error says:
    2011-10-19 10:23:17,111 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcADPClassLoader/findClass entered.
    2011-10-19 10:23:17,111 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcADPClassLoader:findClass - Data: loading class - Value: com.jscape.inet.ssh.SshException
    2011-10-19 10:23:17,112 ERROR [XELLERATE.SERVER] Error encountered in save of Data Object com.thortech.xl.dataobj.tcScheduleItem
    2011-10-19 10:23:17,112 ERROR [XELLERATE.SERVER] Class/Method: tcDataObj/save encounter some problems: com/jscape/inet/ssh/SshException
    java.lang.*NoClassDefFoundError*: com/jscape/inet/ssh/SshException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFAPROVISIONING.implementation(*adpFAPROVISIONING.java:92*)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    xxxxxxxxxxxxx
    When I looked at the process task named "FA Provisioning", line 92, I see this reference:
    90:
    91: //Initialize persistant object "INIT"
    92: clsINIT = Class.forName("*com.cpsg_inc.oim.unix.SSHCommandExecutor*");
    93: maoConstructorArgs = new Object[]{};
    94: masConParamTypes = new Class[]{};
    95: moCons = clsINIT.getConstructor(masConParamTypes);
    96: INITconsObj = moCons.newInstance(maoConstructorArgs);
    xxxxxxxxxxx
    When I open the adapter task named iNIT Connection (this is the first task in the FA Provisioning process task Adapter), API Source: JavaTaskJar:cpsgUnix.jar
    Application API: com.cpsg_inc.oim.unix.SSHCommandExecutor
    Constructors: 0 public com.cpsg_inc.oim.unix.SSHCommandExecutor()
    Methods: 9 public void com.thortech.xl.integration.tenetssh.helper.SSHPrvosioning.SSHInit(...)
    xxxxxxxxxxxx
    Then I made sure the jar file named cpsgUnix.jar is present in the OIM_HOME/JavaTasks directory.
    But still I have the error.
    What am I missing?
    thanks
    Khanh

    Thanks everyone for your input.
    I added the sshfactory.jar file in the JavaTask folder and it worked.
    Thanks again.
    Khanh

  • Bean class not found error...

    I am using Tomcat 4.0 on windows 98, when I try to use my bean class from jsp program, I get class not found error. I read/followed all the similar problems in the forum but still have not been able to solve the problem.
    The error I get is as follows:
    ==============================
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 1 in the jsp file: /handoff1.jsp
    Generated servlet error:
    D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:56: Class com.cartapp.user.User not found.
    com.cartapp.user.User handoff = null;
    ^
    An error occurred at line: 1 in the jsp file: /handoff1.jsp
    Generated servlet error:
    D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:59: Class com.cartapp.user.User not found.
    handoff= (com.cartapp.user.User)
    ^
    An error occurred at line: 1 in the jsp file: /handoff1.jsp
    Generated servlet error:
    D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:64: Class com.cartapp.user.User not found.
    handoff = (com.cartapp.user.User) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.cartapp.user.User");
    ^
    3 errors, 1 warning
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
    =============================================
    Location of files
    ==================
    My jsp file is located at:
    D:\Apps\Apache\Tomcat4.0\webapps\ROOT\cartapp
    my bean class - User - is at:
    D:\Apps\Apache\Tomcat4.0\webapps\ROOT\WEB-INF\classes\com\cartapp\user
    Contents of the jsp file
    =======================
    <jsp:useBean id="handoff" scope="session" class="com.cartapp.user.User" />
    <HTML>
    <BODY>
    This is the setting page!
    <%
    handoff.setFirstName("George");
    %>
    </BODY>
    </HTML>
    The first 2 lines of the class are:
    ==================================
    package com.cartapp.user;
    public class User {
    Environment settings
    ====================
    JAVA_HOME=D:\Apps\java\jdk
    CATALINA_HOME=D:\Apps\Apache\Tomcat4.0
    CLASSPATH=;.;F:\ola\progmn\JAVA\pkgs;D:\Apps\Apache\Tomcat4.0\common\lib\servlet.jar
    Can anyone please help. Thanks.
    Thanks.
    Ola Oke (SCJP 1.4)

    Not certain but try putting the classes folder in your classpath:
    D:\Apps\Apache\Tomcat4.0\webapps\ROOT\WEB-INF\classes\

  • APPLET.class not found error on explorer!! need solution URGENTLY!!!

    Hi,
    I am calling my applet from a jsp and trying to run it on the internet explorer but I am getting the following error:
    load: class /WEB-INF/classes/Log/LogApplet.class not found.
    java.lang.ClassNotFoundException: .WEB-INF.classes.Log.LogApplet.class
    My Explorer version is 6.0 and I am using Plug-in: Version 1.4.1_05. Why do you think it cannot find the class? it is located under the specified directory which is:
    /Web Content/WEB-INF/classes/Log/LogApplet.class
    and my jsp which is calling my applet is located under:
    Web Content/Login.jsp
    this is a very urgent problem!! could you please help me? I will appreciate your help so much.
    Thanks,
    Sofia
    here is how I wrote my jsp:
    <jsp:plugin type="applet"
    code="/WEB-INF/classes/Log/LogApplet.class"
    width="600"
    height="620"
    >
    <jsp:params>
    </jsp:params>
    <jsp:fallback>
    <p>Unable to start plugin.</p>
    </jsp:fallback>
    </jsp:plugin>
    ...

    I'm having the same problem...however my applet is located outside of the web-inf folder. the web-inf folder is only for servlets. applets can't be recognised inside it since that folder is for server-side application while applets are meant for client-side.
    i put my applet into a separate folder in the root directory of the webapp but it's generating a security error when i call it using a jsp page. so far the only way i got around it was specifying the entire codebase using localhost...but it's not a pretty good way of doing it.
    any ideas anyone?

  • Keep getting VncViewer.class not found error when trying to use Windows 7

    Greetings,
    I have no issue accessing the OVM Manager 2.2 with OEL 5.4 x86_64 with the latest Java release from ULN. But when I use a Windows 7 client ( x86) with the Sun Java 6 Update 18 I get the following error when trying to access the Console of a VM Guest:
    Java Plug-in 1.6.0_18
    Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\deverej
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class VncViewer.class not found.
    java.lang.ClassNotFoundException: VncViewer.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://141.144.112.202:8888/OVS/faces/app/VncViewer/class.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: VncViewer.class
    I am curious fi I should use only a specifc Java Engine with IE 7 or the latest Firefox browers.

    Same issue to with Windows XP SP3 x86 with Java Runtime Enviornment 1.5.0_15
    J2SE Enviornment 5.0 Update 15
    Java 6 Update 17

Maybe you are looking for

  • How can I get a list view after selecting "see all"?

    I just updated to iTunes 12.  I've looked on the net for this but couldn't find anything on it. Previously when I searched for something in the iTunes store I'd pick a certain category of media (podcasts, for example).  It would give me the first few

  • Need suggestion in BENEFITS for a STD Plan

    My client has STD plan with standard 60% and 100% coverage, But the no. of weeks employee gets 100% coverage depends on employee's years of service. And the cost is 1.45 per $1000 of coverage....max 12,000 Ex:   <u>Years of Service</u>         -     

  • Dependencies of meta data in XML forms builder

    Hello, I created property metadata with dependencies between them. In my example the base property is "Type" (e.g. Programming, Customizing, Formulars). The shell property is "Theme", is set to maintainable and got the additional metadata: "dependOn=

  • User Details Data Source

    Hello all, I´m working to configure the user search data source and also user details data source from our GRC AC environment. Bellow my doubt: Can I configure GRC AC to automatically fill the Manager field in the access request screen? Obviously the

  • How can i buy apps if i forgot my security question answers?

    HEEEEELP