-
15. Re: Why Is .XHTML file trying to call .JSP file in Rich Faces Project?
nbelaevski Mar 12, 2010 5:38 PM (in response to jabailo)Hi John,
You have to additionally declare Facelet view handler either in web.xml or faces-config.xml (the following code is for faces-config.xml, refer to documentation for configuring view handlers in web.xml and conditions when it's required):
<application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application>
-
16. Re: Why Is .XHTML file trying to call .JSP file in Rich Faces Project?
jabailo Mar 12, 2010 5:52 PM (in response to nbelaevski)I added it, but it seems to break my build.
17:47:22,900 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 17s:414ms
17:47:27,689 INFO [TomcatDeployer] deploy, ctxPath=/richfaces-start, warUrl=file:/C:/Documents and Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/richfaces-start.war/
17:47:28,384 ERROR [[/richfaces-start]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
Source Document: jndi:/localhost/richfaces-start/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.sun.facelets.FaceletViewHandler'
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)Here is my faces-config.xml
-
17. Re: Why Is .XHTML file trying to call .JSP file in Rich Faces Project?
sergeysmirnov Mar 12, 2010 6:30 PM (in response to jabailo)so, you miss the facelet jar in your classpath. -
18. Re: Why Is .XHTML file trying to call .JSP file in Rich Faces Project?
harut Mar 15, 2010 2:55 AM (in response to jabailo)also see this article: http://community.jboss.org/message/530710#530710
I've provided there web.xml which contains -- Spring, jsf, richfaces, facelet, restfaces, Acegi... etc...
-
19. Re: Why Is .XHTML file trying to call .JSP file in Rich Faces Project?
jabailo Mar 23, 2010 3:56 PM (in response to harut)I finally got this working by starting a new project and using the Eclipse/JBoss Tools
This time I selected the JBoss MyFaces 1.1.4 style.
I also checked that it supply me with sample pages which showed a working jsp calling a bean.
At this point I was able to also run my xhtml page, however it still showed new data.
When I viewed the sample pages, I noticed they were referencing a different library for outputText than I was, so I followed their example, changed my code to use their reference for the t: prefix and suddenly it worked and even let the debugger switch over to the bean when it was called.
Thus I end up using:
xmlns:t="http://myfaces.apache.org/tomahawk"
And
<t:outputText ... >
And it displays the data.
I guess I can continue in this way with building my application. I am just not really sure what is canonical, what is current and what is legacy when using RichFaces, JSF, MyFaces, Facelets and so on or if its catch as catch can.
My environment is using Eclipse IDE plus JBoss 4.2 community edition.
-
20. Re: Why Is .XHTML file trying to call .JSP file in Rich Faces Project?
nbelaevski Mar 23, 2010 4:12 PM (in response to jabailo)1.2 implementation of JSF is highly recommended, not 1.1 (or are you referring to Tomahawk 1.1.4 version?).
JSP is not recommended (RF 4.0 deprecates JSP support, JSF 2.0 has limited JSP support), so Facelets are much better.