You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Vamsavardhana Reddy <c1...@gmail.com> on 2010/09/27 12:48:02 UTC

[DISCUSSION] Bean validation support: handling validation xml parsing errors

I am working on "GERONIMO-5222 Add support for application validation
descriptor support for deployed applications".  I have not come across
anything in Java EE 6 spec that says what is to be done in the case where
there are errors in validation.xml.  Current implementation in Geronimo, if
validation.xml parsing errors will result in an exception at runtime.  I
think Geronimo should be throwing deployment time exceptions if
validation.xml parsing results in an error. Also, should we extend this to
checking the constraint mapping xml files as well (atleast check if the
constraint mapping xml files exist in the deployment bundle).  What do
others think?

-- 
Vamsi

Re: [DISCUSSION] Bean validation support: handling validation xml parsing errors

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
In rev 1002222, I have checked in the code to parse the validation &
constraint mapping xml's and throw deployment exceptions if there are any
errors.


[1]  http://svn.apache.org/viewvc?rev=1002222&view=rev

On Mon, Sep 27, 2010 at 4:18 PM, Vamsavardhana Reddy <c1...@gmail.com>wrote:

> I am working on "GERONIMO-5222 Add support for application validation
> descriptor support for deployed applications".  I have not come across
> anything in Java EE 6 spec that says what is to be done in the case where
> there are errors in validation.xml.  Current implementation in Geronimo, if
> validation.xml parsing errors will result in an exception at runtime.  I
> think Geronimo should be throwing deployment time exceptions if
> validation.xml parsing results in an error. Also, should we extend this to
> checking the constraint mapping xml files as well (atleast check if the
> constraint mapping xml files exist in the deployment bundle).  What do
> others think?
>
> --
> Vamsi
>



-- 
Vamsi