Weired Problem with JSF TLD on Tomcat

I am working on a JSF / Rich faces application using netbeans and Tomcat 7 / Glassfish. When i run application of Glassfish, it works fine, but on Tomcat 7 , it throws exception saying
PWC6188: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application] with root cause
org.apache.jasper.JasperException: /Login.jsp(7,57) PWC6188: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application.

I am very surprised to see this, as i have added standard.jar and jstl.jar sincerely , and more than that it works perfect on Glassfsh.

By the way i am working parallel on Netbeans 6.9.1 and netbeans 7 beta .

In Glassfish, JSF is an integral part of the GlassFish Server (assuming you're running recent GlassFish).

In Tomcat, JSF is not an integral part of the Tomcat server - unless they added it in Tomcat 7 (and I don't think so). That means that to run a JSF WAR in Tomcat, you need to add the JSF-api and JSF-impl jars to the WAR when you want it to deploy to Tomcat.

An IDE is no substitute for an Intelligent Developer.

Dev Sushant
Greenhorn

Joined: Feb 11, 2011
Posts: 8

posted Mar 30, 2011 12:39:07

0

I have included both jsf-api and jsf-impl jars from the very beginning, but still no use.