File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Vogella tutorial question for a very lost newbie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Vogella tutorial question for a very lost newbie" Watch "Vogella tutorial question for a very lost newbie" New topic
Author

Vogella tutorial question for a very lost newbie

James Lipinski
Greenhorn

Joined: Sep 14, 2012
Posts: 4
What is the best route for me to learn how to use MyFaces and RichFaces, which is where my focus is going to be?

I've been using this tutorial on vogella:
http://www.vogella.com/articles/JavaServerFaces/article.html#installation_eclipse

But as soon as I got to step 5.8 - actually running it - it threw a bunch of errors.


'de.vogella.jsf.starter.validator.LoginValidator' validator id is is not registered. LoginView.jsp /de.vogella.jsf.starter/WebContent line 19 JSF Problem

Resource bundle de.vogella.jsf.starter.messages cannot be found on classpath LoginView.jsp /de.vogella.jsf.starter/WebContent line 13 JSF Problem

cvc-complex-type.2.4.a: Invalid content was found starting with element 'validator-class'. One of '{"http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":validator-id}' is expected. faces-config.xml /de.vogella.jsf.starter/WebContent/WEB-INF line 36 XML Problem

Resource bundle de.vogella.jsf.starter.messages cannot be found on classpath Trainer.jsp /de.vogella.jsf.starter/WebContent line 13 JSF Problem


...... Of course, according to the tutorial, this should work.

This environment, being orders of magnitude more complex than what I usually work on, is a bit intimidating. Even the tutorials rarely function as they claim to.

I'm not sure where to even start on figuring out what went wrong. Maybe someone gracious out there could offer either some general advice, or specific suggestions toward this tutorial.

Or maybe I'm barking up several wrong trees?

Be gentle... I'm in over my head. :)
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218

The tutorial is JSF 1.2 based and JSF 2 has been out for nearly 3 years now, so really I'd suggest starting with the
newer version. I'd say most of the JSF content to be found on the web would be JSF 2 based now. The Java EE 6
tutorial is pretty good: http://docs.oracle.com/javaee/6/tutorial/doc/
James Lipinski
Greenhorn

Joined: Sep 14, 2012
Posts: 4
That would explain a lot. Thanks for the nudge in the right direction
James Lipinski
Greenhorn

Joined: Sep 14, 2012
Posts: 4
Another question, though:

"This tutorial is a guide to developing enterprise applications for the Java Platform, Enterprise Edition 6 (Java EE 6) using GlassFish Server Open Source Edition."

I'm using WebLogic 11g - would that matter?

I want to make sure I don't walk the wrong path
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218

Fair point, the web tier section should be ok for you. Glassfish is the EE 6 reference implementation so it's got everything
in it, JAX-RS, JAX-WS etc... and I can't comment on what specs are supported by WebLogic.
James Lipinski
Greenhorn

Joined: Sep 14, 2012
Posts: 4
Thank you. The information at the link you provided has so far been valid I actually need to learn MyFaces and RichFaces, but I am trying to build a foundation up to that point. Perhaps I should just plunge straight in. It seems Eclipse handles a lot of the minutiae automatically, which is nice. (I've never done RAD before.)
 
Consider Paul's rocket mass heater.
 
subject: Vogella tutorial question for a very lost newbie