Servlet applet  : ClassNotFoundException

i m using jrun for testing servlet
i have created a servlet and it prints the following
out.println("<html>");
out.println("<body>");
out.println("<applet code=\"MyApplet\" width=\"200\" height=\"200\"></applet>");
out.println("</body>");
out.println("</html>");
but when this page load in browser it shows an error
ClassNotFoundException is throwns
i have place MyApplet.class in root directory of jrun as well as root\web-inf\classes
but it didn't work

Specify the codebase in the applet tag.

Similar Messages

  • Servlet Applet object communication problem???!!!

    Hy folks,
    I need to validate the ability of complex Servlet Applet communication an run into my first pb right at the beginning of my tests. I need to have around 200 Applet clients connect to my servlet and communicate by ObjectInput and ObjectOutput streams. So I wrote a simple Servlet accepting HTTP POST connections that return a Java object. When the java Applet get instantiated, the Object Stream communication workes fine. But when the Applet tries to communicate with the servlet after that, I can not create another communication session with that Servlet, instead I get a 405 Method not allowed exception.
    Summarized:
    - Applet init() instantiate URLConnection with Servlet and request Java object (opening ObjectInput and Output Stream, after receaving object, cloasing streams).
    - When I press a "get More" button on my Applet, I am not able to instantiate a new URLConnection with my servler because of that 405 exception, WHY???
    Here my Servlet code:
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
             ObjectInputStream inputFromApplet = null;
             ArrayList transmitContent = null;       
             PrintWriter out = null;
             BufferedReader inTest = null;
             try{               
                   inputFromApplet = new ObjectInputStream(request.getInputStream());           
                     transmitContent = (ArrayList) inputFromApplet.readObject();       
                     inputFromApplet.close();
                     ArrayList toReturn = new ArrayList();                 
                     toReturn.add("One");
                     toReturn.add("Two");
                     toReturn.add("Three");
                     sendAnsweredList(response, toReturn);                 
             catch(Exception e){}        
         public void sendAnsweredList(HttpServletResponse response, ArrayList returnObject){
             ObjectOutputStream outputToApplet;    
              try{
                  outputToApplet = new ObjectOutputStream(response.getOutputStream());          
                  outputToApplet.writeObject(returnObject);
                  outputToApplet.flush();           
                  outputToApplet.close();              
              catch (IOException e){
                     e.printStackTrace();
    }Here my Applet code:
    public void init() {         
             moreStuff.addActionListener(new ActionListener(){
                  public void actionPerformed(ActionEvent e){
                       requestMore();
             try{
                  studentDBservlet = new URL("http://localhost/DBHandlerServlet");              
                  servletConnection = studentDBservlet.openConnection();      
                   servletConnection.setUseCaches (false);
                   servletConnection.setDefaultUseCaches(false);
                   servletConnection.setDoOutput(true);
                   servletConnection.setDoInput(true);
                   ObjectOutputStream outputToApplet;
                 outputToApplet = new ObjectOutputStream(servletConnection.getOutputStream());          
                 outputToApplet.writeObject(new ArrayList());
                 outputToApplet.flush();           
                 outputToApplet.close(); 
                   ObjectInputStream inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
                   ArrayList studentVector = (ArrayList) inputFromServlet.readObject();
                   area.setText("Success!\n");
                   for (int i = 0; i<studentVector.size(); i++) {
                        area.append(studentVector.get(i).toString()+"\n");
                  inputFromServlet.close();
                  outputToApplet.close();             
              catch(Exception e){
                   area = new JTextArea();
                   area.setText("An error occured!!!\n");
                   area.append(e.getMessage());
            getContentPane().add(new JScrollPane(area), BorderLayout.CENTER);
            getContentPane().add(moreStuff, BorderLayout.SOUTH);
        private void requestMore(){
             try{              
                  studentDBservlet = new URL("http://localhost/DBHandlerServlet");                             
                  servletConnection = studentDBservlet.openConnection(); 
                   ObjectInputStream inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
                   ArrayList studentVector = (ArrayList) inputFromServlet.readObject();
                   area.setText("Success2!\n");
                   for (int i = 0; i<studentVector.size(); i++) {
                        area.append(studentVector.get(i).toString()+"\n");
              catch(Exception e){               
                   area.setText("An error occured2!!!\n");
                   area.append(e.getMessage());
        }Can someone help me solv this issue please, this is my first Applet Servlet work so far so I have no idea on how to solve this issue.

    Sorry folks, just found my error. Forgot about the ObjectInputStream waiting on the Servlet side, so of course had a dead look...
    Sorry!

  • Servlet/Applet communication, data limit?

    I have an applet that uses a servlet as a proxy to load/retrieve images from an Oracle database. I have a problem when trying to retrieve images larger than 9-10kb from the database. When using JDBC from a Java Application I don't have any probelms but through the Applet-Servlet configuration I do.
    I use the following code in the Applet:
    URL url =new URL("http","myserver",myport,"/servlet/MyServlet");
    HttpURLConnection imageServletConn = (HttpURLConnection)url.openConnection();
    imageServletConn.setDoInput(true);
              imageServletConn.setDoOutput(true);
              imageServletConn.setUseCaches(false);
    imageServletConn.setDefaultUseCaches (false);
    imageServletConn.setRequestMethod("GET");
    byte buf[] = new byte[imageServletConn.getContentLength()];
    BufferedInputStream instr = new BufferedInputStream(imageServletConn.getInputStream());
    instr.read(buf);
    Image image = Toolkit.getDefaultToolkit().createImage(buf);
    // then code to display the image
    And the following for the Servlet:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("image/gif");
    byte[] buff = loadImage(); // this method returns a byte array representing the image.
    response.setContentLength(contentLength);//contentLength is the size of the image
    OutputStream os = response.getOutputStream();
    os.write(buff);
    os.close();
    thanks in advance!

    thanks for your replay,
    I tried your suggestion but whatever I do it seems that tha applet only brings the first 5-10k of the image from the servlet. This is the value I get from instr.read() or any other type of read method. The value of bytes is not always the same.
    Now I also have something new. For images greater than 100k or so I get this error:
    java.io.IOException: Broken pipe
         at java.net.SocketOutputStream.socketWrite(Native Method)
         at java.net.SocketOutputStream.socketWrite(Compiled Code)
         at java.net.SocketOutputStream.write(Compiled Code)
         at java.io.BufferedOutputStream.write(Compiled Code)
         at org.apache.jserv.JServConnection$JServOutputStream.write(Compiled Code)
         at java.io.BufferedOutputStream.write(Compiled Code)
         at java.io.FilterOutputStream.write(Compiled Code)
         at interorient.DBProxyServlet.doGet(Compiled Code)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at org.apache.jserv.JServConnection.processRequest(Compiled Code)
         at org.apache.jserv.JServConnection.run(Compiled Code)
         at java.lang.Thread.run(Compiled Code)
    I am using the Oracle Internet application server (ias 9i) which actualy uses the apache web listener.
    It seems that this servlet-applet communication is really unstable. If you have anything that may help me it will be greatly appriciated. You can even e-mail me at [email protected]
    thanks!

  • Applet - Servlet - Database - Servlet- Applet

    Hi All,
    I am using Oracle8i and IE 5.0. I am trying to retrieve the data from a db table and display it.
    Sequence is as following:
    1. Query passed to the applet.
    2. Servlet excutes this query using JDBC and returns the resultset to applet.
    3. Applet displaysthe results.
    Is there anybody who has a code sample to do this, my id is [email protected] ? I am totally new to java and servlets. I would really appreciate any help.
    Thanks a lot.
    Manuriti
    [email protected]

    I've never dealt with the code to handle the applet portion of what you're trying to do, but I can help you with the servlet stuff.
    Your servlet should contain code to accomplish the following steps:
    1. Load an Oracle JDBC driver into memory.
    2. Open a JDBC connection to the Oracle database.
    3. Create a JDBC Statement object which contains the appropriate Oracle SQL code.
    4. Execute the Statement object, which will return a ResultSet.
    5. Read the ResultSet data.
    6. Pool or close the Statement and Connection objects.
    All of these steps are simple. Here's what they might look like in practice:
    // load the Oracle driver
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // open the connection
    String cs = "jdbc:oracle:[email protected]:1521:DBNAME"; // connection string
    String userName = "scott";
    String password = "tiger";
    Connection con = DriverManager.getConnection(cs, userName, password);
    // create a Statement object
    Statement stmt = con.createStatement();
    // create a ResultSet object
    ResultSet rs = stmt.executeQuery("select * from DUAL"); // your SQL here
    // INSERT CODE HERE TO READ DATA FROM THE RESULTSET
    // close the Statement object
    stmt.close();
    // close the Connection object
    con.close();
    So that's how you get data from your Oracle database. Now, how do you pass it to your applet? Well, this is hardly trivial. Typically, servlets return an HTML-formatted text stream. It is possible to have an applet communicate with a servlet, but that raises security issues that I don't fully understand. I believe you would have to have your user's browsers set to the lowest possible security settings, otherwise the browser won't let the applet open a socket to a foreign IP, but again, I'm shaky on that one.
    Anywho, let me know if this was of help and if you have more questions on the servlet/applet stuff. I can probably help you with more specific questions,.

  • Urgent PTG on APACHE/NT Servlet Error: ClassNotFoundException: oracle.jsp.JSPServlet

    Hi all,
    I try to install PTG 1.0.2 with apache server (version 1.3.9 with jserv 1.1) on windows NT. I follow install instructions and when I try to access test page (test.jsp), the page colud not be displayed, and the following error is added in the mod_jserv.log file :
    (error) ajp12: Servlet Error : ClassnotFoundException : oracle.jsp.JSPservlet.
    All input are welcome ?
    null

    Hello!
    I've got the same problem and I think it has something to do with the jserv.conf file.
    According to the installation guide, the following line should be added:
    ApJServAction .jsp /servlets/oracle.jsp.JspServlet
    In the same file I have the following line:
    ApJServMount /servlets /root
    So /servlets is mounted on /root. I don't knoww what this /root pints to, but I think the problem is that this path does not lead to oracle.jsp.JspServlet.
    Has ANYONE yet solved this problem?

  • Servlet Error: ClassNotFoundException: oracle.jsp.JSPServlet

    Hi,
    I try to install PTG 1.0.2 with apache server (1.3.9 with jserv 1.1) on windows NT. I follow install instructions and when I try to access test page (test.jsp), the page colud not be displayed, and the following error is added in the mod_jserv.log file :
    (error) ajp12: Servlet Error : ClassnotFoundException : oracle.jsp.JSPservlet.
    What can I do ?
    All input are welcome ?

    Hello!
    I've got the same problem and I think it has something to do with the jserv.conf file.
    According to the installation guide, the following line should be added:
    ApJServAction .jsp /servlets/oracle.jsp.JspServlet
    In the same file I have the following line:
    ApJServMount /servlets /root
    So /servlets is mounted on /root. I don't knoww what this /root pints to, but I think the problem is that this path does not lead to oracle.jsp.JspServlet.
    Has ANYONE yet solved this problem?

  • Ajp12: Servlet Error: ClassNotFoundException:

    I get this error in the mod_jserv.log
    "(ERROR) ajp12: Servlet Error: ClassNotFoundException: BONDS.MENU_BONDS.show"
    This error is caused by http://www.myserver.com/servlet/BONDS.MENU_BONDS.show
    which returns "The page cannot be found".
    Then when I try http://www.myserver.com/pls/portal30/BONDS.MENU_BONDS.show?
    it works.
    I really need to have the servlet working because I lost some functionality.
    Any help would great!
    Thanks.

    I suppose you have to check your NT CLASSPATH variable. It should contain all the classpaths for JDK, JAR & ZIP files correctly.
    If it doesn't mail me.
    APK

  • (ERROR) ajp12: Servlet Error: ClassNotFoundExcept

    When i try to reach an URL http://10.20.108.3/servlets/ThreeParamsForm.htm, i receive the following error : [05/11/2002 15:27:53:211] (ERROR) ajp12: Servlet Error: ClassNotFoundException: ThreeParamsForm.htm.
    Can anyone help me ?
    Thanks in advance

    I am assuming you are using apache/tomcat.
    The url doesn't look right. Usually they look like
    http://[ip address]/[web app]/servlet/[servlet name]
    If you have used servlet-mapping to map ThreeParamsForm.htm to a servlet then you should be able to use
    http://[ip address]/[web app]/ThreeParamsForm.htm
    where [web app] is a directory under TOMCAT_HOME/webapps

  • Java Applet ClassNotFoundException

    Hi,
    I am using Java Sevlets to invoke my Java Applets.
    My servlet and applets is in the follwoinf directory path:
    C:\tomcat\webapps\chatApplet\web-inf\classes
    My applet tag is as follow:
    <APPLET CODEBASE=classes/ CODE="ChatApplet.class" WIDTH=500 HEIGHT=230>
    I received the following error messages
    load: class ChatApplet.class not found.
    java.lang.ClassNotFoundException: ChatApplet.class
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:252).....
    May you please to let me know what is incorrect, please?
    I've been stuck in this problem for about one week.
    Thank you very much.

    That fixes the problem for an awt applet <tag>. However, I'm using the object tag and I still get the exception.
    How come my 1.3 plugin finds the class file, but not the 1.4.1 from IE?
    Thanks,
    Dave

  • Servlet applet object io streams

    hi! i have an applet and servlet which communicate through objectoutputstreams.
    here's part of my applet code found in the init method:
    hostServlet = new URL( "http://localhost:8080/scheduler/servlet/EditSchedule" );
    hostConnection = (HttpURLConnection)hostServlet.openConnection();
    hostConnection.setRequestMethod( "POST" );
    System.out.println( "connected" );
    //set headers
    hostConnection.setDoInput( true );
    hostConnection.setDoOutput( true );
    hostConnection.setUseCaches( false );
    hostConnection.setDefaultUseCaches( false );
    hostConnection.setRequestProperty( "Content-Type", "application/x-java-serialized-object" );
    //stream to servlet just to specify that we're using post not get
    oos = new ObjectOutputStream( hostConnection.getOutputStream() );                                      
    oos.writeObject( "inside" );                                                
    oos.flush();
    oos.writeObject( "inside2" );
    oos.flush();
    //get objects being passed by servlet
    ooi = new ObjectInputStream( hostConnection.getInputStream() );
    here's part of my servlet code in the doPost() method:
    ObjectOutputStream oos = new ObjectOutputStream( response.getOutputStream() );
    ObjectInputStream ois = new ObjectInputStream( request.getInputStream() );
    response.setContentType( "application/x-java-serialized-object" );
    oos.writeObject( object );               
    oos.flush(); 
    oos.close();     
    //read objects
    FileOutputStream fw = new FileOutputStream( "c:\\objectsRead.txt" );
    ObjectOutputStream objectFw = new ObjectOutputStream( fw );
    objectFw.writeObject( "from servlet" );
    objectFw.flush();                                 
    String inside = (String)ois.readObject();
    objectFw.writeObject( inside );
    objectFw.flush();
    String outside = (String) ois.readObject();
    objectFw.writeObject( outside );
    objectFw.flush();
    objectFw.close();both the inside and inside2 objects get written to my textfile. Although, in my applet, if i outputted inside2 after creating the objectinputstream, only inside1 gets written. This is my problem. I have to write back to the servlet way passed the ooi instantiation of the applet. Specifically, in an event handler outside the init method.
    any help would be greatly appreciated! =)

    another weird thing that i found out.
    when i use the syntax:
    oos.writeObject( "something" );
    -->it gets passed to the servlet while
    String str = "something";
    oos.writeObject( str );
    -->doesn't get passed.
    hmm....
    i tried setting the content type to application/octet-stream but still nothing.

  • Signed Applet ClassNotFoundException

    I'm new to signed Applets and have ran into problems getting my Applet to load with IE Version 6. I create my jar (GUI.jar) and sign it using jarsigner and verify that the jar has a signature (see below).
    C:\mykeytools>jarsigner -keystore keys/my.keystore GUI.jar myalias
    Enter Passphrase for keystore:
    C:\mykeytools>jarsigner -verify -verbose GUI.jar
    272 Fri Jul 04 21:44:12 MDT 2008 META-INF/MANIFEST.MF
    439 Fri Jul 04 21:44:14 MDT 2008 META-INF/MYALIAS.SF
    925 Fri Jul 04 21:44:14 MDT 2008 META-INF/MYALIAS.RSA
    sm 3459 Wed Jul 02 19:48:16 MDT 2008 GUI.class
    sm 2937 Wed Jul 02 19:48:16 MDT 2008 GUI.java
    sm 232 Fri Jun 27 13:09:56 MDT 2008 .classpath
    sm 379 Fri Jun 27 13:09:56 MDT 2008 .project
    s = signature was verified
    m = entry is listed in manifest
    k = at least one certificate was found in keystore
    i = at least one certificate was found in identity scope
    jar verified.
    C:\mykeytools>
    I'm using the following in my HTML file:
    <APPLET CODE ="GUI.class" codebase = "." archive=&rdquo;GUI.jar" WIDTH=200 HEIGHT=253>
    </APPLET>
    I have also tried using the following HTML and get the same results:
    <APPLET CODE ="GUI.class" archive=&rdquo;GUI.jar" WIDTH=200 HEIGHT=253>
    </APPLET>
    The signed jar file and HTML file are in the same directory. When I execute the HTML file I get the following error:
    Java Console messages:_
    basic: Exception: java.lang.ClassNotFoundException: GUI.class
    java.lang.ClassNotFoundException: GUI.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)
    Any guidance on this is appreciated.

    I found that the problem was something in my HTML file.
    The HTML that works is:
    <html>
    <head>
    <meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    <meta HTTP-EQUIV="Expires" CONTENT="-1">
    <title> Applet Test</title>
    </head>
    <applet code="GUI"
    archive="GUI.jar"
    width=400 height=300>
    </applet>
    <p><img border="0" src="Company.jpg" width="326" height="88"></p>
    </html>

  • Servlet/applet problem

    hi guys
    my problem is that, i started my tomcat server, also my servlet. this servlet should call an applet. so here are my questions:
    where must be the applet class file?
    how looks like my codebase?
    what code must i type into the servlet? something special?
    do i need an apache server additional?
    yes? where must be my files? :)
    hope anyone can help me...
    bye

    keep the applet class file in the home directory, the directory in which your index.html lies, index.html -- the html which shows up when you say http://localhost:8080
    and then give the applet description like this in the servlet
    out.println("<applet code=\"myApplet.class\" codebase=\"http://localhost:8080\" width=\"400\" height=\"400\"> ");
    out.println("</applet>");
    and that should work and you will be good to go

  • Servlet filter - ClassNotFoundException

    Hi,
    I am trying to create and deploy a servlet filter in portal irj.
    Here is what I have done:
    1. Created filter class(TestFilter.java).
    2. Created a jar file for the above TestFilter.class.
    3. Copied the jar file to C:\usr\sap\DW1\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\lib folder
    4. Modified the web.xml file under C:\usr\sap\DW1\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF folder with the following lines:
    <filter>
    <filter-name>TestFilter</filter-name>
    <display-name>TestFilter</display-name>
    <description>
    </description>
    <filter-class>com.test.TestFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>TestFilter</filter-name>
    <url-pattern>/irj/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>TestFilter</filter-name>
    <servlet-name>prt</servlet-name>
    </filter-mapping>
    5.  I did reference the library in Visual Admin:  library:TestFilter
    6.  Also created the directory under ext/TestFilter and copied the jar file here.
    7. Restarted the engine.
    Exception the logs
    Cannot load filter <TestFilter>  The error is java.lang.ClassNotFoundException:  com.test.TestFilter
    Loader Info----
    I don't see my .jar displayed in the loader info.  irj didn't like my .jar.
    Any additional changes for irj to make it understand the new .jar file for classloader. 
    Appreciate your response.
    Message was edited by:
            Anant

    Hi I was wondering if you had any luck with this issues.
    Thank you.

  • Servlet-applet

    hello
    I have an html file, on which an applet is displayed. This applet is actually a frame on which there is a FileDialog. I select a file, and I want to send this String corresponding to the path of the file, to a servlet. But then, I want to stay on the servlet, and not send a response from the servlet to the applet.
    here is my code:
    html:
    <p><form action="servlet/SetOfServicesRegistrationServlet">
    <P>
    <applet code="mobi/das/aca/managementServlets/Openfile.class" width=400 height=100>
    </applet>
    <br /><br />
    Add this list of services
    <input type="submit" value="Add">
    </form>applet:
    public void actionPerformed(ActionEvent evt){
              String composant = evt.getActionCommand();
              if( composant.equals("Open") ){
                             fileToLoad = fd.getDirectory().concat(fd.getFile());
                             try{
                                  String codedValue = URLEncoder.encode(fileToLoad,"ISO-8859-1");
                                  URL url = new URL(getDocumentBase(),"http://asterix:8080/acamanager_2/servlet/SetOfServicesRegistrationServlet?message="+codedValue);
                                  URLConnection connexion = url.openConnection();
                                  BufferedReader reponse = new BufferedReader(new InputStreamReader(url.openStream()));
                             catch(IOException error){}
                        and the servlet:
    public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException, ServletException{
               response.setContentType("text/html");
               response.setBufferSize(1000);           
               PrintWriter out = response.getWriter();
               //we get the parameters sent by the html form
               String fileLocation = request.getParameter("message");
               System.out.println(fileLocation);What I'd like to see, is just a servlet, on which the path of the file is displayed.
    Any ideas?
    Help me please. I've been looking for it for too long now
    Thanks in advance
    Philippe

    Hi, thanks for the reply, let me clarify, the main
    thread is initiated by the servlet. In other words,
    the servlet is called and simply starts my Thread
    class which takes over.A thread started by a servlet, that is really a bad design and bound to cause memory leaks plus deadlocking isssue.
    So, I want my Thread Class to communicate with the
    applet during runtime. The Thread Class is simply an
    object extending the Thread java class.
    The servlet itself does not do anything - it starts
    the process and then it simply receives the results
    and outputs them to the client.just use the javax.servlet.ServletOutputStream class as one of the parameters to ur thread class. that way the thread can communicate with the applet. but i have to warn you again.
    good luck

  • Signing applets: Classnotfoundexception

    Hi everyone,
    I've created a web application that contains an applet as well. In that applet ,the user should be given the opportunity to open and save files from and to a directory on his own computer. I've read alot of things about signing applets to make that possible, but I haven't managed to get a working application yet.
    This is what I've done till now:
    I created a bat file containing the following script:
    set path=C:\Program Files\Java\jdk1.5.0_05\bin
    keytool -genkey -keystore applet\AppletKeystore -keyalg rsa -alias myApplet -storepass 123456 -keypass 789012
    keytool -selfcert -alias myApplet -keystore applet\AppletKeystore -storepass 123456 -keypass 789012
    keytool -export -keystore applet\AppletKeystore -alias myApplet -storepass 123456 -file applet\appletPublicKey.cer
    jar cvf applet\theContent.jar applet\*.class applet\appletPublicKey.cer
    jarsigner -verbose -keystore applet\AppletKeystore -storepass 123456 -keypass 789012 applet\theContent.jar myApplet
    htmlConverter templates.jsp
    I saved the file and I ran it. I got a keystore, a cer file and a jar file in my applet directory. So far so good, I guess.
    After that, I added an extra parameter in my jsp file so I get the following code:
    <jsp:plugin type="applet" archive="applet.theContent.jar" jreversion="1.5" code="applet.TemplateCreatorApplet.class" codebase="." width="1280" height="800" align="middle">
            <jsp:fallback>
                Plugin tag OBJECT or EMBED not supported by browser
            </jsp:fallback>
        </jsp:plugin>Then I copied the jar file and the jsp file to the webserver. When I run my application and I want to show the applet I get an error telling me that the TemplateCreatorApplet.class file can't be found. I don't understand why I get this error when all the necessary class file are supposed to be in the jar file. Can anyone help me???
    Thanks in advance,
    Plunofix

    Hi everyone,
    i manage to solve this problem. The Classnotfoundexception raised when the applet try to find the path of the class file.
    make sure when you create a jar file , you given a full path.
    For example, your class file located in the com/java/test/TestApplet.class. when you create a jar file please do in the root folder
    1. jar cvf TestApplet.jar com/java/test/TestApplet.class
    2. jar tvf TestApplet.jar
    It will display the complete path of class file.

Maybe you are looking for

  • This function is not working on 10.8

    Right click on a file and then - new email with attachment (nuova email con allegato ITALIAN) doesn't work on my Mountain Lion When I click the mouse and choose this function, simply nothing happens. Ciao Luca

  • Wifi password problem

    I am staying in the same hotel suite from a few months ago, but the wife password for my room is different.  My MacBook Air is unable to connect to the wife router because I don't know how to change the old password.  Any ideas?

  • CSS load balancing problem

    Hi, I have two CSS that I use to load balance RDP connections to two WTS servers. I dont have switch behind CSS so they are connected back-to-back via cable. All server facing ports (including back-to-back ports) are in the same VLAN. CSS1 is primary

  • Master data dealetion program

    hello friends, I have to create one program,in which whatever data range will enter by user in selection screen those master data will be delete from the master table. Can you please tell me the logic behind that.... Thanks in advance

  • How to get Shopping cart number from TECH_INFO Guid approval offline

    Hi, When a user approves a shopping cart via e-mail (offline approval), then in transaction SOIN we can the mail which is like this: TECH_INFO_A=00F3D1395134D34D34D37DFBE75E81512DB5DB5FBE&submit_a=Approve by e-mail&TECH_INFO_R=444244093D34D34D34DF7EF