Pham Anh Tuan wrote: > I have a trouble in setting web-app_2_3.dtd for running on local, don't > connect to internet, I use Tomcat 5.5.9 I did like below: > > I lay web-app_2_3.dtd in WEB-INF > > I set in web.xml: > <!DOCTYPE web-app SYSTEM "web-app_2_3.dtd"> > > but when I run my web app, error occurs : > > Unable to initialize TldLocationsCache: XML parsing error on file > /WEB-INF/web.xmlI try to type index.do, but error occurs again: > javax.servlet.ServletException: C:\WINDOWS\system32\web-app_2_3.dtd (The > system cannot find the file specified)I don't know what's wrong, hiz ... > help me :(thanks in advance!bowlkhin
You could try to set the SYSTEM identifier to point to the absolute location of the DTD file, i. e. something like <!DOCTYPE web-app SYSTEM "C:\your\path\to\web-app_2_3.dtd"> OTOH: is the validation of web.xml on startup really required? If not, simply remove the <!DOCTYPE ...> from web.xml. Tomcat 5.5 will regard any Context as Servlet 2.3 compliant if the web.xml doesn't say otherwise. IIRC, validation of web.xml and TLDs is disabled by default. So you may have explictitly turned it on and may have to revert this. Regards mks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]