Applet works locally; not on server


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 9 of 9

Thread: Applet works locally; not on server

  1. #1
    Join Date
    Nov 2003
    Posts
    5

    Unhappy Applet works locally; not on server

    I found a free applet that puts a changing message on my web site. It works fine on my hard disk. After uploading it to my website, all I get is a gray rectangle with a coffee cup. Any suggestions how to debug?
    Thanks
    Tony

  2. #2
    Join Date
    Mar 2003
    Posts
    834
    See what it says on the Java Console. If using Internet Explorer Click Tools -> Sun Java Console.
    ArchAngel.
    O:-)

  3. #3
    Join Date
    Nov 2003
    Posts
    5
    Thanks for such a quick reply. I don't know how much of the Java console report will help. Here are the first main entries:

    Java(TM) Plug-in: Version 1.4.2
    Using JRE version 1.4.2 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Tony

    Proxy Configuration: Browser Proxy Configuration

    ----------------------------------------------------
    load: class mpanel2.class not found.

    java.lang.ClassNotFoundException: mpanel2.class

    at sun.applet.AppletClassLoader.findClass(Unknown Source)

    ...

    Caused by: java.io.IOException: open HTTP connection failed.

    at sun.applet.AppletClassLoader.getBytes(Unknown Source)

    ... 10 more

    Similar messages show up whether I use Mozilla or IE 6.


    Since it said "not found" I checked with WSFTP and found the applet mpanel2.class in the same directory as the web page on the server, like it said in the instructions.

    Any suggestions what I should look at next.

    Thank you very much.

    Tony

  4. #4
    Join Date
    Mar 2003
    Posts
    834
    Please post the HTML you're using i.e. the <applet> .... </applet> tags. Also, where did you get this applet?
    ArchAngel.
    O:-)

  5. #5
    Join Date
    Nov 2003
    Posts
    5
    Wow; you are really quick. I really appreciate your help. Here is what resides in my applet tags. I found it on javafile.com.

    ***
    <APPLET CODE="mpanel2.class" name="MessagePanel" ALT="Java Message Panel Applet" WIDTH=300 HEIGHT=46 id="MessagePanel">

    <PARAM NAME="copyright1" VALUE="Adeveloper Copyright (c) 1999">
    <PARAM NAME="copyright2" VALUE="http://www.Adeveloper.com/">

    <PARAM NAME="frame" VALUE="6">



    <PARAM NAME="bold" VALUE="1">
    <PARAM NAME="italic" VALUE="0">

    <PARAM NAME="lines" VALUE="5">

    <PARAM NAME="msg_1" VALUE="Get Ready for Winter!">
    <PARAM NAME="dly_1" VALUE="3500">
    <PARAM NAME="msgCol_1" VALUE="green">
    <PARAM NAME="bgCol_1" VALUE="black">
    <PARAM NAME="upFrCol_1" VALUE="darkGray">
    <PARAM NAME="lowFrCol_1" VALUE="lightGray">

    <PARAM NAME="msg_2" VALUE="Tune-up">
    <PARAM NAME="dly_2" VALUE="2500">
    <PARAM NAME="msgCol_2" VALUE="blue">
    <PARAM NAME="bgCol_2" VALUE="black">
    <PARAM NAME="upFrCol_2" VALUE="darkGray">
    <PARAM NAME="lowFrCol_2" VALUE="lightGray">

    <PARAM NAME="msg_3" VALUE="Oil Change">
    <PARAM NAME="dly_3" VALUE="2500">
    <PARAM NAME="msgCol_3" VALUE="red">
    <PARAM NAME="bgCol_3" VALUE="black">
    <PARAM NAME="upFrCol_3" VALUE="darkGray">
    <PARAM NAME="lowFrCol_3" VALUE="lightGray">

    <PARAM NAME="msg_4" VALUE="Rotate Tires">
    <PARAM NAME="dly_4" VALUE="2500">
    <PARAM NAME="msgCol_4" VALUE="cyan">
    <PARAM NAME="bgCol_4" VALUE="black">
    <PARAM NAME="upFrCol_4" VALUE="darkGray">
    <PARAM NAME="lowFrCol_4" VALUE="lightGray">

    <PARAM NAME="msg_5" VALUE="Here's a Coupon">
    <PARAM NAME="dly_5" VALUE="6000">
    <PARAM NAME="msgCol_5" VALUE="yellow">
    <PARAM NAME="bgCol_5" VALUE="black">
    <PARAM NAME="upFrCol_5" VALUE="darkGray">
    <PARAM NAME="lowFrCol_5" VALUE="lightGray">
    </APPLET>

    Thank you again.
    Tony

  6. #6
    Join Date
    Mar 2003
    Posts
    834
    OK...that all seems fine...can you please post the following:

    1. The address of the website where you've uploaded this applet to.

    2. The specific adress of in javafile.com where you downloaded this file.
    ArchAngel.
    O:-)

  7. #7
    Join Date
    Nov 2003
    Posts
    5
    Well the actual website is for a class I am taking. The site is:
    165.196.161.114/barr5312/hw6/scheduled.html.
    Being on a school server and all this requires a user name and password which are:
    flc-instr\barr5312
    437-2671
    Here you will observe the phenomenon about which we have been talking. However, in trying to provide an alternative view I just now installed the applet at:
    www.tonybarre.com/brandt/scheduled.html. It works fine there! So I wonder if my school server requires something special? As you requested, the applet was downloaded from
    http://www.javafile.com/bannerutil/m...nner+Utilities

    Your support is awesome! Again I thank you.

    Tony

  8. #8
    Join Date
    Mar 2003
    Posts
    834
    hmmm....all very strange...I'm not sure all about this, but is the server where it isn't working Linux? If so, just check that the file access privileges on the class file are set so that the file can be read.
    ArchAngel.
    O:-)

  9. #9
    Join Date
    Nov 2003
    Posts
    5
    Well, it may be time to just close this one out. My instructor agreed to look at the page on my hosting service instead of on the school server. There is no problem there.
    ***
    In attempting to follow your suggestion I tried CHMOD in WSFTPLE. I got the following response:"chmod 777 mpanel2.class command not understood. CHMOD failed. It may not be supported on remote site.
    ***
    Thank you very much for all your effort on this. I am very grateful.
    Tony

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center