Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Inject a template renderer in a servlet



I'm building a simple plugin and a servlet which handles the configuration.

I'm working with an old API (not spring/osgi) and i'm trying to inject the template render and app properties without any luck.

I keep on getting the NoClassDefFoundError.


my code is 


<component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties"/>
<component-import key="templateRenderer" interface="com.atlassian.templaterenderer.TemplateRenderer"/>
<component-import key="userManager" interface="com.atlassian.sal.api.user.UserManager"/>
<component-import key="i18nResolver" interface="com.atlassian.sal.api.message.I18nResolver"/>

<servlet name="Configuration Servlet" key="rest-configuration-servlet"
<description key="configuration-servlet.description">Configuration Servlet for Rest endpoints</description>

 private ApplicationProperties applicationProperties;
private TemplateRenderer renderer;
public ConfigurationServlet(TemplateRenderer templateRenderer, ApplicationProperties applicationProperties) {
this.renderer = templateRenderer;
this.applicationProperties = applicationProperties;

If i change the scope, the plugin fails to load all together.
I've also tried several version without any luck.




1 answer

I ended up switching to Atlassian's new api , using @Scanned .

Suggest an answer

Log in or Sign up to answer

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