HTTP Status 404 - Servlet not foundWhat is the difference between JSF, Servlet and JSP?How to upload files to server using JSP/Servlet?How to use java.net.URLConnection to fire and handle HTTP requestsHow do servlets work? Instantiation, sessions, shared variables and multithreadingKey in Request Token is null or blank- Brick red Social AuthWhat is Java Servlet?Return JSON from servletVariables on servlet to JSP and JSP to servletSpring MVC home directory 404 Error Intellij IdeaWARNING: No mapping found for HTTP request with URI [/Test/] in DispatcherServlet with name 'dispatcher'

Can a virus destroy the BIOS of a modern computer?

Gatling : Performance testing tool

How do I gain back my faith in my PhD degree?

Should I cover my bicycle overnight while bikepacking?

Why can't we play rap on piano?

ssTTsSTtRrriinInnnnNNNIiinngg

Why do bosons tend to occupy the same state?

What killed these X2 caps?

Unlock My Phone! February 2018

What mechanic is there to disable a threat instead of killing it?

How to show a landlord what we have in savings?

What's the in-universe reasoning behind sorcerers needing material components?

What exploit are these user agents trying to use?

How does a predictive coding aid in lossless compression?

How can I determine if the org that I'm currently connected to is a scratch org?

How do I know where to place holes on an instrument?

How dangerous is XSS?

Arrow those variables!

One verb to replace 'be a member of' a club

How would I stat a creature to be immune to everything but the Magic Missile spell? (just for fun)

Is it logically or scientifically possible to artificially send energy to the body?

iPad being using in wall mount battery swollen

Why is consensus so controversial in Britain?

CAST throwing error when run in stored procedure but not when run as raw query



HTTP Status 404 - Servlet not found


What is the difference between JSF, Servlet and JSP?How to upload files to server using JSP/Servlet?How to use java.net.URLConnection to fire and handle HTTP requestsHow do servlets work? Instantiation, sessions, shared variables and multithreadingKey in Request Token is null or blank- Brick red Social AuthWhat is Java Servlet?Return JSON from servletVariables on servlet to JSP and JSP to servletSpring MVC home directory 404 Error Intellij IdeaWARNING: No mapping found for HTTP request with URI [/Test/] in DispatcherServlet with name 'dispatcher'













0















I have a project in Eclipse and trying to call a servlet from the web browser. The image shows the structure of my project. Although I set the url in the annotation I still can't get find the resource.



Here is my code:



package java.enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




project hierarchy



I have tried calling the servlet using the following:
http://localhost:8080/MultiKeywordSearch/hello
http://localhost:8080/MultiKeywordSearch/src/java/enablingKeyWordSearch/hello



... and so on. Yet, I get an HTTP Status 404 Error.



This is the content of my web.xml file:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>


I am using Apache Tomcat v8.0 if that makes a difference.



UPDATE: showing source listing in the new screenshot; removed java namespace
updated src listing



EDIT 2.0
web.xml:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/multiKeywordSearch</url-pattern>
</servlet-mapping>
</web-app>


The enablingKeyWordSearch.TestServlet.java file:



package enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
@WebServlet(name = "HelloServlet", urlPatterns = "/multiKeywordSearch")
@MultipartConfig
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




Still getting a 404 error sadly.










share|improve this question
























  • What's the warning it's showing on the type name? Also, change your package names so that they do not use a reserved namespace like "java."

    – nitind
    Mar 9 at 0:28











  • It just says the serializable class does not declare a static final serialVersionUID field of type long. Fixing the namespace issue now

    – i_use_the_internet
    Mar 9 at 3:24












  • fixed namespace issue, did not fix the problem

    – i_use_the_internet
    Mar 9 at 3:41











  • Please update your source listing, and if you are using a web.xml file, include its contents.

    – nitind
    Mar 9 at 3:43











  • @nitind done, see above

    – i_use_the_internet
    Mar 9 at 7:06















0















I have a project in Eclipse and trying to call a servlet from the web browser. The image shows the structure of my project. Although I set the url in the annotation I still can't get find the resource.



Here is my code:



package java.enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




