Giter Site home page Giter Site logo

joinfaces-gradle-war-example's Introduction

JoinFaces

Maven Central Build Status codecov GitHub license

This project enables JSF usage inside Spring Boot Application.

It autoconfigures PrimeFaces, PrimeFaces Extensions, Apache MyFaces Tobago, OmniFaces, AdminFaces, Mojarra and MyFaces libraries to run at embedded Tomcat, Jetty or Undertow servlet containers. It autoconfigures Weld, Apache OpenWebBeans, and Rewrite too.

It also aims to solve JSF and Spring Boot integration features. Current version includes JSF and CDI annotations support and Spring Security JSF Facelet Tag support.

How to use

JoinFaces Example shows JSF Spring Boot Starter usage. It may help you to choose the JSF Spring Boot Starter that fits your needs.

Official example projects

Build tool \ packaging jar war
Maven maven-jar-example maven-war-example
Gradle gradle-jar-example gradle-war-example

Key Features

Take a look at Reference Guide to see JoinFaces features: Starters, Servlet-Context Init Parameters, JSF and CDI scope-annotations support and Spring Security JSF Facelet Tag support.

System Requirements

Joinfaces Java Spring Boot JSF / Faces
2.x 1.6 to 1.8 1.x 2.0 to 2.2
3.0 to 3.2 1.8 2.0 2.0 to 2.3
4.0.x 1.8 to 11 2.1 2.0 to 2.3
4.1.x 1.8 to 12 2.2 2.0 to 2.3
4.3.x 1.8 to 14 2.3 2.0 to 2.3
4.4.x 1.8 to 15 2.4 2.0 to 2.3
4.5.x 1.8 to 16 2.5 2.0 to 2.3
4.6.x 1.8 to 16 2.6 2.0 to 2.3
4.7.x 1.8 to 17 2.7 2.0 to 2.3
5.0.x 17 to 19 3.0 3.0 to 4.0
5.1.x 17 to 20 3.1 3.0 to 4.0
5.2.x 17 to 21 3.2 3.0 to 4.0
5.3.x 17 to 21 3.3 3.0 to 4.0

This are the combinations we have tested and expect to work, but depending on the features you are using, other combinations might work, too. When using Java 9 or higher, make sure to use JoinFaces only on the classpath and not on the modulepath.

Getting Help

Contributing

joinfaces-gradle-war-example's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar larsgrefer avatar persapiens avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

joinfaces-gradle-war-example's Issues

404 out-of-the-box

Hi I cloned this repository and ran the gradle bootrun task from intellij on java 8 and got a "http status 404 - not found" when accessing localhost:8080

My console output is...

2019-09-17 22:31:54.650  INFO 836 --- [           main] o.j.example.WarExampleApplication        : Starting WarExampleApplication on Philips-MacBook-Pro.local with PID 836 (/Users/philipwilkinson/IdeaProjects/joinfaces-gradle-war-example/build/classes/java/main started by philipwilkinson in /Users/philipwilkinson/IdeaProjects/joinfaces-gradle-war-example)
2019-09-17 22:31:54.653  INFO 836 --- [           main] o.j.example.WarExampleApplication        : No active profile set, falling back to default profiles: default
2019-09-17 22:31:55.224  INFO 836 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration$Jsf2_3AutoConfiguration' of type [org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration$Jsf2_3AutoConfiguration$$EnhancerBySpringCGLIB$$57c9d17e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-09-17 22:31:55.227  INFO 836 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration' of type [org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration$$EnhancerBySpringCGLIB$$bf85684] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-09-17 22:31:55.501  INFO 836 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2019-09-17 22:31:55.530  INFO 836 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-09-17 22:31:55.530  INFO 836 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.24]
2019-09-17 22:31:55.720  INFO 836 --- [           main] org.apache.jasper.servlet.TldScanner     : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2019-09-17 22:31:55.732  INFO 836 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-09-17 22:31:55.733  INFO 836 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1039 ms
2019-09-17 22:31:55.941  INFO 836 --- [           main] o.j.autoconfigure.ClasspathScanUtil      : 1 classes failed to load, because some of their dependencies are missing. Set the log-level to debug for more information.
2019-09-17 22:31:55.943  INFO 836 --- [           main] vletContainerInitializerRegistrationBean : Load scan classes file for com.sun.faces.config.FacesInitializer took 0.124s
2019-09-17 22:31:56.009  INFO 836 --- [           main] j.e.resource.webcontainer.jsf.config     : Initializing Mojarra 2.3.8 ( 20181116-0037 55af8b79ca53ec2df566f9c08a430259d30f9ba5) for context ''
2019-09-17 22:31:56.129  INFO 836 --- [           main] j.e.r.webcontainer.jsf.application       : JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
2019-09-17 22:31:56.696  INFO 836 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2019-09-17 22:31:56.699  INFO 836 --- [           main] o.j.example.WarExampleApplication        : Started WarExampleApplication in 17.49 seconds (JVM running for 17.863)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.