Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2A37E4E7 for ; Mon, 3 Dec 2012 08:21:30 +0000 (UTC) Received: (qmail 3746 invoked by uid 500); 3 Dec 2012 08:21:28 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 2684 invoked by uid 500); 3 Dec 2012 08:21:18 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 2595 invoked by uid 99); 3 Dec 2012 08:21:15 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 08:21:15 +0000 Received: from localhost (HELO mail-oa0-f48.google.com) (127.0.0.1) (smtp-auth username lukaszlenart, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 08:21:15 +0000 Received: by mail-oa0-f48.google.com with SMTP id h2so2698347oag.35 for ; Mon, 03 Dec 2012 00:21:14 -0800 (PST) Received: by 10.182.95.133 with SMTP id dk5mr3832375obb.14.1354522874098; Mon, 03 Dec 2012 00:21:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.27.102 with HTTP; Mon, 3 Dec 2012 00:20:52 -0800 (PST) In-Reply-To: References: <5513E4AFB64FD641A093B3C629EC5A1A20A8EF62@MX104CL02.corp.emc.com> <5513E4AFB64FD641A093B3C629EC5A1A20A8FFCD@MX104CL02.corp.emc.com> <5513E4AFB64FD641A093B3C629EC5A1A20A900B3@MX104CL02.corp.emc.com> <5513E4AFB64FD641A093B3C629EC5A1A20A900D7@MX104CL02.corp.emc.com> From: Lukasz Lenart Date: Mon, 3 Dec 2012 09:20:52 +0100 Message-ID: Subject: Re: wierd stack trace regarding parsing of struts.xml To: Struts Users Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2012/12/1 ChadDavis : > Thanks Lukasz. This is very useful information. I think this clearly fix= es > my problem, but I still have some questions. > > 1) when was xwork moved to ASF? Just before 2.2.1, two years ago, but DTDs where changed sometime later http://struts.apache.org/2.x/docs/version-notes-221.html > 2) It's not really Struts 2 doing the look up right? It's the sax parser= ? > Is Struts2 using the EntityResolver to add the resolution logic that > converts the DOCTYPE tag to a classpath resource lookup? If you don't kn= ow > of the top of your head, I plan to dive into the code myself anyhow. Yes, but you can tell the parser where the DTDs are, so it can read them locally before looking for them over the internet. See XmlConfigurationProvider for more details. Example: mappings.put("-//Apache Struts//XWork 2.3//EN", "xwork-2.3.dtd"); mappings.put("-//Apache Struts//XWork 2.1.3//EN", "xwork-2.1.3.dtd"= ); mappings.put("-//Apache Struts//XWork 2.1//EN", "xwork-2.1.dtd"); mappings.put("-//Apache Struts//XWork 2.0//EN", "xwork-2.0.dtd"); mappings.put("-//Apache Struts//XWork 1.1.1//EN", "xwork-1.1.1.dtd"= ); mappings.put("-//Apache Struts//XWork 1.1//EN", "xwork-1.1.dtd"); mappings.put("-//Apache Struts//XWork 1.0//EN", "xwork-1.0.dtd"); Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org