Wildfly 27 issues with Primefaces 12

696 views
Skip to first unread message

Harshal

unread,
Feb 16, 2023, 11:08:43 AM2/16/23
to WildFly
Hello,
We are migrating our webservices from Wildfly 18 to 27. Earlier we had primefaces 3.0 used with wildfly 18. Currently I am testing primefaces 12 with wildfly 27 but getting following error during ear deployment:

2023-02-15 12:00:14,812 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.subunit."myService.ear"."myService.war".undertow-deployment.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.deployment.subunit."myService.ear"."myService.war".undertow-deployment.UndertowDeploymentInfoService: Failed to start service
    at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
    at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
    at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
    at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
    at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
    at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.IllegalArgumentException: UT010012: Listener class class org.primefaces.webapp.UploadedFileCleanerListener must implement at least one listener interface
    at io.undert...@2.3.0.Final//io.undertow.servlet.api.ListenerInfo.<init>(ListenerInfo.java:47)
    at org.wildfly.ext...@27.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.addListener(UndertowDeploymentInfoService.java:1120)
    at org.wildfly.ext...@27.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:807)
    at org.wildfly.ext...@27.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:288)
    at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
    at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
    ... 6 more

If I try using primefaces 8.0 I get a different error :
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Must have a Constructor that takes in a BehaviorConfig

Any inputs from you all would be greatly helpful. Thank you in advance.

Harshal

unread,
Feb 16, 2023, 11:26:32 PM2/16/23
to WildFly
Issue is resolved by using "Primefaces 12 for jakarta" jar.

Wolfgang Mayer

unread,
Nov 1, 2023, 9:10:46 AM11/1/23
to WildFly
I have the same issue with Primefaces 13.0.2 and WildFly 30.0.0.Beta1

Wolfgang Mayer

unread,
Nov 8, 2023, 7:34:37 AM11/8/23
to WildFly
I solved this issue by using a classifier like:
<dependency>
            <groupId>org.primefaces</groupId>
            <artifactId>primefaces</artifactId>
            <version>13.0.2</version>
            <classifier>jakarta</classifier>
        </dependency>
Reply all
Reply to author
Forward
0 new messages