Unable to build California theme template

UI Components for JSF
Post Reply
User avatar
OsmanBalci
Posts: 9
Joined: 17 Jul 2014, 19:34
Location: Blacksburg, Virginia, U.S.A.
Contact:

16 Jun 2021, 00:32

I bought the California template today (June 15) and have been unable to build it as it is shown on the live web page. It gives me the following error messages:

[2021-06-15 06:09:19,132] Artifact Gradle : org.primefaces : California-1.0.war: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"California-1.0.war\".undertow-deployment" => "java.lang.RuntimeException: org.apache.webbeans.exception.WebBeansDeploymentException: java.lang.UnsupportedOperationException: unsupported archive type: vfs:/content/California-1.0.war/WEB-INF/lib/california-theme-3.0.0.jar/

Here is my Gradle build file:

plugins {
id 'java'
id 'war'
}

group 'org.primefaces'
version '1.0'

repositories {
// Default Maven Central repository
mavenCentral()

maven {
url 'https://repository.primefaces.org/'
}

// flat filesystem directory containing the JAR files
flatDir {
dirs '/Users/Balci/IdeaProjects/California/src/main/webapp/WEB-INF/lib'
}
}

ext {
junitVersion = '5.7.1'
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencies {
compileOnly group: 'javax', name: 'javaee-api', version: '8.0.1'
compileOnly group: 'org.primefaces', name: 'primefaces', version: '10.0.1'
compileOnly group: 'org.primefaces.themes', name: 'california-theme', version: '3.0.0'
implementation group: 'org.apache.openwebbeans', name: 'openwebbeans-web', version: '2.0.23'
compileOnly group: 'com.sun.faces', name: 'jsf-impl', version: '2.2.20'

testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}

test {
useJUnitPlatform()
}

I am using the CSS file included in the downloaded template files. I do not want to make any changes by using SASS. I just want to create a project that displays what I see on the PF live demo page.

I am using:
<> PrimeFaces 10.0.1
<> IntelliJ IDEA Ultimate 2021.1.2 with Gradle build tool
<> WildFly 21.0.2
<> OpenJDK 11
<> macOS Big Sur

I hope that it will be easy to insert my code in the template for my tutorial apps for my teaching. I think that it would be exciting for my students to see how wonderful PrimeFaces technology is if the app is developed with a theme template looking very professional.

Any help will be greatly appreciated.

All the best,

Osman

Osman Balci
Director of Mobile/Cloud Software Engineering Lab
Professor of Computer Science
https://manta.cs.vt.edu/balci
Tel: (540) 231-4841 balci@vt.edu
638 McBryde Hall, MC 0106
Department of Computer Science
Virginia Tech, Blacksburg, VA 24061, U.S.A.
OSMAN BALCI

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

16 Jun 2021, 15:29

Most of those template pom.xml are designed to run with Jetty like "mvn clean jetty:run" which includes all it needs to run in Jetty.

For running in Wildfly you will have to tweak the pom.xml or gradle build to properly have the right dependencies and remove ones like CDI and OpenWebBeans that are not needed by a full EE container like Wildfly since Wildfy comes with Weld CDI etc.
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

User avatar
OsmanBalci
Posts: 9
Joined: 17 Jul 2014, 19:34
Location: Blacksburg, Virginia, U.S.A.
Contact:

16 Jun 2021, 17:02

Thanks for your reply.

After spending more than 7 hours, I am giving up. It is just too complex to convert a Jetty project to run under WildFly in IntelliJ with Gradle. Unfortunately, the instructions given for the template are not useful.
OSMAN BALCI

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

16 Jun 2021, 19:20

I don't know if it will help but here is my WildFly Bootable example where I took the PrimeFaces Showcase that used to work only on Jetty and made it a Wildfly app.

See Wildfly Faces:https://github.com/melloware/wildfly-faces
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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests