Win a copy of Java Challengers this week in the Java in General forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

HTTP Status 404 – Not Found

 
Ranch Hand
Posts: 303
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm trying to use RichFaces in my web project but I have gain some errors. I know what is the 404 error but I can't find where are the error.
I'm using RichFaces 4.5, JSF 2.2.
Below are configurations.
web.xml:

faces-config.xml:

Error:

Tomcat log:

Thanks in advance.
Image.jpg
My lybraries:
My lybraries:
 
Saloon Keeper
Posts: 23543
161
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Filter mapping is obsolete. Get rid of the filter and filter-mapping elements in your web.xml

2. Request Scope is almost 100% useless in JSF and will generally cause things to not work properly. Try View scope, instead.

Fixing item #1 may or may not fix all those errors in the stack trace, but at least they will be one less item to cause problems.
 
Cezar Apulchro
Ranch Hand
Posts: 303
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now is a new error.
New web.xml:


Log after update web.xmk:
 
Tim Holloway
Saloon Keeper
Posts: 23543
161
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It says "ClassNotFound" for org.apache.commons.logging.LogFactory.

Try adding this to the POM dependencies:
 
Cezar Apulchro
Ranch Hand
Posts: 303
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both problem is solved first in Netbeans and Second in Eclipse.
Last web.xml configuration:

Last pom.xml configuration:

Thans and best regards.
 
Tim Holloway
Saloon Keeper
Posts: 23543
161
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations!

One thing, though. Your POM is including a MySQL database driver. I recommend that you take some time to learn about database Connection Pools.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic