Problem when creating an all-in-one project in Eclipse

Showing results for 
Search instead for 
Did you mean: 
Active Member II

Problem when creating an all-in-one project in Eclipse


I am currently trying to get first experiences in developing extensions for alfresco. Meanwhile I already successfully created and Aikau Client Im am stucking in creating an All-In-One project.

I am using Eclipse with OpenJDK 12 on my mac. I used this guide to create an all-in-one project in eclipse. I I try to run the porject, I did not change anything I get the following error:

Exception in thread "main" java.util.ServiceConfigurationError: sun.util.locale.provider.LocaleDataMetaInfo: Unable to load sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo
	at java.base/
	at java.base/java.util.ServiceLoader.loadProvider(
	at java.base/java.util.ServiceLoader$ModuleServicesLookupIterator.hasNext(
	at java.base/java.util.ServiceLoader$2.hasNext(
	at java.base/java.util.ServiceLoader$3.hasNext(
	at java.base/sun.util.cldr.CLDRLocaleProviderAdapter$
	at java.base/sun.util.cldr.CLDRLocaleProviderAdapter$
	at java.base/
	at java.base/sun.util.cldr.CLDRLocaleProviderAdapter.<init>(
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(
	at java.base/java.lang.reflect.ReflectAccess.newInstance(
	at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(
	at java.base/java.lang.Class.newInstance(
	at java.base/sun.util.locale.provider.LocaleProviderAdapter.forType(
	at java.base/sun.util.locale.provider.LocaleProviderAdapter.findAdapter(
	at java.base/sun.util.locale.provider.LocaleProviderAdapter.getAdapter(
	at java.base/java.util.Calendar.createCalendar(
	at java.base/java.util.Calendar.getInstance(
	at java.base/java.text.SimpleDateFormat.initializeCalendar(
	at java.base/java.text.SimpleDateFormat.<init>(
	at java.base/java.text.SimpleDateFormat.<init>(
	at org.apache.maven.cli.CLIReportingUtils.formatTimestamp(
	at org.apache.maven.cli.CLIReportingUtils.createMavenVersionString(
	at org.apache.maven.cli.MavenCli.populateProperties(
	at org.apache.maven.cli.MavenCli.doMain(
	at org.apache.maven.cli.MavenCli.main(
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.base/java.lang.reflect.Method.invoke(
	at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: java.lang.LinkageError: loader 'platform' attempted duplicate class definition for sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo. (sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo is in module jdk.localedata of loader 'platform')
	at java.base/java.lang.ClassLoader.defineClass2(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(
	at java.base/
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClass(
	at java.base/java.lang.ClassLoader.loadClass(
	at java.base/java.lang.Class.forName(
	at java.base/java.util.ServiceLoader.loadProvider(
	... 37 more

I understand the error but I do not know where I can find the duplicate class definition. This is a base class which is part of Open-JDK and I can´t find the duplicate jar in the project. 

Can someone give me an hint, how to resolve this problem.


2 Replies

Re: Problem when creating an all-in-one project in Eclipse

The link is pointing to SDK2.x.

If you are using ACS 6.x, you should be generating SDK4.x archetype. 

Generate the new project by following these steps:

1- Open commond prompt and execute following maven command:

mvn archetype:generate -Dfilter=org.alfresco:


mvn archetype:generate -Dfilter="org.alfresco:"

2- You will be asked to choose the archetype. SELECT '2'

Choose archetype:
1: remote -> org.alfresco.maven.archetype:activiti-jar-archetype (DEPRECATED - UNSUPPORTED - EXPERIMENTAL)
2: remote -> org.alfresco.maven.archetype:alfresco-allinone-archetype (Sample multi-module project for All-in-One development on the Alfresco platform. Includes modules for Platform/Repository JAR and Share JAR)
3: remote -> org.alfresco.maven.archetype:alfresco-amp-archetype (Sample project with full support for lifecycle and rapid development of Repository AMPs (Alfresco Module Packages))
4: remote -> org.alfresco.maven.archetype:alfresco-platform-jar-archetype (Sample project with full support for lifecycle and rapid development of Platform/Repository JARs and AMPs (Alfresco Module Packages))
5: remote -> org.alfresco.maven.archetype:alfresco-share-jar-archetype (Share project with full support for lifecycle and rapid development of JARs and AMPs (Alfresco Module
6: remote -> org.alfresco.maven.archetype:share-amp-archetype (Share project with full support for lifecycle and rapid development of AMPs (Alfresco Module

3- Select '14' for the SDK version as 4.1.0

Choose org.alfresco.maven.archetype:alfresco-allinone-archetype version:
1: 2.0.0-beta-1
2: 2.0.0-beta-2
3: 2.0.0-beta-3
4: 2.0.0-beta-4
5: 2.0.0
6: 2.1.0
7: 2.1.1
8: 2.2.0
9: 3.0.0
10: 3.0.1
11: 3.1.0
12: 4.0.0-beta-1
13: 4.0.0
14: 4.1.0
Choose a number: 14:

4- Provide 'groupId'

Define value for property 'groupId':

e.g. com.demo.aio.sdk4

5- Provide the 'artifactId' (name of your project)

Define value for property 'artifactId':

e.g.: sdk4-aio-project

6- Provide package:

Define value for property 'package' com.demo.aio.sdk4: :

Keep as is. Press enter.

7- You will be asked to confirm the properties:

Confirm properties configuration:
groupId: com.demo.aio.sdk4
artifactId: sdk4-aio-project
version: 1.0-SNAPSHOT
package: com.demo.aio.sdk4
 Y: :

Press 'Y', if everything looks good. A sample project will be generated. 

8- Import them in eclipse and get started.

Note: SDK4.x is based on docker and docker-compose.

In Addition, check to see if there JDK is properly configured in your eclipse. 

Note: JDK 11 is recommended for SDK4.1.0

Have a look at this doc as well:

Established Member

Re: Problem when creating an all-in-one project in Eclipse

Had similar issue sometimes back. Thanks for sharing these steps