Install jar bundle to publisher instance. | Adobe Higher Education
Skip to main content
Level 2
August 27, 2017

Install jar bundle to publisher instance.

  • August 27, 2017
  • 3 の返信
  • 8200 ビュー

I generate project from maven archetype, when run the command mvn clean install -P autoInstallPackage there are 2 package in the package manager, which are foo.ui-apps and foo.ui-content. In the ui-apps there are apps/foo/install/ that contain jar file. But when I replicate that 2 package to the publisher, the bundle jar file not installed, but exists in the apps/foo/install folder.

Any idea how the correct way to do that?

I tried to manually install the bundle via /system/console/bundles, upload jar file from the app/foo/install/XYZ.jar, but got error 500 java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle.

このトピックへの返信は締め切られました。

3 の返信

Prince_Shivhare
Community Advisor
Community Advisor
August 27, 2017
Level 2
August 27, 2017

I've check that thread before.

I've never install the jar before and when icheck in the osgi component or the bundle list, there is not foo package installed, and I can't use the java bundle in my component.

joerghoh
Adobe Employee
Adobe Employee
August 27, 2017

Hi,

if you get this message, the bundle lacks the necessary metadata to be an actual bundle. When you have uploaded the package via maven, can you check if the bundle is installed at all?

Jörg

Level 2
August 28, 2017

Hi Jorg,

I install the bundle in the author via mvn clean install -P autoInstallPackage and I use autoInstallBundle if I change the java class. In the author it worked well, but when I replicated to the publisher all is there (including app/training/install/XYZ.jar). But when I use it in the component, it showed error "Cannot find a a file corresponding to class id.jeffersonsetiawan.aem.core.models.MyModel in the repository.".

I assumed the it not work because the bundle is not exists. So I tried to upload it manual via console, but get the "

error 500 java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle."

What do you mean by lacks of metadata, Is it different to install the bundle from publisher?

VeenaVikraman
Community Advisor
Community Advisor
August 28, 2017

Chek This java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle - while installing bundle in server  .

     Also, as far as I know if anything works fine in author should work proper in publish too. Can you share a sample code ? May be we can try to replicate the issue ?

Thanks

Veena

VeenaVikraman
Community Advisor
Community Advisor
August 28, 2017

Hi Jefferson

          The issue should not be with your code. It has to do something with the way the maven project or the bundle is created. If you can share a sample project with the issue still replicable , it would really help

Level 2
August 28, 2017

Thanks for reply @veena_07, here is my code GitHub - jeffersonsetiawan/demo-aem

VeenaVikraman
Community Advisor
Community Advisor
August 28, 2017

Hi Jeff

  

    I downloaded the package , built it using mvn clean install -P autoInstallPackage and replicated the same to publish. I can see the bundles installed and active in publish . Do you think there is any issue with your publish ? Do you want to try it in a new publish server ?