[
https://issues.apache.org/jira/browse/MYFACES-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17789208#comment-17789208
]
Manuel K commented on MYFACES-4643:
-----------------------------------
When debugging the MyFaces _DefaultAnnotationProvider_ the method
_getAnnotatedMetaInfClasses_ receives the following URLs, which are definitely
wrong (the directory _bin\content_ does not exist). But these are the URLs
returned by the ModuleClassLoader?
{code:java}
0 = {URL@44555}
"vfs:/C:/ourapp/server/bin/content/ourapp.ear/ourapp-web.war/WEB-INF/lib/rewrite-config-prettyfaces-10.0.0.Final.jar/META-INF/faces-config.xml"
1 = {URL@44556}
"vfs:/C:/ourapp/server/bin/content/ourapp.ear/ourapp-web.war/WEB-INF/lib/primefaces-extensions-13.0.3-jakarta.jar/META-INF/faces-config.xml"
2 = {URL@44557}
"jar:file:/C:/ourapp/server/modules/org/jboss/as/jsf-injection/myfaces/wildfly-jsf-injection-30.0.0.Final.jar!/META-INF/faces-config.xml"
3 = {URL@44558}
"vfs:/C:/ourapp/server/bin/content/ourapp.ear/ourapp-web.war/WEB-INF/lib/primefaces-13.0.3-jakarta.jar/META-INF/faces-config.xml"
4 = {URL@44559}
"vfs:/C:/ourapp/server/bin/content/ourapp.ear/ourapp-web.war/WEB-INF/lib/rain-theme-4.0.0-jakarta.jar/META-INF/faces-config.xml"
5 = {URL@44560}
"vfs:/C:/ourapp/server/bin/content/ourapp.ear/ourapp-web.war/WEB-INF/lib/omnifaces-4.3.jar/META-INF/faces-config.xml"
6 = {URL@44561}
"vfs:/C:/ourapp/server/bin/content/ourapp.ear/ourapp-web.war/WEB-INF/lib/rewrite-integration-faces-10.0.0.Final.jar/META-INF/faces-config.xml"
{code}
Looks like a bug to me...but maybe not? Let's see if BalusC replies in the
GitHub issue.
> OmniFaces converters not found using CDI
> ----------------------------------------
>
> Key: MYFACES-4643
> URL: https://issues.apache.org/jira/browse/MYFACES-4643
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 4.0.1
> Reporter: Manuel K
> Priority: Major
> Attachments: primefaces-test.zip
>
>
> [As I wrote in the OmniFaces GitHub
> repository|https://github.com/omnifaces/omnifaces/issues/744#issuecomment-1824172540]:
> When upgrading from OmniFaces 4.1 to 4.2/4.3 in our application (WildFly 30,
> MyFaces 4.0.1), we get the following errors due to the change to the
> _bean-discovery-mode_ discussed in the linked GitHub issue:
> {code:java}
> jakarta.faces.FacesException: Could not find any registered converter-class
> by converterId : omnifaces.SelectItemsConverter {code}
> It especially happens when using the following context-param:
> {code:java}
> <context-param>
>
> <param-name>org.apache.myfaces.annotation.USE_CDI_FOR_ANNOTATION_SCANNING</param-name>
> <param-value>true</param-value>
> </context-param> {code}
> But in our application it even happens without it. Reproducer using
> primefaces-test is attached. Run it using _mvn clean jetty:run -Pmyfaces40_
> and the exception appears.
> I would have thought that it would be an OmniFaces issue, but melloware
> thinks it's a MyFaces issue.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)