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

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme