<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Primefaces unable to create resources for jquery</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118628016" />
  <subtitle>Primefaces unable to create resources for jquery</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118628016</id>
  <updated>2026-04-07T11:03:49Z</updated>
  <dc:date>2026-04-07T11:03:49Z</dc:date>
  <entry>
    <title>RE: Primefaces unable to create resources for jquery</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118806259" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118806259</id>
    <updated>2020-03-24T22:38:30Z</updated>
    <published>2020-03-24T22:38:30Z</published>
    <summary type="html">Hi José,&lt;br /&gt;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.&lt;br /&gt;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.&lt;br /&gt;Kind Regards,Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2020-03-24T22:38:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: Primefaces unable to create resources for jquery</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118763200" />
    <author>
      <name>jose fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118763200</id>
    <updated>2020-03-18T13:56:13Z</updated>
    <published>2020-03-18T13:56:13Z</published>
    <summary type="html">To solve the issue we have implemented a class:public class VppCustomJsfResourceHandler extends javax.faces.application.ResourceHandlerWrapper {&lt;br /&gt;.... @Override&lt;br /&gt;    public Resource createResource(final String resourceName, final String libraryName) {&lt;br /&gt;        final Resource resource = super.createResource(resourceName, libraryName);&lt;br /&gt;        if (&amp;#34;primefaces&amp;#34;.equals(libraryName) &amp;amp;&amp;amp; &amp;#34;jquery/jquery.js&amp;#34;.equals(resourceName)) {&lt;br /&gt;            Resource localResource = new ResourceWrapper() {&lt;br /&gt;                @Override&lt;br /&gt;                public String getRequestPath() {&lt;br /&gt;                    return &amp;#34;/o/theme/libs/jquery/jquery.js&amp;#34;;&lt;br /&gt;                }&lt;br /&gt;...}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.&lt;br /&gt;Cheers.José</summary>
    <dc:creator>jose fernandez</dc:creator>
    <dc:date>2020-03-18T13:56:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Primefaces unable to create resources for jquery</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118724093" />
    <author>
      <name>jose fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118724093</id>
    <updated>2020-03-12T10:20:41Z</updated>
    <published>2020-03-12T10:20:41Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;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?&lt;br&gt;On the source of the page we have this:&lt;pre&gt;&lt;code&gt;&amp;lt;script data-senna-track="permanent" type="text/javascript" src="[url=http://vpp-sn.slcloud.ch:8080/o/VPPportlet/RES_NOT_FOUND&amp;amp;amp;v=6.2]/o/VPPportlet/RES_NOT_FOUND&amp;amp;amp;v=6.2[/url]" id="primefaces:jquery/jquery.js"&amp;gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;Thanks for your answer.José&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>jose fernandez</dc:creator>
    <dc:date>2020-03-12T10:20:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: Primefaces unable to create resources for jquery</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118638471" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118638471</id>
    <updated>2020-03-02T18:55:07Z</updated>
    <published>2020-03-02T18:55:07Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Jose,&lt;br&gt;I just did the following, in order to deploy a PrimeFaces portlet to Liferay DXP 7.1:&lt;br&gt;&lt;pre&gt;&lt;code&gt;mvn archetype:generate \
&amp;amp;nbsp; -DarchetypeGroupId=com.liferay.faces.archetype \
&amp;amp;nbsp; -DarchetypeArtifactId=com.liferay.faces.archetype.primefaces.portlet \
&amp;amp;nbsp; -DarchetypeVersion=5.0.7 \
&amp;amp;nbsp; -DgroupId=com.mycompany \
&amp;amp;nbsp; -DartifactId=com.mycompany.my.primefaces.portlet&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;mvn archetype:generate&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;mvn clean package&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;cp target/*.war&amp;amp;nbsp;to $LIFERAY_HOME/deploy&lt;/code&gt;&lt;/pre&gt;And then I added the portlet to a portal page and reloaded the page.&lt;br&gt;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.&lt;br&gt;Kind Regards,&lt;br&gt;Neil&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2020-03-02T18:55:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Primefaces unable to create resources for jquery</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118635783" />
    <author>
      <name>jose fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118635783</id>
    <updated>2020-03-02T15:01:49Z</updated>
    <published>2020-03-02T15:01:49Z</published>
    <summary type="html">Hi 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]&lt;br /&gt;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]&lt;br /&gt;&lt;br /&gt;Jose</summary>
    <dc:creator>jose fernandez</dc:creator>
    <dc:date>2020-03-02T15:01:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Primefaces unable to create resources for jquery</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118628983" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118628983</id>
    <updated>2020-03-02T14:31:35Z</updated>
    <published>2020-03-02T14:31:35Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;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?&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2020-03-02T14:31:35Z</dc:date>
  </entry>
  <entry>
    <title>Primefaces unable to create resources for jquery</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118628015" />
    <author>
      <name>jose fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118628015</id>
    <updated>2020-03-02T10:10:09Z</updated>
    <published>2020-03-02T10:10:09Z</published>
    <summary type="html">Hello,&lt;br /&gt;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&amp;amp;#047;jquery.js] libraryName=[primefaces] contentType=[null&lt;br /&gt;]&lt;br /&gt;11:02:00,170 ERROR [MissingResourceImpl:94] Resource handler=[com.sun.faces.application.resource.ResourceHandlerImpl@7b8db7f8] was unable to create a resource for resourceName=[jquery&amp;amp;#047;jquery-plugins.js] libraryName=[primefaces] contentTy&lt;br /&gt;pe=[null]&lt;br /&gt;&lt;br /&gt;did somebody has ever had a similar problem?thx Jose</summary>
    <dc:creator>jose fernandez</dc:creator>
    <dc:date>2020-03-02T10:10:09Z</dc:date>
  </entry>
</feed>
