You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2016/09/25 17:47:20 UTC

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

Mark Struberg created TOMEE-1943:
------------------------------------

             Summary: 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: 7.0.1, 1.7.4
            Reporter: Mark Struberg
            Assignee: Mark Struberg
             Fix For: 7.0.2


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)