2 Replies Latest reply on May 6, 2019 4:06 PM by Frank Langelage

    com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1!

    Daniel Novo Novice

      I'm deploying a war project on wildfly 16 final and i'm getting this log message:

       

      WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-6) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1!

       

      my beans.xml

       

      <?xml version="1.0"  encoding="UTF-8"?>

      <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"

        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_2_0.xsd"

        bean-discovery-mode="all"

        version="2.0">

       

      </beans>

       

      my faces-config.xml

       

      <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"

        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd"

          version="2.3">

       

      <application>

       

       

      <locale-config>

      <default-locale>pt_PT</default-locale>

      <supported-locale>en_US</supported-locale>

      </locale-config>

       

       

      <navigation-rule>

      <from-view-id>*</from-view-id>

       

       

      <navigation-case>

      <from-outcome>index</from-outcome>

      <to-view-id>/index.xhtml</to-view-id>

      <redirect />

      </navigation-case>

       

       

      </navigation-rule>

       

      </faces-config>

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee webapp_4_0.xsd"

      version="4.0">

      <servlet>

      <servlet-name>Faces Servlet</servlet-name>

      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

      <load-on-startup>1</load-on-startup>

      </servlet>

       

       

      <servlet-mapping>

      <servlet-name>Faces Servlet</servlet-name>

      <url-pattern>*.xhtml</url-pattern>

      </servlet-mapping>

      </web-app>

       

      Can this log message be ignored? How to fix this?

       

      Thanks in advanced