[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] JSF and Eclipse aren't the best of mates

I have created a Dynamic Web Project with JSF and have three files:

start.jsp (which forwards to)
login.jsp (which conducts a log-in using a form, and forwards to)
welcome.jsp

and I've got a bean in there too.

Since Eclipse won't bundle the Jakarta JARs for me, put them into my project, etc., I created a library named JSF via right-clicking on my project, choosing Preferences, then Java Build Path->Libraries. There I've got

jsf-api.jar
jsf-impl.jar
jstl.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar

Running by right-clicking on start.jsp and choosing Run As... I get and HTTP status 500:

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application

So, I copy all these JARs onto the path <workspace><project-name>/WebContent/WEB-INF/lib and run again--same result.

Could someone explain why Eclipse doesn't help me put together a JSF project (when NetBeans makes it PERFECTLY transparent and a no-brainer) and, therefore, how a JSF project is built in Eclipse.

I have read and attempted a couple of on-line tutorials on JSF and Eclipse. They don't work and break down part-way through the exercise.

Russ Bateman