project hierarchy



I have tried calling the servlet using the following:
http://localhost:8080/MultiKeywordSearch/hello
http://localhost:8080/MultiKeywordSearch/src/java/enablingKeyWordSearch/hello



... and so on. Yet, I get an HTTP Status 404 Error.



This is the content of my web.xml file:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>


I am using Apache Tomcat v8.0 if that makes a difference.



UPDATE: showing source listing in the new screenshot; removed java namespace
updated src listing



EDIT 2.0
web.xml:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/multiKeywordSearch</url-pattern>
</servlet-mapping>
</web-app>


The enablingKeyWordSearch.TestServlet.java file:



package enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
@WebServlet(name = "HelloServlet", urlPatterns = "/multiKeywordSearch")
@MultipartConfig
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




Still getting a 404 error sadly.










share|improve this question
























  • What's the warning it's showing on the type name? Also, change your package names so that they do not use a reserved namespace like "java."

    – nitind
    Mar 9 at 0:28











  • It just says the serializable class does not declare a static final serialVersionUID field of type long. Fixing the namespace issue now

    – i_use_the_internet
    Mar 9 at 3:24












  • fixed namespace issue, did not fix the problem

    – i_use_the_internet
    Mar 9 at 3:41











  • Please update your source listing, and if you are using a web.xml file, include its contents.

    – nitind
    Mar 9 at 3:43











  • @nitind done, see above

    – i_use_the_internet
    Mar 9 at 7:06













0












0








0








I have a project in Eclipse and trying to call a servlet from the web browser. The image shows the structure of my project. Although I set the url in the annotation I still can't get find the resource.



Here is my code:



package java.enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




project hierarchy



I have tried calling the servlet using the following:
http://localhost:8080/MultiKeywordSearch/hello
http://localhost:8080/MultiKeywordSearch/src/java/enablingKeyWordSearch/hello



... and so on. Yet, I get an HTTP Status 404 Error.



This is the content of my web.xml file:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>


I am using Apache Tomcat v8.0 if that makes a difference.



UPDATE: showing source listing in the new screenshot; removed java namespace
updated src listing



EDIT 2.0
web.xml:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/multiKeywordSearch</url-pattern>
</servlet-mapping>
</web-app>


The enablingKeyWordSearch.TestServlet.java file:



package enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
@WebServlet(name = "HelloServlet", urlPatterns = "/multiKeywordSearch")
@MultipartConfig
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




Still getting a 404 error sadly.










share|improve this question
















I have a project in Eclipse and trying to call a servlet from the web browser. The image shows the structure of my project. Although I set the url in the annotation I still can't get find the resource.



Here is my code:



package java.enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




project hierarchy



I have tried calling the servlet using the following:
http://localhost:8080/MultiKeywordSearch/hello
http://localhost:8080/MultiKeywordSearch/src/java/enablingKeyWordSearch/hello



... and so on. Yet, I get an HTTP Status 404 Error.



This is the content of my web.xml file:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>


I am using Apache Tomcat v8.0 if that makes a difference.



UPDATE: showing source listing in the new screenshot; removed java namespace
updated src listing



EDIT 2.0
web.xml:



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>MultiKeywordSearch</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/multiKeywordSearch</url-pattern>
</servlet-mapping>
</web-app>


The enablingKeyWordSearch.TestServlet.java file:



package enablingKeyWordSearch;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//@WebServlet(asyncSupported = false, name = "HelloServlet", urlPatterns = "/hello")
@WebServlet(name = "HelloServlet", urlPatterns = "/multiKeywordSearch")
@MultipartConfig
public class TestServlet extends HttpServlet

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.write("<h2>Hello Servlet One </h2>");
out.close();




Still getting a 404 error sadly.







java eclipse servlets java-ee






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 7:40







i_use_the_internet

















asked Mar 8 at 22:28









i_use_the_interneti_use_the_internet

1951218




1951218












  • What's the warning it's showing on the type name? Also, change your package names so that they do not use a reserved namespace like "java."

    – nitind
    Mar 9 at 0:28











  • It just says the serializable class does not declare a static final serialVersionUID field of type long. Fixing the namespace issue now

    – i_use_the_internet
    Mar 9 at 3:24












  • fixed namespace issue, did not fix the problem

    – i_use_the_internet
    Mar 9 at 3:41











  • Please update your source listing, and if you are using a web.xml file, include its contents.

    – nitind
    Mar 9 at 3:43











  • @nitind done, see above

    – i_use_the_internet
    Mar 9 at 7:06

















  • What's the warning it's showing on the type name? Also, change your package names so that they do not use a reserved namespace like "java."

    – nitind
    Mar 9 at 0:28











  • It just says the serializable class does not declare a static final serialVersionUID field of type long. Fixing the namespace issue now

    – i_use_the_internet
    Mar 9 at 3:24












  • fixed namespace issue, did not fix the problem

    – i_use_the_internet
    Mar 9 at 3:41











  • Please update your source listing, and if you are using a web.xml file, include its contents.

    – nitind
    Mar 9 at 3:43











  • @nitind done, see above

    – i_use_the_internet
    Mar 9 at 7:06
















What's the warning it's showing on the type name? Also, change your package names so that they do not use a reserved namespace like "java."

– nitind
Mar 9 at 0:28





What's the warning it's showing on the type name? Also, change your package names so that they do not use a reserved namespace like "java."

– nitind
Mar 9 at 0:28













It just says the serializable class does not declare a static final serialVersionUID field of type long. Fixing the namespace issue now

– i_use_the_internet
Mar 9 at 3:24






It just says the serializable class does not declare a static final serialVersionUID field of type long. Fixing the namespace issue now

– i_use_the_internet
Mar 9 at 3:24














fixed namespace issue, did not fix the problem

– i_use_the_internet
Mar 9 at 3:41





fixed namespace issue, did not fix the problem

– i_use_the_internet
Mar 9 at 3:41













Please update your source listing, and if you are using a web.xml file, include its contents.

– nitind
Mar 9 at 3:43





Please update your source listing, and if you are using a web.xml file, include its contents.

– nitind
Mar 9 at 3:43













@nitind done, see above

– i_use_the_internet
Mar 9 at 7:06





@nitind done, see above

– i_use_the_internet
Mar 9 at 7:06












2 Answers
2






active

oldest

votes


















1














@WebServlet("/multiKeywordSearch")

@MultipartConfig


and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch





share|improve this answer























  • that did not work...

    – i_use_the_internet
    Mar 9 at 7:19











  • delete your server and add it again. restart it

    – Onkar Musale
    Mar 9 at 7:20











  • just tried that, did not work :(

    – i_use_the_internet
    Mar 9 at 7:21











  • can you show the image of error message

    – Onkar Musale
    Mar 9 at 7:23






  • 1





    i think that problem is in your web.xml file. servlet mappings must be proper

    – Onkar Musale
    Mar 9 at 7:28


















0














Try updating your web.xml



 <servlet>
<servlet-name>helloServlet</servlet-name>
<servlet-class>java.enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>helloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>





share|improve this answer

























  • i applied these changes and still getting the same error. i updated the namespace of the src, removing java

    – i_use_the_internet
    Mar 9 at 7:41











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071882%2fhttp-status-404-servlet-not-found%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














@WebServlet("/multiKeywordSearch")

@MultipartConfig


and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch





share|improve this answer























  • that did not work...

    – i_use_the_internet
    Mar 9 at 7:19











  • delete your server and add it again. restart it

    – Onkar Musale
    Mar 9 at 7:20











  • just tried that, did not work :(

    – i_use_the_internet
    Mar 9 at 7:21











  • can you show the image of error message

    – Onkar Musale
    Mar 9 at 7:23






  • 1





    i think that problem is in your web.xml file. servlet mappings must be proper

    – Onkar Musale
    Mar 9 at 7:28















1














@WebServlet("/multiKeywordSearch")

@MultipartConfig


and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch





share|improve this answer























  • that did not work...

    – i_use_the_internet
    Mar 9 at 7:19











  • delete your server and add it again. restart it

    – Onkar Musale
    Mar 9 at 7:20











  • just tried that, did not work :(

    – i_use_the_internet
    Mar 9 at 7:21











  • can you show the image of error message

    – Onkar Musale
    Mar 9 at 7:23






  • 1





    i think that problem is in your web.xml file. servlet mappings must be proper

    – Onkar Musale
    Mar 9 at 7:28













1












1








1







@WebServlet("/multiKeywordSearch")

@MultipartConfig


and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch





share|improve this answer













@WebServlet("/multiKeywordSearch")

@MultipartConfig


and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 9 at 7:11









Onkar MusaleOnkar Musale

406111




406111












  • that did not work...

    – i_use_the_internet
    Mar 9 at 7:19











  • delete your server and add it again. restart it

    – Onkar Musale
    Mar 9 at 7:20











  • just tried that, did not work :(

    – i_use_the_internet
    Mar 9 at 7:21











  • can you show the image of error message

    – Onkar Musale
    Mar 9 at 7:23






  • 1





    i think that problem is in your web.xml file. servlet mappings must be proper

    – Onkar Musale
    Mar 9 at 7:28

















  • that did not work...

    – i_use_the_internet
    Mar 9 at 7:19











  • delete your server and add it again. restart it

    – Onkar Musale
    Mar 9 at 7:20











  • just tried that, did not work :(

    – i_use_the_internet
    Mar 9 at 7:21











  • can you show the image of error message

    – Onkar Musale
    Mar 9 at 7:23






  • 1





    i think that problem is in your web.xml file. servlet mappings must be proper

    – Onkar Musale
    Mar 9 at 7:28
















that did not work...

– i_use_the_internet
Mar 9 at 7:19





that did not work...

– i_use_the_internet
Mar 9 at 7:19













delete your server and add it again. restart it

– Onkar Musale
Mar 9 at 7:20





delete your server and add it again. restart it

– Onkar Musale
Mar 9 at 7:20













just tried that, did not work :(

– i_use_the_internet
Mar 9 at 7:21





just tried that, did not work :(

– i_use_the_internet
Mar 9 at 7:21













can you show the image of error message

– Onkar Musale
Mar 9 at 7:23





can you show the image of error message

– Onkar Musale
Mar 9 at 7:23




1




1





i think that problem is in your web.xml file. servlet mappings must be proper

– Onkar Musale
Mar 9 at 7:28





i think that problem is in your web.xml file. servlet mappings must be proper

– Onkar Musale
Mar 9 at 7:28













0














Try updating your web.xml



 <servlet>
<servlet-name>helloServlet</servlet-name>
<servlet-class>java.enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>helloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>





share|improve this answer

























  • i applied these changes and still getting the same error. i updated the namespace of the src, removing java

    – i_use_the_internet
    Mar 9 at 7:41















0














Try updating your web.xml



 <servlet>
<servlet-name>helloServlet</servlet-name>
<servlet-class>java.enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>helloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>





share|improve this answer

























  • i applied these changes and still getting the same error. i updated the namespace of the src, removing java

    – i_use_the_internet
    Mar 9 at 7:41













0












0








0







Try updating your web.xml



 <servlet>
<servlet-name>helloServlet</servlet-name>
<servlet-class>java.enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>helloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>





share|improve this answer















Try updating your web.xml



 <servlet>
<servlet-name>helloServlet</servlet-name>
<servlet-class>java.enablingKeyWordSearch.TestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>helloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 9 at 7:30

























answered Mar 9 at 7:25









AwadOdehAwadOdeh

13013




13013












  • i applied these changes and still getting the same error. i updated the namespace of the src, removing java

    – i_use_the_internet
    Mar 9 at 7:41

















  • i applied these changes and still getting the same error. i updated the namespace of the src, removing java

    – i_use_the_internet
    Mar 9 at 7:41
















i applied these changes and still getting the same error. i updated the namespace of the src, removing java

– i_use_the_internet
Mar 9 at 7:41





i applied these changes and still getting the same error. i updated the namespace of the src, removing java

– i_use_the_internet
Mar 9 at 7:41

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071882%2fhttp-status-404-servlet-not-found%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page