Paul Clapham wrote:Here's what I did:
(1) Create a local copy of the demo page which was linked to from that tutorial which you linked to.
(2) Run that local copy in my browser -- applet shows up okay.
(3) Replace the base-64 string by garbage and run again -- applet shows up okay. (This was your experience too, right?)
(4) Remove the applet from my Java cache.
(5) Run the garbage version of the local copy again -- applet does not run.
So it looks like caching is confusing the issue. (As it so often does.)
Paul Clapham wrote:I would assume that the people at Oracle didn't just throw the feature out into the real world without doing some testing. So my guess would be that yes, people have successfully used the feature.
William Brogden wrote:Probably the reason "http://localhost/jws/Calculator.jsp" does not execute is that your local Tomcat does not think that "jws" is a legal web application.
Study the way the applications that Tomcat comes with are configured.
Support Center » Knowledgebase » Tomcat (JSPs/Servlets) » Are .war files supported on your servers?
Solution In our shared Apache/Tomcat implementation, .war files are not supported (noted on our main website). You must unarchive your .war into your httpdocs directory. The container-standard /WEB-INF directory structure is preprovided.
Under the shared Apache/Tomcat implementation as we have here (per Apache’s specifications and industry-standard for a shared platform), all requests go through Apache first, and as such, specific mount directives have to be defined in Apache to pass the JSP/Servlet/Mapping from Apache to Tomcat (otherwise Apache will assume it should try processing the request). By default, the directives we pass are:
We pass the three standard mount directives: