O'Reilly logo

The Definitive Guide to JSF in Java EE 8: Building Web Applications with JavaServer Faces by Arjan Tijms, Bauke Scholtz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Bauke Scholtz, Arjan Tijms 2018

Bauke Scholtz and Arjan Tijms, The Definitive Guide to JSF in Java EE 8, https://doi.org/10.1007/978-1-4842-3387-0_9

9. Exception Handling

Bauke Scholtz and Arjan Tijms2

(1)Willemstad, Curaçao

(2)Amsterdam, Noord-Holland, The Netherlands

Sometimes things can unexpectedly go wrong. In Java, that usually manifests as an Exception being thrown. In Java EE, it’s basically no different. The issue is how and when to properly handle them. By default, any uncaught exception during an HTTP request will end up in a default error page provided by the application server. Figure 9-1 shows what WildFly’s default HTTP 500 error page looks like:

Figure 9-1 The default HTTP 500 error page of WildFly 11.0.0

The JSF (JavaServer Faces) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required