maven - Warning: This page calls for XML namespace http://primefaces.org/ui declared with prefix p but no taglibrary exists for that namespace -
allways when deploy jsf project on gl-server (4.1), message: warning: page calls xml namespace http://primefaces.org/ui declared prefix p no taglibrary exists namespace
http://s29.postimg.org/km7nd8b47/primefaces.png
i tried everrything: create new project, delete gl-server, reinstall maven, clean project eclipse , on.
i belive there must configuration error in project. @ beginning worked fine, error occured. solve while creating of new project, error came again (is because selectet jpa in project facets or else?)
here pom.xml
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.saphirwerk</groupid> <artifactid>configurator</artifactid> <version>0.0.1-snapshot</version> <name>configurator</name> <packaging>war</packaging> <dependencies> <dependency> <groupid>javax</groupid> <artifactid>javaee-api</artifactid> <version>7.0</version> <scope>provided</scope> </dependency> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-entitymanager</artifactid> <version>4.3.6.final</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-core</artifactid> <version>4.3.6.final</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-annotations</artifactid> <version>3.5.6-final</version> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-log4j12</artifactid> <version>1.5.6</version> </dependency> <dependency> <groupid>org.hsqldb</groupid> <artifactid>hsqldb</artifactid> <version>2.3.2</version> </dependency> </dependencies> <build> <finalname>configurator</finalname> </build> </project>
my startpage:
<ui:composition template="/template.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <ui:define name="header"> <h1>#{texts.titleindex}</h1> </ui:define> <ui:define name="content"> <h:panelgrid styleclass="selectionhome" columns="2"> <h:panelgrid styleclass="selectionhome" columns="2"> <p:link outcome="searchstd"> <p:graphicimage name="images/feeler/taster-sketch-1_ohne.png" width="400" height="180" title="#{texts.buttonstd}" /> </p:link> <p:link outcome="searchstd2"> <p:graphicimage name="images/feeler/taster-sketch-2_ohne.png" width="400" height="180" /> </p:link> <p:outputlabel value="#{texts.buttonstd}" /> <p:outputlabel value="#{texts.buttonstd2}" /> <p:link outcome="searchpin"> <p:graphicimage name="images/feeler/taster-sketch-4_ohne.png" width="400" height="180" /> </p:link> <p:link outcome="searchpin2"> <p:graphicimage name="images/feeler/taster-sketch-5_ohne.png" width="400" height="180" /> </p:link> <p:outputlabel value="#{texts.buttonpin}" /> <p:outputlabel value="#{texts.buttonpin2}" /> <p:link outcome="searchzylinder"> <p:graphicimage name="images/feeler/taster-sketch-6_ohne.png" width="400" height="180" /> </p:link> <p:link outcome="searchplate"> <p:graphicimage name="images/feeler/taster-sketch-7_ohne.png" width="400" height="180" /> </p:link> <p:outputlabel value="#{texts.buttonpin}" /> <p:outputlabel value="#{texts.buttonplate}" /> <p:link outcome="searchhollow"> <p:graphicimage name="images/feeler/taster-sketch-8_ohne.png" width="400" height="180" /> </p:link> <p:link outcome="searchstar"> <p:graphicimage name="images/feeler/taster-sketch-9_ohne.png" width="400" height="180" title="#{texts.buttonstar}" /> </p:link> <p:outputlabel value="#{texts.buttonhollow}" /> <p:outputlabel value="#{texts.buttonstar}" /> </h:panelgrid> </h:panelgrid> </ui:define> </ui:composition>
the themplate
<?xml version='1.0' encoding='utf-8' ?> <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"> <h:head> <title>saphirwerk ag</title> <h:outputstylesheet name="/style.css" /> </h:head> <h:body> <div id="container"> <div id="center"> <ui:insert name="center"> <div id="header"> <ui:insert name="header"></ui:insert> </div> <div id="menu"> <ui:insert name="menu"> <ui:include src="/menu.xhtml" /> </ui:insert> </div> <div id="content"> <ui:insert name="content"/> </div> </ui:insert> </div> <div id="left"> <ui:insert name="left"/> </div> <div id="right"> <ui:insert name="right"/> </div> </div> </h:body> </html>
and @ least web.xml
<?xml version="1.0" encoding="utf-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name>konfigurator saphirwerk ag</display-name> <servlet> <servlet-name>facesservlet</servlet-name> <servlet-class>javax.faces.webapp.facesservlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>facesservlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.xhtml</welcome-file> </welcome-file-list> <context-param> <param-name>javax.faces.project_stage</param-name> <param-value>development</param-value> </context-param> <context-param> <param-name>javax.faces.interpret_empty_string_submitted_values_as_null</param-name> <param-value>true</param-value> </context-param> </web-app>
thank answers. please tell me, if need more informations.
looks dependency primefaces missing. add following in pom.xml
:
<dependency> <groupid>org.primefaces</groupid> <artifactid>primefaces</artifactid> <version>5.2</version> </dependency>
Comments
Post a Comment