I have tried the same applet code on the simple HTML page, it worked perfectly. I think because path to archive file is correct.
But when I insert the same code with JSF component, it gives the error.
I have placed the jar file in the lib folder and used archive as an attribute in the plugin tag to the jar file of applet code. Gives same error.
Also tried to put class file in to the classes folder to load applet, again gives same error.