I'm using a class inherited from Filter
in Java to do login control.
I made the mapping in Web.xml
as follows:
<filter>
<filter-name>ValidacaoLoginFilter</filter-name>
<filter-class>br.com.dgtbr.configuracao.ValidacaoLoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ValidacaoLoginFilter</filter-name>
<url-pattern>/sistema/*</url-pattern>
</filter-mapping>
My problem is that I want only .JSP
pages to drop into the filter, but I can not put url-pattern
as follows:
.....
<filter-mapping>
<filter-name>ValidacaoLoginFilter</filter-name>
<url-pattern>/sistema/*.jsp</url-pattern>
</filter-mapping>
The following error occurs:
Deployment is in progress ...
deploy? config = file% 3A% 2FC% 3A% 2FUsers% 2FLeonardo% 2FAppData% 2FLocal% 2FTemp% 2Fcontext4308821743855259488.xml & path = / DGTBr. FAIL - Deployed application at context path ... but context failed to start
...... nbproject \ build-impl.xml: 1163: The module has not been deployed. Check the server log for more details.
In summary, inside the folder /sistema/
I have another folder that does not want to go through Filter
.