I have simple OSGi application using Configuration Admin, running well in localhost WebSphere Liberty Profile. After it is published to Bluemix; ConfiguranAdmin cannot be reached. It seems that OSGi ConfigurationAdmin is not enabled in Liberty Profile/Bluemix. Can you confirm it?
Answer by Brian DePradine (274) | Jan 14, 2015 at 06:50 AM
Configuration Admin should work fine in Bluemix. How did you push your application to Bluemix. Today, you cannot push OSGi applications to Bluemix as stand-alone applications. You must push a server package or server directory, with the server pre-configured for OSGI applications.
I am using Eclipse Plugin for Bluemix to select the localhost Liberty server, within which is installed the EBA; and push to Bluemix. Do I miss anything?
Afterwards, I create server package zip using "server package --include=all". And, using CF push to upload to bluemix. It returns errors as: "The pushed server is incorrectly packaged. Use the command 'server package -- include=usr' to package server.....App staging failed in the buildpack compile phase"
You need to package the server with --include=usr instead. You do not need to deploy/include the Liberty binaries.
Which version of Liberty Profile, should we use? V8.5.5.2 or V8.5.5.4? or does not matter?
Answer by Justdoit (22) | Jan 26, 2015 at 09:38 PM
I finally get this resolved. I pushed with Eclipse for Bluemix; working well. My previous problem was: my local Liberty Profile was incorrectly configured - I did not use Liberty with SPI, in the Plug-in Development Target Envionment.
Were you following any specific Bluemix instructions that need to be corrected?
No, there is no Bluemix related configuration required. I simply fix my RAD preference; and pushed via "Eclipse plugin for Bluemix".
application-bnd problem with liberty + OSGI 5 Answers
OSGI web application to develop a jaxrs-2.0 application with Liberty on Bluemix 0 Answers
System property from env variable in Liberty 1 Answer
Using jaxrs 2.0 with Jersey on IBM WebSphere Liberty Buildpack 1 Answer
Why WEB-INF\lib\*jar become a file after cf push to bluemix? 3 Answers