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.