I have written a simple test servlet and deployed it on websphere applications.
When i try to access the servlet it gives me following error
Error 404: SRVE0190E:
I have checked all the basic things like web.xml entry, servlet syntax etc.
Everything is correct.. The same servlet when deployed on Tomcat is working fine.
I also checked the
com.ibm.ws.webcontainer.invokefilterscompatibility property in Servers > Server > Web Container Settings > Web Container > Custom Properties .. it is set to true.
Not getting exactly what is the issue. If any one could help to resolve this issue
The serlvet that i created :
public class TestServlet extends HttpServlet{
private static final long serialVersionUID = 1L;
public TestServlet() {
super();
}
public void init(ServletConfig config) throws ServletException {
super.init(config);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.print("This is a testing servlet ... Please ignore");
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request,response);
}
}
Entry in web.xml :
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>com.wizard.servlet.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
The war file which contains the servlet is deployed on one of the cells in Websphere server. Thanks in advance.