jsf - p:dataExporter throws java.lang.NoClassDefFoundError: com/lowagie/text/phrase -
i tried use data exporter control of primefaces 3.2. following code: <p:commandlink value="export" ajax="false"> <p:dataexporter type="xls" target="dtable" filename="myfile" /> </p:commandlink> <p:datatable id="dtable" ........../> when click on export link, following error: java.lang.noclassdeffounderror: com/lowagie/text/phrase i downloaded itext jar 5.2.1 , included in application, still same error. how solve it? try itext 2.1.7 not 5.2.1. http://olex.openlogic.com/packages/itext/2.1.7 i think there licence conflicts. primefaces uses 2.1.7 for excel export need apache poi. try 3.7: http://archive.apache.org/dist/poi/release/bin/ edit (you need poi-3.7*.jar , poi-ooxml-3.7*.jar )