Alaph432 Alaph432 - 1 year ago 109
Java Question

netbeans no library found for this namespace

I've searched around but cannot fine a definitive solution. I'm using netbeans+Maven and am trying to upgrade from Primefaces 2.2.1 to 3.0.M3 - when I change the index.xhtml taglib to xmlns:p="" netbeans throws the 'no library found for this namespace' error.

The index.xhtml file is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns=""
xmlns:p="" >
<f:view contentType="text/html">
<h:commandButton value="Run Test" action="selecttype" />
<h:commandButton value="Manage Methods" action="addmethod" />
<h:commandButton value="Manage Data" action="managedata" />
<p:tagCloud model="#{tagCloudBean.model}" />

So the new taglib and p:tagCloud line are what netbeans says are not working - when I run the program I see the 3 buttons above the message "Warning: This page calls for XML namespace declared with prefix p but no taglibrary exists for that namespace.".

For Maven I've updated these parts of the pom.xml:


<name> m2 repo</name>

<name>PrimeFaces Maven Repository</name>

and commented out the old prime-repo repository info.

I have got primefaces-3.0.M3.jar as a local dependency - this seems to be ok as all java class files using the library are referencing it ok. The primefaces-3.0.M3.jar binary is also in my WEB-INF/lin folder. I've seen a lot of people having weird issues with netbeans and am not sure if I'm simply missing something or if its the IDE. Any ideas would be greatly appreciated.

Answer Source

The xmlns is wrong for the Primefaces component. Try changing the url to as per the Primefaces Getting Started guide.

UPDATE 08-08-2013:

As of this moment the correct namespace as listed in the following link is:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download