I develop simple servlet in Liferay. I see that its getting initialised ( verified by putting System.out in init() method). But when I post some data to the servlet, Its not getting invoked. How can this be debugged or what I need to add it to get it working.
Made servlet entry file : webapps/ROOT/WEB-INF/web.xml, The liferay has other custom webapps working.
.....
<servlet>
<servlet-name>HealthCheckServelet</servlet-name>
<servlet-class>com.test.HealthCheck</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>HealthCheckServelet</servlet-name>
<url-pattern>/health-check/*</url-pattern>
</servlet-mapping>
.......
The servlet is invoked using HTTP GET http://host-ip/health-check/temperature