Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 3183 invoked from network); 28 Nov 2000 22:54:44 -0000 Received: from smtp.eldocomp.com (HELO ecint.ecinet.com) (205.159.99.3) by locus.apache.org with SMTP; 28 Nov 2000 22:54:44 -0000 Received: by ecint with Internet Mail Service (5.5.2650.21) id ; Tue, 28 Nov 2000 15:54:14 -0700 Message-ID: <70FD83AB8C61D4119E060050DA7E4E3009F724@ecint> From: Duane Morse To: "'tomcat-user@jakarta.apache.org'" Subject: RE: Error parsing JSP with tag library -- how do I track down wha t's wrong? Date: Tue, 28 Nov 2000 15:54:07 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C0598E.20AFCB10" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C0598E.20AFCB10 Content-Type: text/plain; charset="iso-8859-1" Thanks again for taking the time to respond to my problem. I DID put your DOCTYPE definition at the beginning of the file. To save time, attached is the current web.xml that seems to be satisfactory except for the taglib portion. Duane Morse, Eldorado Computing Inc., Phoenix AZ -----Original Message----- From: Craig R. McClanahan [mailto:Craig.McClanahan@eng.sun.com] Sent: Tuesday, November 28, 2000 3:47 PM To: tomcat-user@jakarta.apache.org Subject: Re: Error parsing JSP with tag library -- how do I track down what's wrong? Duane Morse wrote: > Thanks for the suggestion, but it didn't help. I didn't have a DOCTYPE > definition > in web.xml at all, but Tomcat was able to process the file regardless. > Adding the definition > didn't change the error when I tried to run a JSP which used a tag > extension. (I can > run JSPs which don't use tag extensions, however.) > Short answer: the problem is that your web.xml does not conform to the requirements of the DTD for web application deployment descriptors (as defined in the Servlet API Specification, version 2.2). The obvious retort: "Why didn't Tomcat tell me that in the *first* place?" The answer is that Tomcat 3.1 does not use a validating XML parser when they first process the web.xml file at server startup time. Thus, your application will start up and appear to run normally -- *until* you use a JSP page with a custom tag in it. What happens then is that the JSP compiler servlet re-parses the web.xml file again, but this time a validating parser is used; and the problem in web.xml (which is usually an element out of order) is encountered. The bottom line: the DOCTYPE entry for web-app that was suggested below needs to go at the top of your web.xml file, and you need to ensure that all of the elements of your web.xml file conform to the rules that are described in this DTD. > > Duane Morse, Eldorado Computing Inc., Phoenix AZ > Craig McClanahan ------_=_NextPart_000_01C0598E.20AFCB10 Content-Type: application/octet-stream; name="web.xml" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="web.xml" HLogin com.eldocomp.webpac.servlets.loginout.HLogin HLoginForm-based = login UserIDsystem Password.= system Initializer DBGfile,/work/servlet.dbg /MasterConfig/ConfigMgrClass com.eldocomp.xml.XMLFileConfigMgr /MasterConfig/FileConfigMgr/RootDirectory c:/work/apache/jakarta-tomcat/webapps/WebPac/WEB-INF com.eldocomp.webpac.servlets.system.InitializerInitializer0 HSystem com.eldocomp.webpac.servlets.system.HSystem HSystemForm-based system = cmds HelloWorld com.eldocomp.webpac.servlets.utils.test.HelloWorld HelloWorld BasicHello com.eldocomp.webpac.servlets.utils.test.BasicHello snap SnapServlet XSystem com.eldocomp.webpac.servlets.system.XSystem XSystemXML-based system = cmds XLogin UserIDsystem Password.system com.eldocomp.webpac.servlets.loginout.XLogin= XLoginXML-based = login XLocale com.eldocomp.webpac.servlets.misc.XLocale= XLocaleXML-based Locale = maint HLocale com.eldocomp.webpac.servlets.misc.HLocale= HLocaleForm-based Locale = maint HMenuMgr com.eldocomp.webpac.servlets.menu.HMenuMgr HMenuMgrMenu = manager www.eldocomp.com/webpac/taglibs/utils /WEB-INF/classes/utils_tl.jar ------_=_NextPart_000_01C0598E.20AFCB10--