Failed to get file com.sun.faces.flow.FlowDiscoveryCDIExtension. Streams described with javax.faces.flow.builder.FlowDefinition are not available

21:39:39,453 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (Se
rverService Thread Pool -- 103) Unable to obtain com.sun.faces.flow.FlowDiscover
yCDIExtension from CDI implementation.  Flows described with javax.faces.flow.bu
ilder.FlowDefinition are unavailable.

      

I am using Jboss EAP 6.1, with CDI, Hibernate and JSF 2.2. I thought it might be caused by JSF 2.2, so I changed face-config.xml

to 2.0, but the bug is still there.

I followed this tutorial: https://developer.jboss.org/thread/203257

This is my module looks like this: This is how my module.xml looks like:

<dependencies>
    <module name="javax.faces.api"/>
    <module name="javaee.api"/>
    <module name="javax.servlet.jstl.api"/>
    <module name="org.apache.xerces" services="import"/>
    <module name="org.apache.xalan" services="import"/>
</dependencies>
<resources>
    <resource-root path="jsf-impl-2.2.7.jar"/>
    <!-- Insert resources here -->
</resources>

<dependencies>
    <module name="javax.el.api" export="true"/>
    <module name="javax.servlet.api" export="true"/>
    <module name="javax.servlet.jsp.api" export="true"/>
    <module name="javax.servlet.jstl.api" export="true"/>
    <module name="javax.validation.api" export="true"/>
    <module name="com.sun.jsf-impl"/>
</dependencies>
<resources>
    <resource-root path="jsf-api-2.2.7.jar"/>
    <!-- Insert resources here -->
</resources>

      

+3


source to share


1 answer


How did you switch to JSF 2.2?

If you have included the jar files in the war / ear file, then one of them downloads and tries to load the CDI extension, but the box containing this class is not available. Try removing the JSF jars from the deployment archive and see if it disappears.



If you added it to your server as a module, you might have missed the jar file or dependent module that is part of the JSF module from the definition. Remove the modified or added module and make sure it is gone.

0


source







All Articles