Joget Plugin Static File Paths (JS/CSS) Returning 404

Confluence User - 24 Jun, 2025


Hi everyone,

I'm currently developing a custom Joget plugin and running into trouble when trying to load JavaScript and CSS files in my Freemarker template. All the paths are returning 404 errors, and I’m not sure what I’m missing.

Here’s how I’m referencing the files inside my ColorPickerField.ftl:

<script src="${request.contextPath}/plugin/org.joget.plugin.ColorPickerField/js/jqueryLibrary.js"></script>
<script src="${request.contextPath}/plugin/org.joget.plugin.ColorPickerField/js/colourpicker.js"></script>
<link rel="stylesheet" href="${request.contextPath}/plugin/org.joget.plugin.ColorPickerField/css/colpick.css" type="text/css" />
plugins

3


24 Jun, 2025
confluenceUser
confluenceUser

Please provide your project structure especially inside resources folder and also make sure that the classpath and classname are correct 

24 Jun, 2025
confluenceUser
confluenceUser

Hi,

You need to add another folder "resources" as below

14 Jul, 2025
confluenceUser
confluenceUser

Hi,
I have a similar issue where my static files are returning 404 even when they are in src/main/resources/resources. 

I reference the files in FTL as :

<#assign pluginWebPath = request.contextPath + "/web/plugins/org.joget.colorpickerr.ColorPickerPlugin">
<link rel="stylesheet" type="text/css" href="${pluginWebPath}/resources/colpick.css" />
<script type="text/javascript" src="${pluginWebPath}/resources/colpick.js"></script>

and in my pom.xml:

resources/colpick.css=src/main/resources/resources/colpick.css,
resources/colpick.js=src/main/resources/resources/colpick.js,

Any help is appreciated!

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print