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'
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();
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
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
add a comment |
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();
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
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
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
add a comment |
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();
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
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
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();
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
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
java eclipse servlets java-ee
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
@WebServlet("/multiKeywordSearch")
@MultipartConfig
and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch
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
|
show 7 more comments
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>
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
@WebServlet("/multiKeywordSearch")
@MultipartConfig
and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch
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
|
show 7 more comments
@WebServlet("/multiKeywordSearch")
@MultipartConfig
and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch
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
|
show 7 more comments
@WebServlet("/multiKeywordSearch")
@MultipartConfig
and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch
@WebServlet("/multiKeywordSearch")
@MultipartConfig
and then try this.
http://localhost:8080/MultiKeyewordSearch/multiKeywordSearch
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
|
show 7 more comments
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
|
show 7 more comments
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>
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
add a comment |
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>
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
add a comment |
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>
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>
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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