eclipse-ee4j / mojarra

Mojarra, a Jakarta Faces implementation
Other
160 stars 109 forks source link

Automatic extensionless mapping does not work on Java Facelet #5362

Closed hantsy closed 10 months ago

hantsy commented 10 months ago

Jakarta EE 10/Faces 4.0/Glassfish, example project: https://github.com/hantsy/jakartaee10-sandbox/tree/master/faces

Given Facelet written in pure Java:


@View("/hello-facelet.xhtml")
@ApplicationScoped
class HelloFacelet extends Facelet{
}

I have enabled automatic extensionless mapping in web.xml.

When deploying to Glassfish,

mvn clean package cargo:run

open a browser to navigate http://localhost:8080/faces-examples/hello-facelet, it does not work.

I have to append the .xhtml in the url.