Hi,

I looked for some existing threads, but couldn't find any information on 
that issue.  Applets I would I like to use in some parts of the 
application with heavy use of graphics. For the rest I would prefer to 
use tapestry, which is new to me.

I tested a small example with JSF, no problem. Then I tried with 
tapestry based on Maven archetype (tapestry 5 quickstart 5.1.0.5)

Step1:  Quickstart Example runs perfect
Step2:  Modify start page and add dependencies -> Applet not shown

Information on Java Console is (sorry for the german version, however 
the rest should be clear):

==============================================================
Java Plug-in 1.6.0_13
Verwendung der JRE-Version 1.6.0_13 Java HotSpot(TM) Client VM
Home-Verzeichnis des Benutzers = /export/home/walter
----------------------------------------------------
c:   Konsole löschen
f:   Objekte in Finalisierungswarteschlange finalisieren
g:   Speicherbereinigung
h:   Diese Hilfemeldung anzeigen
l:   ClassLoader-Liste ausgeben
m:   Speicherbelegung anzeigen
o:   Protokollierung auslösen
p:   Proxy-Konfiguration neu laden
q:   Konsole ausblenden
r:   Richtlinien-Konfiguration neu laden
s:   System- und Bereitstellungseigenschaften ausgeben
t:   Threadliste ausgeben
v:   Thread-Stack ausgeben
x:   ClassLoader-Cache löschen
0-5: Trace-Stufe auf <n> setzen
----------------------------------------------------
ClassLoader-Cache löschen... abgeschlossen.
Trace-Stufe auf 5 (alle) setzen ... abgeschlossen.

basic: New window ID: 3618039
basic: Value of xembed: 1
basic: ClassLoader wird referenziert: sun.plugin.classloaderi...@c510e3, 
refcount=1
basic: setWindow: call before applet exists:3618039
basic: Fortschritts-Listener hinzugefügt: 
sun.plugin.util.grayboxpainter$grayboxprogressliste...@1e92e10
basic: Applet wird geladen...
basic: Applet wird initialisiert...
basic: Applet wird gestartet...
basic: completed perf rollup
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar, Version: 
null]
network: Verbindung von 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar mit 
Proxy=DIRECT wird hergestellt
network: Verbindung von socket://localhost:8080 mit Proxy=DIRECT wird 
hergestellt
network: Verbindung 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar mit 
Cookie " "
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar, Version: 
null]
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar, Version: 
null]
network: Verbindung von 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar mit 
Proxy=DIRECT wird hergestellt
network: Verbindung 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar mit 
Cookie " "
network: Ressource herunterladen: 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar
    Content-Length: -1
    Content-Encoding: gzip
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar, Version: 
null]
network: Verbindung von 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar mit 
Proxy=DIRECT wird hergestellt
network: Verbindung 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar mit 
Cookie " "
network: Ressource herunterladen: 
http://localhost:8080/WhvDemoTap2/WhvDemoLib2-1.0-SNAPSHOT.jar
    Content-Length: -1
    Content-Encoding: gzip
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar, Version: null]
network: Verbindung von 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar mit Proxy=DIRECT wird 
hergestellt
network: Verbindung http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar 
mit Cookie " "
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar, Version: null]
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar, Version: null]
network: Verbindung von 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar mit Proxy=DIRECT wird 
hergestellt
network: Verbindung http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar 
mit Cookie " "
network: Ressource herunterladen: 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar
    Content-Length: -1
    Content-Encoding: gzip
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar, Version: null]
network: Verbindung von 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar mit Proxy=DIRECT wird 
hergestellt
network: Verbindung http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar 
mit Cookie " "
network: Ressource herunterladen: 
http://localhost:8080/WhvDemoTap2/genlogic-1.0.jar
    Content-Length: -1
    Content-Encoding: gzip
network: Cache-Eintrag nicht gefunden [url: 
http://localhost:8080/WhvDemoTap2/mycompany/GlgControlPanel.class, 
Version: null]
network: Verbindung von 
http://localhost:8080/WhvDemoTap2/mycompany/GlgControlPanel.class mit 
Proxy=DIRECT wird hergestellt
network: Verbindung von socket://localhost:8080 mit Proxy=DIRECT wird 
hergestellt
network: Verbindung 
http://localhost:8080/WhvDemoTap2/mycompany/GlgControlPanel.class mit 
Cookie " "
java.lang.ClassFormatError: Incompatible magic value 1008813135 in class 
file mycompany/GlgControlPanel
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:208)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:143)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:682)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2315)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
    at sun.applet.AppletPanel.run(AppletPanel.java:368)
    at java.lang.Thread.run(Thread.java:619)
basic: Ausnahme: java.lang.ClassFormatError: Incompatible magic value 
1008813135 in class file mycompany/GlgControlPanel

===============================================================================

The interesting point is "Content-Length: -1". It seems, that all 
available jar files have not been transfered to the browser.

Who has an idea, what happend here and what is the reason?

Thanks for any small advise.

Walter



-- 
View this message in context: 
http://n2.nabble.com/Tapestry5-and-Applets-tp3214333p3214333.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

Reply via email to