I'm trying to build my add-on against Confluence 5.9.1-pluginsfour019, but I'm getting the following error after Confluence starts up, on the initial page:
[INFO] [talledLocalContainer] 2015-10-13 15:22:49,067 WARN [http-1990-1] [plugin.web.model.ResourceTemplateWebPanel] writeHtml Error rendering WebPanel (com.atlassian.confluence.plugins.confluence-quicknav:quicknav-resources/Confluence.Templates.QuickNav.panel): No renderer found for resource type: soy [INFO] [talledLocalContainer] com.atlassian.plugin.web.renderer.RendererException: No renderer found for resource type: soy [INFO] [talledLocalContainer] at com.atlassian.plugin.web.model.AbstractWebPanel.getRenderer(AbstractWebPanel.java:85) [INFO] [talledLocalContainer] at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.writeHtml(ResourceTemplateWebPanel.java:50) [INFO] [talledLocalContainer] at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:65) [INFO] [talledLocalContainer] at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:144) [INFO] [talledLocalContainer] at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager$ExceptionHandlingWebPanel.getHtml(ConfluenceWebInterfaceManager.java:129) [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:497) ... [INFO] [talledLocalContainer] Caused by: java.util.NoSuchElementException [INFO] [talledLocalContainer] at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:154) [INFO] [talledLocalContainer] at com.google.common.collect.Iterators.find(Iterators.java:722) [INFO] [talledLocalContainer] at com.google.common.collect.Iterables.find(Iterables.java:643) [INFO] [talledLocalContainer] at com.atlassian.plugin.web.model.AbstractWebPanel.getRenderer(AbstractWebPanel.java:71)
The error looks like the following in browser: http://i.imgur.com/ljNA1sD.png
I see the Confluence 5.9 ships with Atlassian soy template renderer 2.0.x (here: https://developer.atlassian.com/confdev/development-resources/preparing-for-confluence-5-9). I've also added an OSGi import-package instruction for this version, in the form of:
com.atlassian.soy*;version="${atlassian.templaterenderer.version}",
I've also followed the other instructions on the "Preparing for Confluence 5.9" developers page: https://developer.atlassian.com/confdev/development-resources/preparing-for-confluence-5-9
Unfortunately the error persists. Any advice here? I'd love to be able to run 5.9.1-pluginsfour019 locally, and develop against it.
Thank you.
Community moderators have prevented the ability to post new answers.
Adding a `tomcat7x` container to the maven amps plugin configuration did the trick:
<plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-amps-plugin</artifactId> <configuration> <containerId>tomcat7x</containerId>
Thanks for the help, @Klaus Ihlberg!
@Jason Hinch does this exception ring a bell for you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Klaus -- right, I meant 3.0.x, apologies. I have 3.0.1 in our pom for testing right now. Since we don't have an upper version bound in the OSGi import instruction, I believe it'll use 3.0.1 or anything higher. The plan is to bump that number back down once we officially release in order to still be compatible with older versions of Confluence. Unfortunately that OSGi import isn't doing the trick, even with the higher value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm looking into this issue, but just checking, you said you are using Soy 2.0.x but Confluence 5.9 actually ships with 3.x. Do you have the correct version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.