JBoss EAP7 skips servlet filters in web.xml
pranav.cache Dec 29, 2016 3:56 AMWe are migrating an old application. We had to use Jdeveloper and Jboss server.
We have build the application on JDeveloper 12c and then created a war file by creating a profile. Later we deployed this war file in JBoss EAP 7.0.0 server (copied the war and pasted in D:\jboss-eap-7.0.0\standalone\deployments) and started the standalone. The application is coming up but its not executing the filters we have mentioned in the web.xml file. I have written a SysOut statement in doFilter , which is not showing up.
If we run the applicatioin Jdeveloper itself its running fine in the default weblogic server.
Are we missing something? Below is the web.xml file.
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>authority</param-name>
<param-value>https://login.windows.net/</param-value>
</context-param>
<context-param>
<param-name>tenant</param-name>
<param-value>TENANT</param-value>
</context-param>
<filter>
<filter-name>BasicFilter</filter-name>
<filter-class>com.org.aad.BasicFilter</filter-class>
<init-param>
<param-name>client_id</param-name>
<param-value>CLIENT_ID</param-value>
</init-param>
<init-param>
<param-name>secret_key</param-name>
<param-value>SECRET_KEY</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>BasicFilter</filter-name>
<url-pattern>/controller/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>logon.jsp</welcome-file>
</welcome-file-list>
<servlet-mapping>
<url-pattern>/controller</url-pattern>
<servlet-name>ControlServlet</servlet-name>
</servlet-mapping>
<servlet>
<servlet-name>ControlServlet</servlet-name>
<servlet-class>com.org.ControlServlet</servlet-class>
</servlet>
<session-config>
<session-timeout>90</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
</web-app>