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
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
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies