You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/11/11 18:56:01 UTC

[jira] [Updated] (TOMEE-1943) Tomee blows up when it finds tags in beans.xml which it doesn't know

     [ https://issues.apache.org/jira/browse/TOMEE-1943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau updated TOMEE-1943:
--------------------------------------
    Fix Version/s:     (was: 7.0.2)
                   7.0.3

> Tomee blows up when it finds tags in beans.xml which it doesn't know
> --------------------------------------------------------------------
>
>                 Key: TOMEE-1943
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1943
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 1.7.4, 7.0.1
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 7.0.3
>
>
> We blow up heavily if we find a tag in e.g. beans.xml which we don't know.
> This is really sad since OWB has additional tags since many years and Weld also has them. 
> A hardcoded 'ignore' hack got added for Weld, but not for OWB. 
> We must only log out a warning if we detect a tag or attribute we don't know, but must not blow up. This really limits us.
> There is a simple trick to work around this:
>     @XmlAnyElement(lax = true)
>     private List<Object> unknownElements;
> + log out those values manually afterwards.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)