Note that there are some explanatory texts on larger screens.

plurals
  1. POAccessing servlets in Websphere
    text
    copied!<p>I have written a simple test servlet and deployed it on websphere applications.</p> <p>When i try to access the servlet it gives me following error</p> <p>Error 404: SRVE0190E:</p> <p>I have checked all the basic things like web.xml entry, servlet syntax etc.</p> <p>Everything is correct.. The same servlet when deployed on Tomcat is working fine.</p> <p>I also checked the </p> <p>com.ibm.ws.webcontainer.invokefilterscompatibility property in Servers > Server > Web Container Settings > Web Container > Custom Properties .. it is set to true.</p> <p>Not getting exactly what is the issue. If any one could help to resolve this issue</p> <p>The serlvet that i created :</p> <pre><code> 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); } </code></pre> <p>}</p> <p>Entry in web.xml :</p> <pre><code> &lt;servlet&gt; &lt;servlet-name&gt;TestServlet&lt;/servlet-name&gt; &lt;servlet-class&gt;com.wizard.servlet.TestServlet&lt;/servlet-class&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;TestServlet&lt;/servlet-name&gt; &lt;url-pattern&gt;/TestServlet&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>The war file which contains the servlet is deployed on one of the cells in Websphere server. Thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload