tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Rink <>
Subject [OT] applets in webapps
Date Tue, 09 Oct 2007 09:30:11 GMT


slightly OT: can someone provide me with a few good pointers and/or
hints how to correctly integrate a Java applet into a JEE based web

More specifically, my problem is something like that: I do
have a .jsp containing code to show an applet. Both applet .class and
some other resources (.properties files, images, ...) do live inside
a .jar file in the same folder as the .jsp. Unfortunately(?), the .jsp
is never called directly but rather forward()ed to from within a
servlet mapped to some specific URL. So, the situation is that

- while calling the .jsp directly (using 

http://<host>/<context>/<real-path-to>/file.jsp ), the applet loads and
runs the way it's supposed to, but

- while having the resource called the way it's supposed to (using

http://<host>/<context>/<mapping-for-servlet-forwarding-to-jsp>/ )

the plugin doesn't load but provide me with ClassNotFoundException,
obviously not capable to find the applet class. Tried playing around
with the applets "archive" / "codebase" parameters made things just
slightly better: By now the browser does lock up, the applet class
seems to get loaded, but obviously fails to load some resources, and I
see strange access attempts in my tomcat log, trying to fetch resources


(the file originally lives inside the applet.jar in <classpath>.lang).

Is there any sane way of keeping applets inside a JEE web application,
regardless on whether they're invoked directly from a .jsp or from a
resource forwarded to from within some servlet? Or am I just too stupid?

Sorry again for the OT, feel free to contact me off-list in case you
feel like providing me with some hints / pointers.

Thanks loads and best regards,

Kristian Rink * *
jab: * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message