NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

HTTP Status 404 - Not Found Error when clicked on search button

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
sohail.anwar



Joined: 04 Jan 2017
Posts: 1

PostPosted: Wed Jan 04, 2017 11:54 am    Post subject: HTTP Status 404 - Not Found Error when clicked on search button Reply with quote

Hi All

I have made an EE application with simple data entry form. I am absolutely new to java EE. When I click on search I get an error. HTTP Status 404 - Not Found

Here is contents of web.xml file

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<servlet>
<servlet-name>StudentServlet</servlet-name>
<servlet-class>com.sohail.controller.StudentServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>StudentServlet</servlet-name>
<url-pattern>/StudentServlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>

All other files have also been attached.



StudentServlet.txt
 Description:

Download
 Filename:  StudentServlet.txt
 Filesize:  2.42 KB
 Downloaded:  136 Time(s)


studentinfo.jsp.txt
 Description:

Download
 Filename:  studentinfo.jsp.txt
 Filesize:  1.81 KB
 Downloaded:  164 Time(s)


Student.java.txt
 Description:

Download
 Filename:  Student.java.txt
 Filesize:  1.62 KB
 Downloaded:  119 Time(s)

Back to top
priya465



Joined: 17 Aug 2017
Posts: 29

PostPosted: Wed Oct 04, 2017 6:48 am    Post subject: Reply with quote

In the Project Explorer right click on test (which is the name of your project, if I got it right)
In the context menu choose Export->WAR file
In the dialog window that pops up click the Browse... button to choose the destination folder for the deployment. This should be the web application folder(webs) of your Tomcat installation: /webapps where is the folder you have installed Tomcat in.
Click Finish
Now start your Tomcat.Assuming you have the index.html file in the WebContent folder of the test project in Eclipse, you should see the content of index.html in your browser when you open the URL. http://localhost:8080/projectApplication
Back to top
crazyjoker96



Joined: 16 Oct 2017
Posts: 1
Location: Potenza

PostPosted: Mon Oct 16, 2017 1:37 pm    Post subject: Reply with quote

I think I'd better turn to specialists, I can advise a good company that develops software http://corevalue.net/solutions/salesforce-services
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo