i deployed the web application with struts 1.2 DTD declaration in struts-config.xml , that some times giving exception input/output error while parsing the struts-config.xml and then its showing servlet inactive message when i try to access the application from browser .
some times its deploying fine.. for deploying successfully , i removed the DTD delcaration completely. now the applciation is deploying and running fine. but itz throwing some execptions at server console like <strus-config> no grammer found etc..
i do not understand this behaviour.can some one please suggest me how to go about this .
To elaborate on what Raghavan said, the important thing is that the jar files in your WEB-INF/lib directory match the DTD. If you have Struts 1.2.x jar files, you must have a Struts 1.2 DTD. If you have Struts 1.3.x jar files, you must have a Struts 1.3 DTD.
Yes, why you need a .jar file? Since it contains the respectice DTD file.
Why you want the DTD file to be present? because its presence helps the container (JSP engine) to validate the xml tags compliant to that of struts-config DTD so as to ensure you are up to the expectation of Struts framework.