com.atlassian.templaterenderer.TemplateRenderer not found

dhaval soni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

I have added "import com.atlassian.templaterenderer.TemplateRenderer;" refernece but it shows type resolve error.

added dependency as below in pom.xml:

<dependency>

<groupId>com.atlassian.templaterenderer</groupId>

<artifactId>atlassian-template-renderer-api</artifactId>

<version>1.1.1</version>

<scope>provided</scope>

</dependency>

In atlassian-plugin.xml added below components:

<component-import key="renderer" interface="com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRenderer" />

<component-import key="templateRenderer" interface="com.atlassian.templaterenderer.TemplateRenderer"/>

<component-import key="txTemplate" interface="com.atlassian.sal.api.transaction.TransactionTemplate"/>

in eclipses it shows me error for type resolve.

please share me your comments, is there something set for build path ?

thanks

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
John Chin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 4, 2013

Try navigate to the directory and run this cmd "atlas-mvn idea:idea"

Jeremy Jao May 11, 2016

Failed to execute goal org.apache.maven.plugins:maven-idea-plugin:2.3-atlassian-10:idea with a LifecycleExecutionException

1 vote
ConradR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

Hi,

you have to add the dependency to your pom.xml and restart jira:

&lt;dependency&gt;
            &lt;groupId&gt;com.atlassian.templaterenderer&lt;/groupId&gt;
            &lt;artifactId&gt;atlassian-template-renderer-api&lt;/artifactId&gt;
            &lt;version&gt;1.3.1&lt;/version&gt;
            &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;

/Edit: Sorry, I just noticed you already have added the dependency. But the restart is still necessary.

dhaval soni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

yes, restard is already done after adding this dependncy. and refresh the eclipse project. but though not worked.

Have added dependnecy for "1.1.1". is any impact ?

ConradR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

Well, I think the current version is 1.4.2 but 1.1.1 should work, too. What's your Jira version?

You said eclipse shows type resolve errors. What does Jira say?

dhaval soni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2013

I got resolve by manually adding external jira file in eclipse Project >> build path >> libraries.

and added template render api from document settings\user\.m2\repositories\..com\atlas\..

NOw, eclise does not show any error.

But, when i execute servlet over browser while servlet constructor is as below:

"public AdminServlet(UserManager userManager, LoginUriProvider loginUriProvider, TemplateRenderer renderer)"

then servlet screen not found error come

and when i change the constrcutr to as below:

public AdminServlet(UserManager userManager, LoginUriProvider loginUriProvider)

then no error comes. and able to see screen.

Can you tell me, what does need to configure to add "templaterender" into servlet constructor

?

thanks

ivan ivan September 18, 2014

Helped me alot!

0 votes
Juan Manuel Ibarra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 26, 2018

Hello,

Try using the command atlas-mvn idea:idea (if you are using the intellij)

https://developer.atlassian.com/server/framework/atlassian-sdk/atlas-mvn/

You may need to refresh the Maven indexes so that it works correctly.

Regards!

0 votes
SuhailM March 28, 2013

Add this dependency too..and restart

&lt;dependency&gt;
            &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
            &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
            &lt;version&gt;2.3&lt;/version&gt;
            &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events