Primefaces breaks "distributable" appications

UI Components for JSF
Post Reply
OptimusPP
Posts: 2
Joined: 12 Oct 2021, 16:28

12 Oct 2021, 16:43

Hello,

myapp is distributable as per "distributable" tag in its own web.xml

I am getting this warning in the Wildfly log during myapp deployment.
WFLYUT0081: The deployment myapp.war will not be distributable because this feature is disabled in web-fragment.xml of the module primefaces-10.0.0.jar.

PrimeFaces version: 10
Wildfly version: 25, Jakarta EE 8 Full & Web
Java version: 11

Please advise on how to avoid primefaces breaking distributable functionality of web application.

Thanks

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

16 Oct 2021, 13:31

I just reported this issue and it will be in 11.0.0 Final: https://github.com/primefaces/primefaces/issues/7976

But for now just open the PrimeFaces JAR and edit the web-fragment.xml to have this and then re-real the JAR.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<web-fragment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              version="3.0"
              xmlns="http://java.sun.com/xml/ns/javaee"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd">
              
             <distributable />
             
    <listener>
        <listener-class>org.primefaces.webapp.UploadedFileCleanerListener</listener-class>
    </listener>
</web-fragme
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

OptimusPP
Posts: 2
Joined: 12 Oct 2021, 16:28

18 Oct 2021, 08:51

Thanks.
We'll wait for version 11.
Also the workaround around works.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests