Bundle unable to start after 1.2.16 upgrade | Community
Skip to main content
ronnyfm
New Participant
August 22, 2016
Solved

Bundle unable to start after 1.2.16 upgrade

  • August 22, 2016
  • 5 replies
  • 2030 views

I was running AEM 6.1 with oak-auth-external 1.2.14, but after a hotfix (cq-6.1.0-hotfix-10832-1.0.zip) was installed with version 1.2.16 my bundle is unable to start.

This dependency appears as unsolved:

org.apache.jackrabbit.oak.spi.security.authentication.external,version=[1.0,2) -- Cannot be resolved

In fact, the version is now 2.0, as it appears in the exported packages in the console:

org.apache.jackrabbit.oak.spi.security.authentication.external,version=2.0.0

I updated the pom.xml as follows, it doesn't work.

<dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>oak-auth-external</artifactId> <version>1.2.16</version> <scope>provided</scope> </dependency>

Any ideas?

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

I found the problem:  I also had the uber-jar in the bundle containing an older oak-auth.  After removing that the dependency is resolved.

5 replies

ronnyfm
ronnyfmAuthor
New Participant
October 21, 2016

See my late answer. Marked Robert answer as correct since that was in the right direction too.

ronnyfm
ronnyfmAuthor
New Participant
October 21, 2016

Thanks Robert.

And hi all. Yes, the issue was in part related to the uber-jar, you have to update to the uber-jar that matches your installation. 6.1, 6.1 SP1 or 6.1 SP2. But also, in my case, there was the aem-api dependency, I had to remove it since it was redundant. Of course, use depfinder to update your pom.xml with the right version for oak-auth-external.

robertf46710686Accepted solution
New Participant
August 30, 2016

I found the problem:  I also had the uber-jar in the bundle containing an older oak-auth.  After removing that the dependency is resolved.

New Participant
August 30, 2016

I have the exact same problem after the 1.2.16 hotfix.  The imported packages for my bundle shows:

org.apache.jackrabbit.oak.spi.security.authentication.external,version=[1.0,2) -- Cannot be resolved

In the depfinder the following is found:

 

       
org.apache.jackrabbit.oak.spi.security.authentication.external2.0.0org.apache.jackrabbit.oak-auth-external (91)<dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>oak-auth-external</artifactId> <version>1.2.16</version> <scope>provided</scope> </dependency>

I add the dependency as shown to the bundle pom:

  <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>oak-auth-external</artifactId>
            <version>1.2.16</version>
            <scope>provided</scope>
        </dependency>

But still have the dependency problem in the bundle.

@smacdonald2008 , @ronnyfm, can you help please? (or anyone else!)

smacdonald2008
New Participant
August 22, 2016

Use AEM Dependency Manager and get the version and then place that dependency into the projects POM in the dependency section.  

http://localhost:4502/system/console/depfinder

Also - what Maven Archetype are you using to build the OSGi?