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 1F4F110A41 for ; Sun, 15 Dec 2013 10:49:25 +0000 (UTC) Received: (qmail 46798 invoked by uid 500); 15 Dec 2013 10:49:22 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 46749 invoked by uid 500); 15 Dec 2013 10:49:14 -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 46741 invoked by uid 99); 15 Dec 2013 10:49:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 10:49:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yasser.zamani@live.com designates 65.55.111.90 as permitted sender) Received: from [65.55.111.90] (HELO blu0-omc2-s15.blu0.hotmail.com) (65.55.111.90) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 10:49:07 +0000 Received: from BLU0-SMTP10 ([65.55.111.73]) by blu0-omc2-s15.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 15 Dec 2013 02:48:46 -0800 X-TMN: [cgzsXEs5QCvAAaxHm3iC8+q1SSRocXiP] X-Originating-Email: [yasser.zamani@live.com] Message-ID: Received: from [172.20.164.174] ([83.147.196.178]) by BLU0-SMTP10.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 15 Dec 2013 02:48:44 -0800 Date: Sun, 15 Dec 2013 14:18:41 +0330 From: Yasser Zamani Organization: YAAS System Engineering User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: validation xmls in a Struts2 application with no Internet connection References: In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Dec 2013 10:48:45.0228 (UTC) FILETIME=[3A2B6EC0:01CEF983] X-Virus-Checked: Checked by ClamAV on apache.org I reviewed Struts internally and discovered that in all places it uses "1.0.2" instead of "1.0.3". So, I guessed if I rewrite my DOCTYPE to: it may work. I tried and yeah, it works! (However, it's some was confusing that "xwork-validator-1.0.3.dtd" is present in "xwork.jar" but we cannot use it "*offline*" until Struts also use it internally) Sorry for the inconvenience! Thanks for your reply. Sincerely Yours, Yasser. On 12/15/2013 01:44 PM, Lukasz Lenart wrote: > 2013/12/14 Yasser Zamani : >> Hi there, >> >> We have a Struts2 application with some validation XMLs with following >> "DOCTYPE": >> >> > 1.0.3//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> >> >> >> When we run this application on a server which has access to >> "struts.apache.org", there is no problem. But when we run it on a server >> which has no access to "struts.apache.org", Struts can not create default >> validation interceptor with following exception: >> >> Caught Exception while registering Interceptor class >> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor >> - interceptor - >> >> jar:file:/home/yasser/Applications/apache-tomcat-7.0.29/webapps/TAAM/WEB-INF/lib/struts2-core-2.3.1.1.jar!/struts-default.xml:148:127 >> at >> >> com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:213) >> at >> >> com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:70) >> at >> >> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1035) > > I think it has nothing to do with validators' configuration - > XmlConfigurationProvider is used to parse struts.xml, so please check > if you use the correct DOCTYPE there > > https://issues.apache.org/jira/browse/WW-3741 > > > Regards > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org