AEM: BundleException | Community
Skip to main content
September 3, 2018

AEM: BundleException

  • September 3, 2018
  • 3 replies
  • 14795 views

Hi

I am upgrading from AEM 6.2 to 6.4.

As part of 6.2 work, I have been using javax.annotation (version 1.3) as a separate bundle and it has been working fine.

But when I install the same to 6.4 I get the following error on almost all other framework bundles

So, for example for bundle:

I am now getting:

and not:

I do understand that now there are two bundles (1.3 and 0.0.0.1_008_JavaSE) available for javax.annotaion and hence the issue.

What I don't understand is why this was working with 6.2 and not with 6.4?

Also, please advice how to fix this? I need the javax.annotation (1.3) version as I am using cxf libraries.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

joerghoh
Adobe Employee
Adobe Employee
September 3, 2018

Looks like you don't need the javax.annotation-api bundle anymore, but instead javax.activation is directly included into the exports of the OSGI frameworks.

Jörg

September 3, 2018

Thanks for the reply.

I do need the 1.3 version of this bundle.

Default version is 0.0.0.1_008_JavaSE and has always been included in both 6.2 and 6.4

smacdonald2008
September 4, 2018

Are you building a Maven Arch 13 project?

navinkaushal
September 4, 2018

You need to rebuild your bundle using Archetype 13. It will add necessary decencies which are not being located using your old bundle. Try that it should work.

smacdonald2008
September 5, 2018

Nice reply Navin!

smacdonald2008
September 5, 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...


September 12, 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

October 21, 2019

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