hi,

when i use a html-page with this applet-tag:

<APPLET CODE = "applet.MosaicUploader" ARCHIVE = "../applet/
MosaicUploader.jar" WIDTH = 50 HEIGHT = 50>
  Here is the MosaicUploader Applet
</APPLET>

the applet is displayed. But if i use the same html in a widget

public class MosaicUploaderAppletWidget
extends Composite
{
  public MosaicUploaderAppletWidget()
  {
    if( GWT.isScript() ) {
      initWidget( getAppletHTML() );
    }else{
      initWidget( new Label( "MosaicUploaderMock for embeded
mode" ) );
    }
  }

  private HTML getAppletHTML()
  {
    StringBuilder sb = new StringBuilder();
    sb.append( "<applet code=\"applet.MosaicUploader\" codebase=\"../
applet/MosaicUploader.jar\" width=50 height=50>" );
    sb.append( "Here is the MosaicUploader Applet" );
    sb.append( "</applet>" );

    return new HTML( sb.toString() );
  }
}

the java-console of firefox shows this class not found exception:

Load: class applet.MosaicUploader not found
java.lang.ClassNotFoundException: applet.MosaicUploader
        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://
localhost:8080/MosaicUpload/applet/MosaicUploader.jar/applet/
MosaicUploader.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
Ausnahme: java.lang.ClassNotFoundException: applet.MosaicUploader

Using the url http://localhost:8080/MosaicUpload/applet/MosaicUploader.jar
,i can download MosaicUploader.jar which contains a
applet.MosaicUploader.class (in subfolder "applet").

The MosaicUploaderAppletWidget is heavily embeded in Panel-layes. Is
that the problem?

Regards,
Stephan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to