java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle - while installing bundle in server | Community
Skip to main content
New Participant
December 23, 2015
Solved

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

  • December 23, 2015
  • 2 replies
  • 1512 views

Hi all,

We have to install and start bundles and packages using shell script.

cURL  script used for installing Packages :

   curl -u admin:${ADMIN_PASSWORD} -F file=@"${AEM_DEPLOY_DIR}/${PACKAGE_ZIP}.zip" -F name="${AEM_DEPLOY_DIR}/${PACKAGE_ZIP}" -F force=true -F install=true http://${SERVER_NAME}:${SERVER_PORT}/crx/packmgr/service.jsp

cURL  script used for installing and starting Bundles:

curl -u admin:${ADMIN_PASSWORD} -F action=install -F bundlestartlevel=20 -F bundlefile=@"${AEM_DEPLOY_DIR}/${BUNDLE_JAR}.jar"  http://${SERVER_NAME}:${SERVER_PORT}/system/console/bundles
curl -u admin:${ADMIN_PASSWORD} http://${SERVER_NAME}:${SERVER_PORT}/system/console/bundles/org.apache.sling.scripting.jsp -F action=start

While running the wrapper script, we are able to install the packages successfully but not the bundle. Please find below error from log file :

2015-12-23_01-32-30 [Info]: Starting bundle install... 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /system/console/bundles. Reason:
<pre>    java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>

Please let me know how to install the bundle.

Regards,

Swathi.

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 GK-007

To confirm there is no problem with the jar,please upload the .jar file from Felix console and check the same.

Run the shell script only for installing bundle and don't include the bundle start cURL statement and package installation.

And also use build cURL statement before installing/starting the bundle.

curl -u admin:admin -F bundleHome=/apps/training/src/com.day.sample -F descriptor=/apps/training/src/com.day.sample/com.day.sample.bnd http://localhost:4502/libs/crxde/build

-Kishore

2 replies

GK-007
GK-007Accepted solution
New Participant
January 4, 2016

To confirm there is no problem with the jar,please upload the .jar file from Felix console and check the same.

Run the shell script only for installing bundle and don't include the bundle start cURL statement and package installation.

And also use build cURL statement before installing/starting the bundle.

curl -u admin:admin -F bundleHome=/apps/training/src/com.day.sample -F descriptor=/apps/training/src/com.day.sample/com.day.sample.bnd http://localhost:4502/libs/crxde/build

-Kishore

smacdonald2008
New Participant
January 4, 2016

Is the OSGi bundle (the JAR) located in the package under /install folder? When you install the package using package manager - is the OSGi deployed and placed in active state?