can not find the tag library descriptor for ... primefaces 3

UI Components for JSF
Post Reply
nawazish
Posts: 1
Joined: 14 Apr 2011, 03:10

19 Apr 2011, 03:49

Dear

I am new to primefaces community, I am trying basic tutorial of prime faces but I am unable to succeed as I am getting error "can not find the tag library descriptor for "http://primefaces.prime.com.tr/ui". I am getting this error for both 2.2.1 and 3.0. But version 2.1 is working fine. I have found that there is no .tld file in the jars of these two version. Is anyone else having same problem?

I am using MyEclipse 9.0 and Eclipse tomcat for running the project.

My jsp file is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p"%>

<html>
<head>

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>

<body>
This is my JSF page.

<f:view>
<h:form>
<p:accordionPanel>
<p:tab title="First">
<h:outputText value="This is first tab">
</h:outputText>
</p:tab>
<p:tab title="Second">
<h:outputText value="This is Second tab">
</h:outputText>
</p:tab>
<p:tab title="Third">
<h:outputText value="This is third tab">
</h:outputText>
</p:tab>
</p:accordionPanel>
<p:commandButton value="aaaaaaa">
</p:commandButton>
<p:calendar></p:calendar>
</h:form>
</f:view>
</body>
</html>

web.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name></display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/primefaces_resource/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>com.sun.faces.allowTextChildren</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>aristo</param-value>
</context-param>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

</web-app>

faces-config is:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<faces-config>

</faces-config>

robert.m
Posts: 226
Joined: 07 Dec 2010, 22:52
Location: Salzburg/Austria

19 Apr 2011, 12:26

It seems that you don't have the PrimeFaces jar in your build path.

badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

03 Apr 2012, 14:01

robert.m wrote:It seems that you don't have the PrimeFaces jar in your build path.


Here i do have got PrimeFaces.jar but i am still unable to clear my Error..
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

User avatar
T.dot
Expert Member
Posts: 620
Joined: 01 Feb 2012, 15:39
Location: Vienna/Austria

03 Apr 2012, 14:14


badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

03 Apr 2012, 14:27


So i need to use both of them..? or only i have downloaded recent 3.2 version bundles need to go for PF# only..

My Question is i have included the JAR file in my libs in Web-INF. and when i create jsp page and included the PF3: as

"<%@ taglib prefix="p" uri= "http://primefaces.org/ui" %> " i am getting an "cross mark" saying this is not there..even if have added Primefaces-3.2.jar & also Primefaces 3.2-sources.jar files ..


PLEASE CLARIFY MY DOUBT if i have done anything wrong i am sorry please clear me !
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 Apr 2012, 14:51

You can't use jsp with PrimeFaces, facelets only, better start with user's guide.

badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

04 Apr 2012, 07:43

heisenberg wrote:You can't use jsp with PrimeFaces, facelets only, better start with user's guide.
Thanks Heisenberg...your always Helpful...
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests