All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.web-fragment.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<web-fragment xmlns="https://jakarta.ee/xml/ns/jakartaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-fragment_6_0.xsd"
	version="6.0">

	<listener>
		<listener-class>com.jk.webstack.listeners.JKWebstackContextListener</listener-class>
	</listener>

	<!-- for spring web, https://stackoverflow.com/questions/33633098/java-lang-illegalstateexception-cannot-initialize-context-because-there-is-alre -->
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value></param-value>
	</context-param>

	<error-page>
		<error-code>400</error-code>
		<location>/error/index.xhtml</location>
	</error-page>

	<error-page>
		<error-code>403</error-code>
		<location>/error/index.xhtml</location>
	</error-page>

	<error-page>
		<error-code>404</error-code>
		<location>/error/404.xhtml</location>
	</error-page>

	<error-page>
		<exception-type>java.lang.Throwable</exception-type>
		<location>/error/index.xhtml</location>
	</error-page>
	<error-page>
		<exception-type>jakarta.faces.application.ViewExpiredException</exception-type>
		<location>/index.xhtml</location>
	</error-page>
</web-fragment>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy