<?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>Client Extensions JS not found</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121684660" />
  <subtitle>Client Extensions JS not found</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121684660</id>
  <updated>2026-04-04T18:44:04Z</updated>
  <dc:date>2026-04-04T18:44:04Z</dc:date>
  <entry>
    <title>RE: Client Extensions JS not found</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122894891" />
    <author>
      <name>Manish Kumar Jaiswal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122894891</id>
    <updated>2024-09-11T15:40:54Z</updated>
    <published>2024-09-02T15:18:11Z</published>
    <summary type="html">&lt;p&gt;Hello All ,&lt;/p&gt;
&lt;p&gt;I am facing the same issue with 404 . Did anyone find a solution to
  it ? Following are the tomcat logs .&lt;/p&gt;
&lt;p&gt;TIA&lt;/p&gt;
&lt;p&gt;Manish&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2024-09-02 15:09:52.302 ERROR
  [fileinstall-directory-watcher][ArtifactURLUtil:106] Path
  /Users/manish/Documents/LIFERAY/Liferay%20Setup/15June2024/tomcat2/liferay-dxp/osgi/client-extensions/liferay-sample-custom-element-2.zip
  is not a valid ZIP&lt;/p&gt;
&lt;p&gt;java.io.FileNotFoundException:
  /Users/manish/Documents/LIFERAY/Liferay%20Setup/15June2024/tomcat2/liferay-dxp/osgi/client-extensions/liferay-sample-custom-element-2.zip
  (No such file or directory)&lt;/p&gt;
&lt;p&gt;at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_311]&lt;/p&gt;
&lt;p&gt;at java.util.zip.ZipFile.&amp;lt;init&amp;gt;(ZipFile.java:226) ~[?:1.8.0_311]&lt;/p&gt;
&lt;p&gt;at java.util.zip.ZipFile.&amp;lt;init&amp;gt;(ZipFile.java:155) ~[?:1.8.0_311]&lt;/p&gt;
&lt;p&gt;at java.util.zip.ZipFile.&amp;lt;init&amp;gt;(ZipFile.java:126) ~[?:1.8.0_311]&lt;/p&gt;
&lt;p&gt;at
  com.liferay.portal.osgi.web.wab.generator.internal.artifact.ArtifactURLUtil._isClientExtensionZip(ArtifactURLUtil.java:90) [bundleFile:?]&lt;/p&gt;
&lt;p&gt;at
  com.liferay.portal.osgi.web.wab.generator.internal.artifact.ArtifactURLUtil.transform(ArtifactURLUtil.java:73) [bundleFile:?]&lt;/p&gt;
&lt;p&gt;at
  com.liferay.portal.osgi.web.wab.generator.internal.artifact.WarArtifactUrlTransformer.transformURL(WarArtifactUrlTransformer.java:47) [bundleFile:?]&lt;/p&gt;
&lt;p&gt;at
  com.liferay.portal.file.install.internal.DirectoryWatcher._install(DirectoryWatcher.java:572) [bundleFile:?]&lt;/p&gt;
&lt;p&gt;at
  com.liferay.portal.file.install.internal.DirectoryWatcher._install(DirectoryWatcher.java:608) [bundleFile:?]&lt;/p&gt;
&lt;p&gt;at
  com.liferay.portal.file.install.internal.DirectoryWatcher._process(DirectoryWatcher.java:807) [bundleFile:?]&lt;/p&gt;
&lt;p&gt;at
  com.liferay.portal.file.install.internal.DirectoryWatcher.run(DirectoryWatcher.java:298) [bundleFile:?]&lt;/p&gt;
&lt;p&gt;2024-09-02 15:09:52.771 INFO&amp;nbsp;
  [fileinstall-directory-watcher][BundleStartStopLogger:68] STARTED
  liferaysamplecustomelement2_7.4.13 [1456]&lt;/p&gt;
&lt;p&gt;2024-09-02 15:09:53.151 ERROR [CM Event Dispatcher (Fire
  ConfigurationEvent:
  pid=com.liferay.client.extension.type.configuration.CETConfiguration~liferay-sample-custom-element-2)][FeatureFlagsBag:90]
  Feature flag LPS-202104 is not available for company 0&lt;/p&gt;
