[ 
https://issues.apache.org/jira/browse/EXTVAL-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892527#action_12892527
 ] 

Gerhard Petracek commented on EXTVAL-109:
-----------------------------------------

@mark:
extval isn't based on cdi -> that won't work.

@rudy:
it isn't really a bug. we just have to check all base implementations for 
issues in combination with cdi.
currently we just don't support customized extval artifacts placed in a (cdi) 
bean-archive.
-> i would file a task or improvement for it and close this one (i think we 
will find multiple similar base implementations).

the workaround for now is to create an own module in your app which hosts all 
custom extval artifacts (and provide it as jar file). so you don't have a 
beans.xml file in the module.

> Extval Custom Java ExtValModuleConfig and OpenWebBeans -> NPE during startup 
> WebContainer
> -----------------------------------------------------------------------------------------
>
>                 Key: EXTVAL-109
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-109
>             Project: MyFaces Extensions Validator
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.4-SNAPSHOT, 2.0.4-SNAPSHOT, 1.1.4-SNAPSHOT
>            Reporter: Rudy De Busscher
>            Priority: Minor
>
> OpenWebBeans initializes all classes in the archives (jars or classes 
> directory) that have a beans.xml file.
> But since the ExtValModuleConfig classes have all the following line
> *private static ExtValContext extValContext = ExtValContext.getContext();*
> The ExtvalContext is initialized during startup of the WebContainer when the 
> project extends this class (cutoms Java ExtValModuleConfig ). In the 
> constructor of the ExtValContext class, we try to access the web.xml 
> initialization parameter through facesContext, which is not yet available.
> solution:
> Leave the static variable empty and use a method that initializes the 
> variable when first requested. (used by the get() and use() methods)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to