Why I get "Duplicate resource with type 'i18n' and name 'i18n' found"?

When I start atlassian in plugin directory I get below error:

[INFO] [talledLocalContainer] com.atlassian.plugin.PluginParseException: Duplicate resource with type 'i18n' and name 'i18n' found
[INFO] [talledLocalContainer]   at com.atlassian.plugin.Resources.fromXml(Resources.java:73)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.parsers.PluginDescriptorReader.getResources(PluginDescriptorReader.java:127)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.parsers.XmlDescriptorParser.configurePlugin(XmlDescriptorParser.java:108)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:235)
[INFO] [talledLocalContainer]   at com.atlassian.jira.plugin.MasterPluginFactory.create(MasterPluginFactory.java:80)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:155)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:89)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.loaders.PermissionCheckingPluginLoader.loadAllPlugins(PermissionCheckingPluginLoader.java:24)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:217)
[INFO] [talledLocalContainer]   at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:83)
[INFO] [talledLocalContainer]   at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:722)
[INFO] [talledLocalContainer]   at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:225)
[INFO] [talledLocalContainer]   at com.atlassian.jira.ComponentManager.start(ComponentManager.java:199)
[INFO] [talledLocalContainer]   at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:24)
[INFO] [talledLocalContainer]   at com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:130)
[INFO] [talledLocalContainer]   at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:317)
[INFO] [talledLocalContainer]   at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:211)
[INFO] [talledLocalContainer]   at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:118)
[INFO] [talledLocalContainer]   at com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:32)
[INFO] [talledLocalContainer]   at com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:81)
[INFO] [talledLocalContainer]   at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:34)
[INFO] [talledLocalContainer]   at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:76)
[INFO] [talledLocalContainer]   at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:54)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
[INFO] [talledLocalContainer]   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1654)
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:662)

But in my atlassian-plugin.xml is only one resorce declaration. How to find what cause of above error.

<?xml version="1.0" encoding="UTF-8"?>

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
	<plugin-info>
		<description>${project.description}</description>
		<version>${project.version}</version>
		<vendor name="${project.organization.name}" url="${project.organization.url}" />
		<param name="plugin-icon">images/pluginIcon.png</param>
		<param name="plugin-logo">images/pluginLogo.png</param>
	</plugin-info>
	
		<!-- add our i18n resource -->
	<resource type="i18n" name="i18n" location="mystatistics" />
	
	<!-- add our web resources -->
	<web-resource key="mystatistics-resources" name="mystatistics Web Resources">
		<dependency>com.atlassian.auiplugin:ajs</dependency>
		<resource type="download" name="mystatistics.css" location="/css/mystatistics.css" />
		<resource type="download" name="mystatistics.js" location="/js/mystatistics.js" />
		<resource type="download" name="images/" location="/images" />
		<context>mystatistics</context>
	</web-resource>
	
	
	<!-- publish our component -->
	<component key="myPluginComponent" class="pl.example.myStatisticsPlugin" public="true">
		<interface>pl.example.mystatistcs.PluginComponent</interface>
	</component>
	
	
	<!-- import from the product container -->	
	<component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties" />
	
	
	<gadget name="My Statistics Gadget" i18n-name-key="my-statistics-gadget.name" key="my-statistics-gadget" location="gadgets/my-statistics-gadget/gadget.xml">
		<description key="my-statistics-gadget.description">MY TG Statistics Gadget Plugin</description>
	</gadget>

	
	<rest key="ssf_tg_statistics" path="/ppp" version="1.0">
		<description>Provides rest service for this plugin.</description>
	</rest>

</atlassian-plugin>

1 answer

1 accepted

Have you tried cleaning with atlas-clean and re-running ?

Strange but helped. Thanks.

Glad to hear the solution was so simple :).

Would you please mark my answer as accepted ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

44 views 4 0
View post

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you