Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems getting JSF Facelets project working with Tomcat

843844Jul 3 2010 — edited Jul 4 2010
Hi,

I tired to set up a facelets project on my PC because we use JSF / facelets in the company I work for and I'd like to try several things on my own. Sadly, even after many hours of frustrating configuration, I didn't get it to work.

That's my configuration: I use Eclipse Java EE IDE for Web Developers V. 3.5.0 with Eclipse Web Tools Platform on Win XP. I have Tomcat 6.0 installed.
I did exactly what is written in the following tutorial: http://download.oracle.com/docs/cd/E15315_05/help/org.eclipse.jst.jsf.facelet.doc.user/html/gettingstarted/tutorial/JSF%20Facelets%20Tools%20Tutorial.html. I even used the libs listed in the tutorial.

But everytime I run my web application, I got several Tomcat error messages on the console such as "NoClassDefFoundError" and "NoSuchMethodError".
I suppose there's are problem with the jar files used by the project. Unless I'm mistaken there are 3 sources of potencial jar file errors: The jar fiels in the Tomcat lib-Directory (...\Apache Software Foundation\Tomcat 6.0\lib), the Eclipse Project Build Path (Eclipse Project Properties > Java Build Path > Libraries) and the JARs listed in the web\WEB-INF\lib. I have to admit that I don't actually understand that "lib organization system" of Java/Eclipse and that it just seems confusing to me.

So I tried to add several jars to the tomcat lib directory, to delte others and to replace some of them by other versions I found on the web. Nothing helped, just the error messages changed from time to time.

I'd like to hear from someone who actually managed it to get a facelets project to work with Eclipse, and then my question would be: What JARs did you put in which directory? What configuration did you use?
Any help would be greatly appreciated as it is very frustrating to just not getting a simple default project to work.

Thank you in advance
Nic
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2010
Added on Jul 3 2010
2 comments
2,198 views