Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 79812 invoked from network); 1 Nov 2005 22:50:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Nov 2005 22:50:01 -0000 Received: (qmail 50246 invoked by uid 500); 1 Nov 2005 22:50:00 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 50229 invoked by uid 500); 1 Nov 2005 22:50:00 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Received: (qmail 50215 invoked by uid 99); 1 Nov 2005 22:50:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2005 14:50:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ekoneil@bea.com designates 63.96.162.5 as permitted sender) Received: from [63.96.162.5] (HELO ussjmh01.bea.com) (63.96.162.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2005 14:49:55 -0800 Received: from [127.0.0.1] ([10.36.35.150]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id jA1MnOtl012793 for ; Tue, 1 Nov 2005 14:49:38 -0800 Message-ID: <4367F0F1.1030905@bea.com> Date: Tue, 01 Nov 2005 15:49:21 -0700 From: "Eddie O'Neil" User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: Beehive Dev Subject: Re: svn commit: r330142 - in /beehive/trunk/netui: src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerGenerator.java src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java test/webapps/drt/build.xml References: <20051101224525.76546.qmail@minotaur.apache.org> In-Reply-To: <20051101224525.76546.qmail@minotaur.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 4.7.0.111621, Antispam-Engine: 2.0.2.0, Antispam-Data: 2005.11.1.26 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Glad you actually got this tested against Struts 1.1. :) I'll try to get that stuff wired back up in the next couple of days... Eddie rich@apache.org wrote: > Author: rich > Date: Tue Nov 1 14:45:16 2005 > New Revision: 330142 > > URL: http://svn.apache.org/viewcvs?rev=330142&view=rev > Log: > As discussed on the dev list, I've changed things so that the field validation annotations cause Validator XML config files to be referenced through the classloader, as "/_pageflow/pageflow-validation-*.xml" instead of through the servlet context as "/WEB-INF/classes/_pageflow/pageflow-validation-*.xml". I added doc on the simple workaround for use with Struts 1.1. > > tests: bvt in netui, bvt.struts11 in netui/test/webapps/drt (WinXP) (before Eddie disabled it :) ) > BB: bvt in netui (linux) [bvt.struts11 to follow later] > > > Modified: > beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerGenerator.java > beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java > beehive/trunk/netui/test/webapps/drt/build.xml > > Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerGenerator.java > URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerGenerator.java?rev=330142&r1=330141&r2=330142&view=diff > ============================================================================== > --- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerGenerator.java (original) > +++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerGenerator.java Tue Nov 1 14:45:16 2005 > @@ -172,14 +172,20 @@ > { > e.printDiagnostic( getDiagnostics() ); > } > - catch ( Exception e ) > + catch ( FileNotFoundException e ) > + { > + getDiagnostics().addError( publicClass, "error.could-not-generate", > + strutsConfigFile != null ? strutsConfigFile.getPath() : null, > + e.getMessage() ); > + } > + catch ( IOException e ) > + { > + getDiagnostics().addError( publicClass, "error.could-not-generate", > + strutsConfigFile != null ? strutsConfigFile.getPath() : null, > + e.getMessage() ); > + } > + catch ( XmlModelWriterException e ) > { > - e.printStackTrace(); // @TODO get rid of this > - assert e instanceof FileNotFoundException > - || e instanceof IOException > - || e instanceof XmlModelWriterException > - : e.getClass().getName(); > - > getDiagnostics().addError( publicClass, "error.could-not-generate", > strutsConfigFile != null ? strutsConfigFile.getPath() : null, > e.getMessage() ); > > Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java > URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java?rev=330142&r1=330141&r2=330142&view=diff > ============================================================================== > --- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java (original) > +++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java Tue Nov 1 14:45:16 2005 > @@ -596,7 +596,7 @@ > > if ( _validationModel != null && ! _validationModel.isEmpty() ) > { > - pathNames.append( ",/WEB-INF/classes/" ).append( _validationModel.getOutputFileURI() ); > + pathNames.append( ",/" ).append( _validationModel.getOutputFileURI() ); > } > > if ( _additionalValidatorConfigs != null ) > > Modified: beehive/trunk/netui/test/webapps/drt/build.xml > URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/build.xml?rev=330142&r1=330141&r2=330142&view=diff > ============================================================================== > --- beehive/trunk/netui/test/webapps/drt/build.xml (original) > +++ beehive/trunk/netui/test/webapps/drt/build.xml Tue Nov 1 14:45:16 2005 > @@ -207,6 +207,14 @@ > > > > + > + > + > + > + > + > > > > @@ -216,6 +224,7 @@ > > > > + > > > >