• Post Reply Bookmark Topic Watch Topic
  • New Topic

Facelets Error  RSS feed

 
Edgar Castanedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am spinning my wheels trying to figure out why my facelets applications has stopped working. Has anyone ever seen this before? I cannot really say what, if anything has changed, but I have gone over my configuration and everything seems to be in order....

Please help if you have seen this... Here is the exception (during Tomcat startup):



Thanks in Advance!
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you missing the facelets config from the faces-config.xml?

If not try creating a new basic facelet app and compare the difference to your current app - maybe you facelet libraries are incomplete/corrupt
 
Edgar Castanedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to create a clean web application, and did not get any errors this time. So now I am stumped!

I am using JSF, Spring, and Hibernate in this web application. Plus, I have Spring/JSF bean integration setup. As of right now, this is a bare-bones application, so the problem will probably be a setup problem.

These are the jars I have in WEB-INF/lib. Can you tell me if you see anything that should not be there?

antlr-2.7.6.jar
commons-beanutils.jar
commons-logging.jar
hibernate3.jar
jsf-impl.jar
portlet.jar
asm.jar
commons-codec-1.3.jar
dom4j-1.6.1.jar
jboss-serialization.jar
jsp-api.jar
spring.jar
cglib-2.1.3.jar
commons-collections.jar
el-api.jar
jsf-api.jar
jta.jar
standard.jar
common-annotations.jar
commons-digester.jar
el-ri.jar
jsf-facelets.jar
myfaces-all.jar

Thanks!
 
Edgar Castanedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been able to narrow down the problem a little bit.... I commented out the servlet configuration in web.xml for javax.faces.webapp.FacesServlet. When I commented it out, the errors went away... So it is during the creation of the servlet in which things go wrong....

If I leave it in there and remove virtually everything from faces-config.xml, the problem is still there. So it seems like there is something going on with libraries or the classpath....
[ January 16, 2007: Message edited by: Edgar Castanedo ]
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try just creating a standard JSF application using your container's JSF libraries (so you don't need to package any in your app), which server are you using - JBoss 4.05?
 
Edgar Castanedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I will try that. I am using Tomcat 5.5...

I'll report back here....
 
Edgar Castanedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I started from scratch, I didn't see any errors.

I guess I could try adding pieces bit by bit and see what happens then.

Thanks for the help....
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Edgar Castanedo:

I guess I could try adding pieces bit by bit and see what happens then.


Been there, did that, many times.

It also helps to have someone else help you look over things. Even if they don't know as much about the topic as you, the mere act of explaining it often brings the error to light.
 
Edgar Castanedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is very true. I think I might start completely from scratch as I am baffled at this point. When I created a new project with the bare essentials, I got a bunch of other errors. Ughhh...

I am trying to determine now exactly which jars I need to get facelets to work properly. It comes with many jars, but I suspect I don't need them all. For example, it comes with jsp-api.jar. I suspect I don't need that as that jar comes with Tomcat. I still have a sneaking suspicion that this is a jar issue as I have already:

* Used a clean copy of Eclipse.
* Recreated the project using jars from the facelets distribution.
* Recreated the project using my existing project.
* Dropping the web app directly into Tomcat (as opposed to running from withing Eclipse).
* Removing everything not facelets related (like Spring, Hibernate, log4j).

I really don't want to give up on facelets as I am really starting to like it. The most frustrating part about this is that it was working at one point, and now it isn't!
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For JEE 1.4 apps in JBoss 4.x I use the following JARs for Facelets 1.1.11:

jsf-facelets.jar
el-api.jar
el-ri.jar

Also I've got commons-codec-1.3.jar in there for some reason - don't think its needed though. I think JBoss uses a Tomcat 5.5 container and I'm using the standard myfaces libraries that come with JBoss.

For JEE5 apps in SJAS 9.01 I just use jsf-facelets.jar.

If you Tomcat 5.5 doesn't come with a JSF implementation grab the latest one from myfaces.apache.org as I think the JSF jars in the facelets dist are broken.
 
Edgar Castanedo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, I haven't been able to get it working yet. I even updated the myfaces jars.... I think I am going to table facelets. I am sure it is working for some people, but I just can't seem to get it to work

I'll probably go back to using Spring MVC until I can stand to try again!

Thanks for all of your help....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!