Expand my Community achievements bar.

SOLVED

bundle active failure

Avatar

Level 2

hi, i tried to create a bundle , and i installed in cq bundles, but when i click active it remains in installed state, 

so in that adobe document they have given alternative like 

 If the status is not Active, check the CQ error.log for exceptions. If you get “org.osgi.framework.BundleException: Unresolved constraint” errors, check the MANIFEST.MF for strict version requirements which might follow: javax.xml.namespace; version=”3.1.0”

But i am not clear about where we need to delete that version, if anyone knows pls help me to resolve this

1 Accepted Solution

Avatar

Correct answer by
Level 9
2 Replies

Avatar

Level 10

An OSGi is just really a JAR file. OPen the JAR file in a tool like WInRAR. The MF file is located in the \META-INF directory - as shown in the following pic:

[img]WINRAR.png[/img]

Extract the MF file and open it. Remove the version information from the package and save the MF file. Put it back into the JAR file using the WinRAR tool. Now  when you deploy to AEM - it will resolve the package with the version available in AEM. 

Avatar

Correct answer by
Level 9