spring-projects / spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
https://spring.io/projects/spring-boot
Apache License 2.0
75.11k stars 40.67k forks source link

Spring Boot + JSF packaging as a JAR (Not as a WAR) #5799

Closed mtbadi39 closed 8 years ago

mtbadi39 commented 8 years ago

Hi; There are many examples for Spring Boot + JSF packaged as WAR provided Here and here and here. but when trying to package them as JAR, things doesnt works ! The main problem was described here. Our main goal to do this was Wrapping our application as a Windows Service. Thanks !

philwebb commented 8 years ago

I'm afraid we don't currently support JSF officially with Spring Boot.

mtbadi39 commented 8 years ago

I know thats JSF and Spring MVC are are fully competitors. we cannot mix them and we should choose the one or the other. But may be its time for Spring Boot to support some components based frameworks out of the box (ex : PrimeFaces, ICEFaces, ...etc)

wilkinsona commented 8 years ago

@mtbadi39 Given that it works when packaged as a war, why not do that? You can build an executable war and then run it in the same way as you'd run an executable jar (java -jar).

mtbadi39 commented 8 years ago

@wilkinsona thanks for interest Maybe you should look here and here and here : Its working with Jar but not with War

persapiens commented 8 years ago

Hi @mtbadi39 ,

There is no built in Spring Boot Starter to integrate JSF, but Spring Boot references one Community Contribution called JoinFaces.

You could try JoinFaces Example also.

mtbadi39 commented 8 years ago

thanks @persapiens , i will try it