File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes WSA + Applet = wtf? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "WSA + Applet = wtf?" Watch "WSA + Applet = wtf?" New topic

WSA + Applet = wtf?

Miroslav Snobel

Joined: May 03, 2013
Posts: 1
I got task to deploy existing applet (running on Tomcat) on WAS v8 (note: never seen WAS before, this is my first time). So I took files from Tomcat's web directory, packed them into WAR file, created simple application.xml with <module><web><web-uri>foo.war</web-uri><context-root>app</context-root></web></module> and put it into subdirectory named META-INF. This WAR and subdir packed into EAR file and deployed as application on WAS. No problem so far (at least no error message). But problem occurs when I tried to open that applet in browser. I can access localhost/app. index.html will load, but applet ends with error: FailedDownloadException -> Unable to load resource file: localhost/app/applet_name.jar. "Funny" thing is - when I put that URL with missing resource into browser, I can see it (I can download that applet JAR).

Applet is loaded via script, resources are linked via JNLP file.

Can someone tell me, what I am doing wrong? Thanks...
I agree. Here's the link:
subject: WSA + Applet = wtf?
It's not a secret anymore!