Wrong bundle location in web console

Avatar

Avatar

anirudhreddykav

Avatar

anirudhreddykav

anirudhreddykav

03-05-2019

I am working on AEM 6.4 project. I saw that my core bundles are not installing in "jcrinstall:/apps/etap/install/etap.core-1.0-SNAPSHOT.jar" but installing in "inputstream:etap.core-1.0-SNAPSHOT.jar".

So when i export my project, none of my back end logic is being exported. How to change Bundle location in web console?

I tried uninstalling in console and running autoInstallBundle from ecllipse, but it is installing in wrong location only.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K
Jörg_Hoh
Employee

03-05-2019

When you use the standard AEM maven archetypes, you should have also have an ui.apps project, which builds a content-package you can deploy.

Jörg

Answers (4)

Answers (4)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

03-05-2019

When you deploy your Maven Archetype AEM Project- it places the bundle in the install folder when you run the command

mvn -PautoInstallPackage install

To fix any Java issue, recompile in Eclipse and redeploy.

So two thing happen when using the above command:

1 - THE OSGI bundle is placed into the AEM service container and placed into an Active State (assuming you have all correct dependencies)

2 - Its placed in the Install folder under /app

Avatar

Avatar

anirudhreddykav

Avatar

anirudhreddykav

anirudhreddykav

03-05-2019

Sorry for the mistake in my previous comment. It is not installing in repository. It is installing in "inputstream:etap.core-1.0-SNAPSHOT.jar".

Avatar

Avatar

anirudhreddykav

Avatar

anirudhreddykav

anirudhreddykav

03-05-2019

Hi, Thanks for the reply.

Now i have my java code in eclipse. This as I told is installed in repository. If I want my java code to be in apps/etap/install, so that I can share my project as content-package What can I do?

And the current java file in install folder is also corrupted. Please suggest how can we solve this.

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K
Jörg_Hoh
Employee

03-05-2019

when you install bundles directly (not as part of a content package) via maven or directly in the OSGI webconsole, it will register directly in Felix and will not install via the repository. When you embed a bundle in a content-package and then deploy the content-package into AEM, it will result in the bundle location "jcrinstall:/...".

From a functional point of view it does not make any difference.

HTH,

Jörg