SCR Annotations not proper in AEM 6.3

Avatar

Avatar

Ashwin_Raju

Avatar

Ashwin_Raju

Ashwin_Raju

11-10-2017

Hi,

We recently upgraded our code to AEM 6.3 and Java 1.8 compatible. After the deployment, we found that the configurations are not properly shown in configMgr, Ex: Process Description, Label, and names not displayed and instead displayed as com.xyz.field.name, com.xyz.field.description as given in the config. The configurations are also unbound with the bundles. We are using the following dependencies.

<dependency>

   <groupId>org.apache.felix</groupId>

   <artifactId>org.apache.felix.scr.annotations</artifactId>

   <version>1.9.8</version>

   <scope>provided</scope>

</dependency>

<plugin>

   <groupId>org.apache.felix</groupId>

   <artifactId>maven-scr-plugin</artifactId>

   <version>1.25.0</version>

</plugin>

Please let me know if we need to migrate the SCR Annotations needed to migrated to OSGi Annotations or any help / suggestions related to this error will be helpful!

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

11-10-2017

You cannot really take 6 code and place it into AEM 6.3.

You need to build your AEM 6.3 projects with the proper dependencies and 6.3 UBER JAR - see this article -

Scott's Digital Community: Creating an Adobe Experience Manager 6.3 Project using Adobe Maven Archet...

Hope this helps....

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

996

Correct Reply

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

996

Correct Reply

1.0K
Jörg_Hoh
Employee

11-10-2017

There is no hard requirement to adapt to the latest version of the tooling (which replaces felix scr specific annotations with official OSGI annotations).

Is the log indicating something useful when starting these bundles?

Jörg

Avatar

Avatar

Ashwin_Raju

Avatar

Ashwin_Raju

Ashwin_Raju

12-10-2017

Hi Jörg,

I didn't find any errors in the log during startup related to scr.annotations.

Regards,

Ashwin Raju

Avatar

Avatar

Ashwin_Raju

Avatar

Ashwin_Raju

Ashwin_Raju

12-10-2017

Hi Smac,

We are using the 6.3 Uber jar but not the Adobe Archetype. The annotation api is being resolved from the org.apache.felix.scr.annotations The dependency used is provided above. We also didn't find the dependency being resolved from any of the bundle in depfinder.