I tried to test usage of servlet init parameters inside jsp pages using the tags explained in K & B Head First JSP & Servlets book (in chapter 7).
I tried different ways but when I try to access the relevant JSP page, it gives me "servlet class not found" error. Please see the below
codes and help me to identify the what is the error I am doing here.
Please note that I have removed all the servlet init parameter related stuffs in these codes mentioned in below [wanted to create a basic working example which uses jsp-file tag].
Exception I am getting when accessing this jsp using /TestParams,
For the JSP page, I tried with several jsp pages including a one which contains only html tags.
I really didn't understand, how it solved your problem???
metadata-complete="true" means that the deployment tool only examines the web.xml file and ignores annotations (such as @WebServlet, @WebFilter, and @WebListener present in the class files of the application) and any web-fragment.xml files.
If you remove that attribute from the web-app tag, it will implicitly be set to "false", meaning that the deployment tool will scan all the files for annotations and web-fragment.xml files.
I really don't find any connection bewteen your problem and metadata-complete attribute. Please throw some light on it...
Thanks and Regards,
OCPJP 6, OCE Java EE 6 JSP and Servlets Developer, OCE Java EE 6 EJB Developer...
Although I am not able to provide any correct and possible explanation for this issue, I can recreate this issue by adding metadata-complete="true" attribute to my web.xml file and this issue disappears once I remove that attribute.
Later I found this thread http://www.coderanch.com/t/520556/JSP/java/Mapped-JSP-Page-not-showing and It seems the reason for that issue is also this "metadata-complete="true"" attribute.