&lt;p&gt;2024-09-02 15:10:03.129 WARN&amp;nbsp; [http-nio-8080-exec-3][code_jsp:161]
  {code="404",
  msg="/liferay-sample-custom-element-2/js/main.a171cef1.js", uri=/o/liferay-sample-custom-element-2/js/main.a171cef1.js}&lt;/p&gt;
&lt;p&gt;2024-09-02 15:10:50.928 WARN&amp;nbsp; [http-nio-8080-exec-3][code_jsp:161]
  {code="404",
  msg="/liferay-sample-custom-element-2/js/main.a171cef1.js", uri=/o/liferay-sample-custom-element-2/js/main.a171cef1.js}&lt;/p&gt;</summary>
    <dc:creator>Manish Kumar Jaiswal</dc:creator>
    <dc:date>2024-09-02T15:18:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: Client Extensions JS not found</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122603825" />
    <author>
      <name>Wladimir Gittel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122603825</id>
    <updated>2024-05-14T14:58:36Z</updated>
    <published>2024-05-03T06:10:47Z</published>
    <summary type="html">&lt;p&gt;Hi Elvis,&lt;/p&gt;
&lt;p&gt;I found another way to deploy JavaScript. You can pload your script
  in &amp;quot;Condent and Data&amp;quot; of the site und use this file as
  Client Extension.&lt;/p&gt;
&lt;p&gt;After uploading the script und select it, you can click the
  infobutton in the right upper corner, in this info there are two urls.
  You can use the webdav url as javascript url in the client extension
  configuration of liferay.&lt;/p&gt;
&lt;p&gt;I wish you success&lt;/p&gt;
&lt;p&gt;Wladimir&lt;/p&gt;</summary>
    <dc:creator>Wladimir Gittel</dc:creator>
    <dc:date>2024-05-03T06:10:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Client Extensions JS not found</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122598951" />
    <author>
      <name>elvis silva</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122598951</id>
    <updated>2024-05-02T16:46:29Z</updated>
    <published>2024-04-30T20:34:33Z</published>
    <summary type="html">&lt;p&gt;Hi Wladimir,&lt;/p&gt;
&lt;p&gt;do you found any solution for this?. Getting same error here.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</summary>
    <dc:creator>elvis silva</dc:creator>
    <dc:date>2024-04-30T20:34:33Z</dc:date>
  </entry>
  <entry>
    <title>Client Extensions JS not found</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121684659" />
    <author>
      <name>Wladimir Gittel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121684659</id>
    <updated>2023-03-31T14:52:07Z</updated>
    <published>2023-03-31T11:03:47Z</published>
    <summary type="html">&lt;p&gt;Hello comunity,&lt;/p&gt;
&lt;p&gt;I try to run some client extensions on Liferay DXP 7.4.13u68. For
  this, I downloaded the samples from github and deployed the
  &amp;quot;liferay-sample-custom-element-2&amp;quot; in the
  ../osgi/client-extensions directory. Within my webapp I can see the
  deployment of the extension in the &amp;quot;Client Extensions&amp;quot;
  overview. But if I add the extension to a page, it is not visible. The
  debug console in my browser shows status code 404 for the main.js.&lt;/p&gt;
&lt;p&gt;This is the yaml configuration&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;assemble:
    - from: build/static
      into: static
liferay-sample-custom-element-2:
    cssURLs:
        - css/main.*.css
    friendlyURLMapping: liferay-sample-custom-element-2
    htmlElementName: liferay-sample-custom-element-2
    instanceable: false
    name: Liferay Sample Custom Element 2
    portletCategoryName: category.client-extensions
    type: customElement
    urls:
        - js/main.*.js
    useESM: true&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and the browser console&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/d/guest/mainnotfound-png?imagePreview=1" /&gt;
  &lt;br /&gt; ​​​​​​​&lt;/p&gt;
&lt;p&gt;In the .zip File the main.js is in the /static subdirectory, so I
  tried to change this in the yaml file. The final result is the same.&lt;/p&gt;
&lt;p&gt;What is the correct link for the main.js&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;kind regards&lt;/p&gt;
&lt;p&gt;Wladimir&lt;/p&gt;</summary>
    <dc:creator>Wladimir Gittel</dc:creator>
    <dc:date>2023-03-31T11:03:47Z</dc:date>
  </entry>
</feed>
