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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
are you sure, that your bundle has been built correctly? Especially you should check, that the MANIFEST.MF file contains a proper SymbolicName header.
Jörg
Is your OSGi bundle located in the package under /install ?
Anyhow - I am not a fan of using Curl - seen weird issues like this.
In my view - using Maven is the best way to build bundles and manage them
You can use the Content Package Maven Plugin to manage packages:
https://docs.adobe.com/docs/en/cq/5-6-1/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html
We have many community articles that show how to use Maven to build OSGi bundles.
Creating your first AEM Service using an Adobe Maven Archetype project
Please refer to the AEM Community page for a listing of many other resources that describe how to build bundles for many different use cases:
https://helpx.adobe.com/marketing-cloud/experience-manager.html
Views
Replies
Total Likes
Hi,
are you sure, that your bundle has been built correctly? Especially you should check, that the MANIFEST.MF file contains a proper SymbolicName header.
Jörg