Hi I am using Struts 1.1 and tomcat 4.1.31 to develop my application. Now this application works fine on my local machine but when i tried to make this application live on third party server (which is also tomcat 4.1.31 ) it gives me this error *Document root element "web-app", must match DOCTYPE root "null"* Also have placed all jars in web-inf/lib dir on both local and remote server.
Following are the details web.xml:- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <!-- Action Servlet Configuration --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>ApplicationResources</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>3</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <!-- Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- The Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- Application Tag Library Descriptor --> <taglib> <taglib-uri>/WEB-INF/app.tld</taglib-uri> <taglib-location>/WEB-INF/app.tld</taglib-location> </taglib> <!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri> <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/ajaxtags.tld</taglib-uri> <taglib-location>/WEB-INF/ajaxtags.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/alternatetag.tld</taglib-uri> <taglib-location>/WEB-INF/alternatetag.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/beantags.tld</taglib-uri> <taglib-location>/WEB-INF/beantags.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/calendartag.tld</taglib-uri> <taglib-location>/WEB-INF/calendartag.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/htmltags.tld</taglib-uri> <taglib-location>/WEB-INF/htmltags.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/icontag.tld</taglib-uri> <taglib-location>/WEB-INF/icontag.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/logictags.tld</taglib-uri> <taglib-location>/WEB-INF/logictags.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/navigatortags.tld</taglib-uri> <taglib-location>/WEB-INF/navigatortags.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/requesttags.tld</taglib-uri> <taglib-location>/WEB-INF/requesttags.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/tabbedpanetag.tld</taglib-uri> <taglib-location>/WEB-INF/tabbedpanetag.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/templatetag.tld</taglib-uri> <taglib-location>/WEB-INF/templatetag.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/treetag.tld: 148</taglib-uri> <taglib-location>/WEB-INF/treetag.tld: 148</taglib-location> </taglib> </web-app> Exception on Reload:- SEVERE: Parse Error at line 7 column 10: Document root element "web-app", must match DOCTYPE root "null". org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ........... ........... Sep 9, 2006 9:36:40 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 7 column 10: Document is invalid: no grammar found. org.xml.sax.SAXParseException: Document is invalid: no grammar found. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) . ... at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Sep 9, 2006 9:36:40 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 7 column 10: Document root element "web-app", must match DOCTYPE root "null". org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) Can any one plz help me out to fix this error. I am not eble to reproduce it on local machine. ----------------------------- Thanks and Regards Anurag Shinde. Ph : 9823014942