Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Dependency jar's getting removed after the installation of SNAPSHOT package.

Avatar

Level 2

Hi,

I'm working in a version upgrade project from CQ 5.5 to AEM 6.2. Our code package requires some dependency jar's(all are present in one package) which were already present under felix console. But whenever we install a new SNAPSHOT, all the dependency jar's were getting removed and making the code bundle to 'Installed' state so again need to re-install the dependency jar package to make the code bundle to 'Active'. This has been observed across all the 6.2 instances(my local is a fresh 6.2 and lower & higher env are in-place upgrade instances) but this behavior is not observed in the existing env which were running on CQ 5.5 version. I can see the below logs while installing the snapshot :

17.03.2017 10:35:45.248 *INFO* [JcrInstaller.1] org.apache.sling.installer.provider.jcr.impl.JcrInstaller Deleting WatchedFolder:/apps/lcl/common-bundles/install, path does not exist anymore
17.03.2017 10:35:45.251 *INFO* [JcrInstaller.1] org.apache.sling.installer.provider.jcr.impl.JcrInstaller Removing resource from OSGi installer (folder deleted): [/apps/lcl/common-bundles/install/jackson-mapper-asl-1.9.2.jar, /apps/lcl/common-bundles/install/jackson-core-lgpl-1.9.2.jar, /apps/lcl/common-bundles/install/com.springsource.jxl-2.6.6.jar, /apps/lcl/common-bundles/install/spring-osgi-extender-1.2.1.jar, /apps/lcl/common-bundles/install/org.springframework.oxm-3.1.1.RELEASE.jar, /apps/lcl/common-bundles/install/sling-dynamic-include-0.5.3-SNAPSHOT.jar, /apps/lcl/common-bundles/install/googlecaptcha_1.0.0.jar, /apps/lcl/common-bundles/install/org.springframework.web-3.1.1.RELEASE.jar, /apps/lcl/common-bundles/install/spring-osgi-io-1.2.1.jar, /apps/lcl/common-bundles/install/com.springsource.org.aopalliance-1.0.0.jar, /apps/lcl/common-bundles/install/jcrom-osgi-2.0.0.jar, /apps/lcl/common-bundles/install/org.springframework.expression-3.1.1.RELEASE.jar, /apps/lcl/common-bundles/install/org.springframework.core-3.1.1.RELEASE.jar, /apps/lcl/common-bundles/install/spring-osgi-core-1.2.1.jar, /apps/lcl/common-bundles/install/org.springframework.context-3.1.1.RELEASE.jar, /apps/lcl/common-bundles/install/org.springframework.beans-3.1.1.RELEASE.jar, /apps/lcl/common-bundles/install/jackson-core-asl-1.9.2.jar, /apps/lcl/common-bundles/install/com.springsource.net.sf.ehcache-1.6.0.jar, /apps/lcl/common-bundles/install/org.springframework.aop-3.1.1.RELEASE.jar, /apps/lcl/common-bundles/install/sling-dynamic-include-0.5.4-SNAPSHOT.txt, /apps/lcl/common-bundles/install/org.springframework.asm-3.1.1.RELEASE.jar]

Then it's trying to uninstall each and every dependency as shown in the below log:

17.03.2017 10:35:45.426 *INFO* [OsgiInstallerImpl] com.springsource.jxl BundleEvent STOPPING
17.03.2017 10:35:45.426 *INFO* [OsgiInstallerImpl] com.springsource.jxl BundleEvent STOPPED
17.03.2017 10:35:45.428 *INFO* [OsgiInstallerImpl] com.springsource.jxl BundleEvent UNRESOLVED
17.03.2017 10:35:45.428 *INFO* [OsgiInstallerImpl] com.springsource.jxl BundleEvent UNINSTALLED
17.03.2017 10:35:45.431 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Uninstalled bundle com.springsource.jxl [565] from resource TaskResource(url=jcrinstall:/apps/lcl/common-bundles/install/com.springsource.jxl-2.6.6.jar, entity=bundle:com.springsource.jxl, state=UNINSTALL, attributes=[Bundle-SymbolicName=com.springsource.jxl, Bundle-Version=2.6.6, org.apache.sling.installer.api.tasks.ResourceTransformer=:24:21:], digest=1489049292607)

Can anyone help me why it's deleting the dependency jar everytime?

1 Accepted Solution

Avatar

Correct answer by
Level 9

It sounds you have filter at higher level like /apps/lcl and hence  /apps/lcl/common-bundles/install getting deleted. Verify the package filter which you are installing & make sure filter is set at deep level. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

It sounds you have filter at higher level like /apps/lcl and hence  /apps/lcl/common-bundles/install getting deleted. Verify the package filter which you are installing & make sure filter is set at deep level. 

Avatar

Level 4

As Mc Stuff said, check your project package and look for /apps/lcl folder.