Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Do we need to move code base to maven archetype 23?

Avatar

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
arvindk091986
Level 2

26-08-2020

Hello All,
 
I am working on a short-term project that was developed on Archetype 10/13 on AEM6.2, because the maven version mentioned in the main POM is an old versioned one. The Classic UI components are supposed to be upgraded to Touch UI, so that it supports for AEM 6.5 too going forward. In the process of upgrade, I have updated the POM file with the required versions of the respective dependencies and that had been successful upon code build. But when I tried upgrading classic ui components and writing few backend services/servlets, I started getting the error "Unable to load compiled class " which I believe is related to the SCR Annotations(even after the dependency version was upgraded I see this error). Due to this, I was wondering if upgrading the project to AEM 6.5 Archetype 23 help? I wanted to see if I can move the codebase to Archetype 23 or is there anything that I might be missing for fixing the error - "Unable to load compiled class".
 
Appreciate your help. 
aem6.5
View Entire Topic

Avatar

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

236 likes

Total Posts

251 posts

Correct Reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

236 likes

Total Posts

251 posts

Correct Reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
Theo_Pendle
MVP

29-08-2020

Hi @arvindk091986,

Migrating from AEM 6.2 in Classic UI to AEM 6.5 in Touch UI is going to be a BIG project. I'm speaking from experience as a project I'm working on from AEM 6.3 in Touch UI to AEM 6.5 in Touch UI is going to take roughly 300 man days.

You would have to share the whole stacktrace with us so we could help you identify the source of the error but if you've already narrowed it down to annotation then you probably have an incompatibility between WCM Use API and Apache Felix annotations vs Sling Models and OSGI annotations.

If I were you I would:

  1. Notify the people in charge that migrating from 6.2 to 6.5 is not a walk in the park
  2. Start a fresh project from Archetype 23
  3. Start porting your code from your old project to the new project, one class at a time and testing to see if
    1. It works on the server
    2. Your unit tests still run (they probably will not).

Good luck! If you're planning a full migration from 6.2 to 6.5, don't hesitate to reach out to me on LinkedIn for advice: https://www.linkedin.com/in/theo-pendle-1630a52a (I won't even charge you 😉)