I don't know what that error message means, but I see some problems with this code:
For starters, Java code can't set its own security policy. You need to do that outside of the code when starting the JVM. Secondly, relative paths don't work in web apps (although this is moot once you address the first point). And lastly, printing out nothing when an exception occurs -basically ignoring it- is very unhelpful. At least print out the exception's message.
Also, handling GET and POST identically is a violation of the HTTP specification, even though the template code you're using does this. Remove the processRequest method, and decide whether to react to GET or POST.
thank you very much
i write new code Remove the processRequest method and write code into Get method
and not set paths policy which i put policy file to same directory
i will not printing out noting. (i try to print out exception but have noting)
but i have same problem if you have an idea please tell me thank you very much
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop