wood burning stoves 2.0*
The moose likes JSF and the fly likes JSF Facelets deployment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Facelets deployment problem" Watch "JSF Facelets deployment problem" New topic
Author

JSF Facelets deployment problem

mohammed moin
Greenhorn

Joined: Dec 01, 2007
Posts: 10
Hello guys,

I am unable to implement jsf facelets tags on my tomcat server.

I have these jar files in my WEB-INF/lib folder,

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

I have this web.xml file,

<web-app>

<!-- Use Documents Saved as *.xhtml -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

<!-- Special Debug Output for Development -->
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>

<!-- Optional JSF-RI Parameters to Help Debug -->
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>

<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

</web-app>

I have this faces-config.xml file,

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<faces-config>
<application>
<view-handler>
com.sun.facelets.FaceletViewHandler
</view-handler>
</application>
</faces-config>

Inspite of all this steps, i am unable to implement the jsf-facelets tags.

Is anything more needed to these facelets tags?

Thanks.
Mathias Berg
Greenhorn

Joined: Oct 03, 2007
Posts: 5
Please provide the error log. Also just to clear out. Are you accesing a .jsf url or .jsp. (Your faces servlet checks on all *jsf url access.)

<a href="index.jsf">link</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF Facelets deployment problem
 
Similar Threads
How to implement JSF Facelets Tags
[facelets] custom taglibrary not recognized
Facelets custom tag not recognized ?
JSF beginner error: Cannot find FacesContext
JSF + Tiles = no navigation-rules