Primefaces unable to create resources for jqueryPrimefaces unable to create resources for jqueryhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1186280162024-03-29T13:35:53Z2024-03-29T13:35:53ZRE: Primefaces unable to create resources for jqueryNeil Griffinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1188062592020-03-24T22:38:30Z2020-03-24T22:38:30ZHi José,<br />Apologies for the delay in my reply. Thank you for posting your solution. I am very glad to know that it is working for you, but it is a workaround that you should not have to be doing.<br />Are you certain that you exactly/precisely followed my instructions regarding deploying a PrimeFaces portlet to Liferay DXP 7.1 using mvn archetype:generate? Also, did you try it with a clean install of DXP 7.1? Again, I was not able to reproduce the problem.<br />Kind Regards,NeilNeil Griffin2020-03-24T22:38:30ZRE: Primefaces unable to create resources for jqueryjose fernandezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1187632002020-03-18T13:56:13Z2020-03-18T13:56:13ZTo solve the issue we have implemented a class:public class VppCustomJsfResourceHandler extends javax.faces.application.ResourceHandlerWrapper {<br />.... @Override<br /> public Resource createResource(final String resourceName, final String libraryName) {<br /> final Resource resource = super.createResource(resourceName, libraryName);<br /> if ("primefaces".equals(libraryName) && "jquery/jquery.js".equals(resourceName)) {<br /> Resource localResource = new ResourceWrapper() {<br /> @Override<br /> public String getRequestPath() {<br /> return "/o/theme/libs/jquery/jquery.js";<br /> }<br />...}Extract the jquery.js library from the PF jar file and place it on the theme so this can be returned when required by jsf.<br />Cheers.Joséjose fernandez2020-03-18T13:56:13ZRE: Primefaces unable to create resources for jqueryjose fernandezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1187240932020-03-12T10:20:41Z2020-03-12T10:20:41Z<html><head></head><body>Hi Neil,Yes that is what we have done, but it the error remains on the logs.Any idea what could be causing this issue?<br>On the source of the page we have this:<pre><code><script data-senna-track="permanent" type="text/javascript" src="[url=http://vpp-sn.slcloud.ch:8080/o/VPPportlet/RES_NOT_FOUND&amp;v=6.2]/o/VPPportlet/RES_NOT_FOUND&amp;v=6.2[/url]" id="primefaces:jquery/jquery.js">
</code></pre>Thanks for your answer.José</script></code></pre></body></html>jose fernandez2020-03-12T10:20:41ZRE: Primefaces unable to create resources for jqueryNeil Griffinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1186384712020-03-02T18:55:07Z2020-03-02T18:55:07Z<html><head></head><body>Hi Jose,<br>I just did the following, in order to deploy a PrimeFaces portlet to Liferay DXP 7.1:<br><pre><code>mvn archetype:generate \
&nbsp; -DarchetypeGroupId=com.liferay.faces.archetype \
&nbsp; -DarchetypeArtifactId=com.liferay.faces.archetype.primefaces.portlet \
&nbsp; -DarchetypeVersion=5.0.7 \
&nbsp; -DgroupId=com.mycompany \
&nbsp; -DartifactId=com.mycompany.my.primefaces.portlet</code></pre><br><pre><code>mvn archetype:generate</code></pre><br><pre><code>mvn clean package</code></pre><br><pre><code>cp target/*.war&nbsp;to $LIFERAY_HOME/deploy</code></pre>And then I added the portlet to a portal page and reloaded the page.<br>The portlet rendered fine. I am unable to reproduce your error.Therefore I would recommend that you try deploying the archetype to a clean install of Liferay DXP 7.1 and see if you encounter the same error.<br>Kind Regards,<br>Neil</body></html>Neil Griffin2020-03-02T18:55:07ZRE: Primefaces unable to create resources for jqueryjose fernandezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1186357832020-03-02T15:01:49Z2020-03-02T15:01:49ZHi Neil,Thanks for your reply.I did follow your instructions, the error is the same:15:59:30,774 ERROR [MissingResourceImpl:94] Resource handler=[com.sun.faces.application.resource.ResourceHandlerImpl@a951d48] was unable to create a resource for resourceName=[jquery/jquery.js] libraryName=[primefaces] contentType=[null]<br />15:59:30,828 ERROR [MissingResourceImpl:94] Resource handler=[com.sun.faces.application.resource.ResourceHandlerImpl@a951d48] was unable to create a resource for resourceName=[jquery/jquery-plugins.js] libraryName=[primefaces] contentType=[null]<br /><br />Josejose fernandez2020-03-02T15:01:49ZRE: Primefaces unable to create resources for jqueryNeil Griffinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1186289832020-03-02T14:31:35Z2020-03-02T14:31:35Z<html><head></head><body>If you create a new portlet project with the PrimeFaces archetype, build it, and copy the resulting WAR to $LIFERAY_HOME/deploy, then do you see the same error in the logs?<br><br><pre><code>mvn archetype:generate \
-DarchetypeGroupId=com.liferay.faces.archetype \
-DarchetypeArtifactId=com.liferay.faces.archetype.primefaces.portlet \
-DarchetypeVersion=5.0.7 \
-DgroupId=com.mycompany \
-DartifactId=com.mycompany.my.primefaces.portlet
</code></pre></body></html>Neil Griffin2020-03-02T14:31:35ZPrimefaces unable to create resources for jqueryjose fernandezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1186280152020-03-02T10:10:09Z2020-03-02T10:10:09ZHello,<br />We have a portlet on Liferay DXP 7.1, JSF 2.2 and Primefaces 6.2.There is message on the logs concerning the Jquery resources form Primefaces. The Primefaces library is as provided no modifications have done on it.11:02:00,106 ERROR [MissingResourceImpl:94] Resource handler=[com.sun.faces.application.resource.ResourceHandlerImpl@7b8db7f8] was unable to create a resource for resourceName=[jquery&#047;jquery.js] libraryNa