• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HTTP Status 404 -/Pracownik/

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I working on that project for 2 days and i can't finde why it's doesn't work.

It is a typical CRUD web application using SPRING,HIBERNATE,MAVEN and Tomcat
**web.xml**


**root-context.xml**



**serlvet-context.xml**


**pom.xml**



**pracownikForm.jsp**



**listaPracownikow.jsp**


**PracownikController.java**


**Run server Tomcat log:**



My project folder:
http://imgur.com/eaTawXp

Error
http://imgur.com/e9mikgi


 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

That's a lot of code and stuff that I doubt anyone will go through.

What exactly are you doing, what happens as a result, and how is that different from what you were expecting? Please post that here in this discussion, instead of elsewhere.

Note that URLs are case-sensitive.
 
Krzysztof Serkowski
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I try to write CRUD application using SPRING,HIBERNATE,MAVEN. My problem is i don't have anny errors when I compile my project just HTTP Status 404. I don't know what to do and why it is not working.
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What exactly are you doing, what happens as a result, and how is that different from what you were expecting? Please post that here in this discussion, instead of elsewhere.



Note that URLs are case-sensitive.

 
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. line 72 thru 78 show all the requestURL that your MVC web app can handle (see method names)

2. valid request URL syntax for your web app
http://localhost:port/webappname/requestURL

with webappname=Pracownik
and requestURL=/pracownik/

for example a good URL (try this)
http://localhost:8080/Pracownik/pracownik/

based upon below log



3. Read the doc on Spring MVC version 4.x for example OR the version you're using

16.3 Implementing Controllers
Mapping Requests With @RequestMapping
Defining @RequestMapping handler methods


(This thread has the same issue. You can read it
https://coderanch.com/t/636843/Spring/Page-Loading-POST-action)
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic