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

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

05-09-2018

For this 1 JAR (cxf-rt-frontend-jaxrs-3.1.10.jar) - have you tried to wrap this one in a separate OSGi bundle and deploy it?

Avatar

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
poomp51937612
Level 2

05-09-2018

Can you tell me how to? Do I need to rewrite the manifest as well?

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,081 likes

Total Posts

3,121 posts

Correct Reply

1,061 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,081 likes

Total Posts

3,121 posts

Correct Reply

1,061 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

05-09-2018

The exports of the javax.annotation package has not changed from AEM 6.2 and AEM 6.4, they are both exported from the system bundle and taken from the JRE.

That makes me wonder why you have the package "javax.annotation-api" installed at all, even in AEM 6.2 it shouldn't be necessary to have it deployed.

Jörg

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

05-09-2018

I created an OSGi that contains just the cxf-rt-frontend-jaxrs-3.1.10.jar.  It deployed without an issue and did not effect other bundles. Look here...

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

05-09-2018

Avatar

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
poomp51937612
Level 2

06-09-2018

Thank you so much for the help and video. I will try wrapping it now.

Though I am not sure how this will help as this bundles install ok and is active for me.

Problem is after installing this other 'Adobe' bundles break.

Use case:

0) Start AEM 6.4 (not 6.2)

1) install the cxf-rt-frontend-jaxrs-3.1.10.jar bundle.

2) check its active.

3) restart AEM

4) Check the logs and bundles

5) most of the Adobe ones are in Resolved or Installed state.

Avatar

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
poomp51937612
Level 2

06-09-2018

On AEM 6.4 this is what I get: http://localhost:9503/system/console/depfinder

Package                         Version                                    Exported by

javax.annotation             0.0.0.1_008_JavaSE               org.apache.felix.framework (0)

But the CXF bundles need 1.3 version of javax.annotation:

org.apache.cxf.cxf-rt-rs-client
org.apache.cxf.cxf-rt-frontend-jaxrs
org.apache.cxf.cxf-rt-rs-security-jose-jaxrs
org.apache.cxf.cxf-rt-rs-security-oauth2

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,081 likes

Total Posts

3,121 posts

Correct Reply

1,061 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,081 likes

Total Posts

3,121 posts

Correct Reply

1,061 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

06-09-2018

Ok, understood.

The felix framework exports the packages from the classpath; in that case javax.annotation. And all packages are exported with this "default" version no matter what version of the standard the rt.jar is actually implementing. That's unfortunate in your case.

You encountered this as a problem when switching from AEM 6.2 to AEM 6.4; between these releases the OSGI framework has changed as well, maybe the order of resolution has changed in case duplicates are present, not sure. I would recommend to post this question on the user@felix.apache.org mailinglist. There you can reach OSGI specialists which know the details much better than we do.

Jörg

Avatar

Avatar
Springboard
Level 1
rakz_r
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Springboard
Establish
Give Back
Ignite 1
Validate 1
View profile

Avatar
Springboard
Level 1
rakz_r
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Springboard
Establish
Give Back
Ignite 1
Validate 1
View profile
rakz_r
Level 1

12-09-2019

poomp51937612​ did you get resolve this issue? Even I am facing the same issue when AEM is updated from 6.3 to 6.4

Avatar

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
poomp51937612
Level 2

Likes

2 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
poomp51937612
Level 2

21-10-2019

Yes, had to remove the ref to this bundle from everywhere else. And then embed to only where it was required.