Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Can't start plugin with PageBuilderService


I've made servlet plugin for crowd with template and when I try to add js and css resources like described here  plugin can't start with that error in logs

[INFO] [talledLocalContainer] 2021-05-19 12:25:37,553 QuickReload - Plugin Installer ERROR [plugin.osgi.factory.OsgiPlugin] Plugin 'com.example.crowd.plugin.crowdplugin2' never resolved service '&pageBuilderService' with filter '(&(objectClass=com.atlassian.webresource.api.assembler.PageBuilderService)(objectClass=com.atlassian.webresource.api.assembler.PageBuilderService))'
[INFO] [talledLocalContainer] 2021-05-19 12:25:37,553 FelixDispatchQueue INFO [osgi.container.felix.FelixOsgiContainerManager] Stopped bundle com.example.crowd.plugin.crowdplugin2 (70)

here is atlassian-plugin.xml 

<?xml version="1.0" encoding="UTF-8"?>
<atlassian-plugin key="${atlassian.plugin.key}" name="${}" plugins-version="2">
<vendor name="${}" url="${project.organization.url}"/>
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="crowdplugin2"/>
<!-- add our web resources -->
<web-resource key="crowdplugin2-resources" name="crowdplugin2 Web Resources">
<resource type="download" name="crowdplugin2.css" location="/css/crowdplugin2.css"/>
<resource type="download" name="crowdplugin2.js" location="/js/crowdplugin2.js"/>
<resource type="download" name="images/" location="/images"/>
<web-item name="WebItem" i18n-name-key="" key="web-item" section="topnav" weight="1000">
<description key="web-item.description">The WebItem Plugin</description>
<label key="web-item.label"/>
<link linkId="web-item-link">http://localhost:4990/crowd/plugins/servlet/userblock</link>
<servlet name="User Block" i18n-name-key="" key="user-block" class="com.example.crowd.plugin.servlet.UserBlock">
<description key="user-block.description">The User Block Plugin</description>

 here is servlet class:

import com.atlassian.plugin.spring.scanner.annotation.component.Scanned;
import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import com.atlassian.templaterenderer.TemplateRenderer;
import com.atlassian.webresource.api.assembler.PageBuilderService;
import javax.inject.Inject;

public class UserBlock extends HttpServlet {
private final TemplateRenderer templateRenderer;
private PageBuilderService pageBuilderService;
private static final Logger log = LoggerFactory.getLogger(UserBlock.class);

public UserBlock(TemplateRenderer templateRenderer, PageBuilderService pageBuilderService) {
this.templateRenderer = templateRenderer;
this.pageBuilderService = pageBuilderService;

protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
templateRenderer.render("template.vm", resp.getWriter());


In pom.xml I have


When I remove PageBuilderService from servlet class, plugin starts and I my template renders. 

What should I do to add js and css to my template?

1 answer

0 votes

Hi @aas


As just answered on your previous question, just in case other Crowd users stumble over this question here:

App development related questions like this are best asked in the Crowd Development category of the Atlassian Developer Community, you have a greater chance to get feedback from other app developers there.

That said, to set expectations, you'll note that there are comparatively few Crowd related questions and even less answers there - regardless, quite some Atlassian team members monitoring the community by now, so hopefully they can loop in someone from the Crowd team.



Hi @Steffen Opel _Utoolity_ 

Unfortunately I don't know how ask questions in Atlassian Developer Community, there no any buttons to create topic or ask questions. I can only read topics

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

225 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you