James Falkner 10 Years Ago Hey Ray and Miguel, this is fantastic for developers and sysadmins to introspect into their production systems and very conveniently get at Liferay's guts without having to have a full development environment. I can't wait to see the library of scripts that come from this. It'd be great to see a few examples of how to get and (and possibly modify) the Liferay runtime via Liferay APIs in future blog posts! Also, is it possible to install this without having to restart Liferay? Please sign in to reply. Reply as... Cancel Ray Augé James Falkner 10 Years Ago It's possible to install these osgi bundles in Liferay without a restart. Simply drop them into:${liferay.home}/data/osgi/deployHowever, since some properties are required to enable them and the management UIs have not been committed it's quite hard to configure without a restart. However, at a later time, when we do have these management UIs, you should have full ability to manage and configure any new bundles you want to install in the system at runtime. Please sign in to reply. Reply as... Cancel Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel Madhu Yadav Madhu Yadav 8 Years Ago Multiple submits, apologies Please sign in to reply. Reply as... Cancel
Ray Augé James Falkner 10 Years Ago It's possible to install these osgi bundles in Liferay without a restart. Simply drop them into:${liferay.home}/data/osgi/deployHowever, since some properties are required to enable them and the management UIs have not been committed it's quite hard to configure without a restart. However, at a later time, when we do have these management UIs, you should have full ability to manage and configure any new bundles you want to install in the system at runtime. Please sign in to reply. Reply as... Cancel Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel Madhu Yadav Madhu Yadav 8 Years Ago Multiple submits, apologies Please sign in to reply. Reply as... Cancel
Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel
Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel
Madhu Yadav Ray Augé 8 Years Ago Note below properties work for Liferay 6.2 on windowsextra.bundles=file:///D:/apps/felix-framework-4.4.1/modules-for-liferaymodule.framework.initial.bundles=\felix-fileinstall.jar@start,\${extra.bundles}/org.apache.felix.gogo.command-0.14.0.jar@start,\${extra.bundles}/org.apache.felix.gogo.runtime-0.12.1.jar@start,\${extra.bundles}/org.apache.felix.gogo.shell-0.10.0.jar@start,\${extra.bundles}/org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@startmodule.framework.properties.osgi.console=11311Ref: https://www.liferay.com/community/forums/-/message_boards/message/34253865 Please sign in to reply. Reply as... Cancel Madhu Yadav Madhu Yadav 8 Years Ago Multiple submits, apologies Please sign in to reply. Reply as... Cancel
Madhu Yadav Madhu Yadav 8 Years Ago Multiple submits, apologies Please sign in to reply. Reply as... Cancel
(You) 10 Years Ago [...] I have done a huge refactor for most of our OSGi related work, moving the majority of its components to the Liferay plugins SDK. Everything except the graphical admin UI is already in the master... [...] Read More Please sign in to reply. Reply as... Cancel
Dipak Pansheriya 9 Years Ago Hi Ray, This it great article. It helps me understand the OSGI implementation in Liferay.Recently I come across a situation where I need to hooked up whole liferay plateform as OSGI plugin in one of the well define OSGI container. I am using liferay 6.2 CE GA2. Do you have any idea how could we do this?-Hitesh Panchani. Please sign in to reply. Reply as... Cancel Ray Augé Dipak Pansheriya 9 Years Ago Liferay can't easily run inside an osgi framework. It's a very complex app and so the strategy we have currently is to work toward that possibility by first starting to internally consume and osgi container as a child of Liferay instead. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 9 Years Ago That is true, it is very complex and tedious.But that is what the requirement is for my project. I am able to hooked liferay in OSGI container but when I start the server(tomcat) I am getting below error. It will be great if you can help me here.14:41:58,492 ERROR [stop children - Catalina:j2eeType=WebModule,name=//localhost/Liferay,J2EEApplication=none,J2EEServer=none][PortalContextLoaderListener:94] java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:123) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763) at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473) at java.lang.Thread.run(Thread.java:662)14:41:59,564 ERROR [stop children - Catalina:j2eeType=WebModule,name=//localhost/Liferay,J2EEApplication=none,J2EEServer=none][PortalContextLoaderListener:94] java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:45) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:130) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763) at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473) at java.lang.Thread.run(Thread.java:662)[INFO] MLog clients using com.mchange.v2.log.FallbackM Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 9 Years Ago It looks like it's trying to reload the portal webapp.this seems to be much after some other initial error failed to let the portal startup.this message shows no indication of what that is! Also, we don't support running Liferay inside a pure osgi runtime. You need a supported app server. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 9 Years Ago Thanks Ray for quick answer. You are right it is because of jar conflict in OSGI container on which I am trying to run the Liferay Portal.Interesting thing is, I have successfully run Liferay inside external OSGI container but pain point is, it is running extremely slow inside it. It is talking around 20 minutes to load even single page and ext files. It will be great if you provide some hints here to rectify this issue. You are working on OSGI with liferay since long, you might come across this kind of situation before. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 8 Years Ago Thanks Ray!I have read your post on OSGI integration in new Liferay 7. I am curious to know that are you planning to provide support for Eclipse Equinox OSGi container? Are you planning to inject "BuckMinster" support to build liferay as p2 repository like eclipse plugin? Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 8 Years Ago Liferay is using equinox as it's default OSGi framework.No BuckMinster (but you are free to attempt it).We may provide some R5 repositories however. Please sign in to reply. Reply as... Cancel
Ray Augé Dipak Pansheriya 9 Years Ago Liferay can't easily run inside an osgi framework. It's a very complex app and so the strategy we have currently is to work toward that possibility by first starting to internally consume and osgi container as a child of Liferay instead. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 9 Years Ago That is true, it is very complex and tedious.But that is what the requirement is for my project. I am able to hooked liferay in OSGI container but when I start the server(tomcat) I am getting below error. It will be great if you can help me here.14:41:58,492 ERROR [stop children - Catalina:j2eeType=WebModule,name=//localhost/Liferay,J2EEApplication=none,J2EEServer=none][PortalContextLoaderListener:94] java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:123) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763) at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473) at java.lang.Thread.run(Thread.java:662)14:41:59,564 ERROR [stop children - Catalina:j2eeType=WebModule,name=//localhost/Liferay,J2EEApplication=none,J2EEServer=none][PortalContextLoaderListener:94] java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:45) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:130) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763) at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473) at java.lang.Thread.run(Thread.java:662)[INFO] MLog clients using com.mchange.v2.log.FallbackM Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 9 Years Ago It looks like it's trying to reload the portal webapp.this seems to be much after some other initial error failed to let the portal startup.this message shows no indication of what that is! Also, we don't support running Liferay inside a pure osgi runtime. You need a supported app server. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 9 Years Ago Thanks Ray for quick answer. You are right it is because of jar conflict in OSGI container on which I am trying to run the Liferay Portal.Interesting thing is, I have successfully run Liferay inside external OSGI container but pain point is, it is running extremely slow inside it. It is talking around 20 minutes to load even single page and ext files. It will be great if you provide some hints here to rectify this issue. You are working on OSGI with liferay since long, you might come across this kind of situation before. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 8 Years Ago Thanks Ray!I have read your post on OSGI integration in new Liferay 7. I am curious to know that are you planning to provide support for Eclipse Equinox OSGi container? Are you planning to inject "BuckMinster" support to build liferay as p2 repository like eclipse plugin? Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 8 Years Ago Liferay is using equinox as it's default OSGi framework.No BuckMinster (but you are free to attempt it).We may provide some R5 repositories however. Please sign in to reply. Reply as... Cancel
Hiteshkumar Panchani Ray Augé 9 Years Ago That is true, it is very complex and tedious.But that is what the requirement is for my project. I am able to hooked liferay in OSGI container but when I start the server(tomcat) I am getting below error. It will be great if you can help me here.14:41:58,492 ERROR [stop children - Catalina:j2eeType=WebModule,name=//localhost/Liferay,J2EEApplication=none,J2EEServer=none][PortalContextLoaderListener:94] java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:123) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763) at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473) at java.lang.Thread.run(Thread.java:662)14:41:59,564 ERROR [stop children - Catalina:j2eeType=WebModule,name=//localhost/Liferay,J2EEApplication=none,J2EEServer=none][PortalContextLoaderListener:94] java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:45) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:130) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763) at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473) at java.lang.Thread.run(Thread.java:662)[INFO] MLog clients using com.mchange.v2.log.FallbackM Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 9 Years Ago It looks like it's trying to reload the portal webapp.this seems to be much after some other initial error failed to let the portal startup.this message shows no indication of what that is! Also, we don't support running Liferay inside a pure osgi runtime. You need a supported app server. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 9 Years Ago Thanks Ray for quick answer. You are right it is because of jar conflict in OSGI container on which I am trying to run the Liferay Portal.Interesting thing is, I have successfully run Liferay inside external OSGI container but pain point is, it is running extremely slow inside it. It is talking around 20 minutes to load even single page and ext files. It will be great if you provide some hints here to rectify this issue. You are working on OSGI with liferay since long, you might come across this kind of situation before. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 8 Years Ago Thanks Ray!I have read your post on OSGI integration in new Liferay 7. I am curious to know that are you planning to provide support for Eclipse Equinox OSGi container? Are you planning to inject "BuckMinster" support to build liferay as p2 repository like eclipse plugin? Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 8 Years Ago Liferay is using equinox as it's default OSGi framework.No BuckMinster (but you are free to attempt it).We may provide some R5 repositories however. Please sign in to reply. Reply as... Cancel
Ray Augé Hiteshkumar Panchani 9 Years Ago It looks like it's trying to reload the portal webapp.this seems to be much after some other initial error failed to let the portal startup.this message shows no indication of what that is! Also, we don't support running Liferay inside a pure osgi runtime. You need a supported app server. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 9 Years Ago Thanks Ray for quick answer. You are right it is because of jar conflict in OSGI container on which I am trying to run the Liferay Portal.Interesting thing is, I have successfully run Liferay inside external OSGI container but pain point is, it is running extremely slow inside it. It is talking around 20 minutes to load even single page and ext files. It will be great if you provide some hints here to rectify this issue. You are working on OSGI with liferay since long, you might come across this kind of situation before. Please sign in to reply. Reply as... Cancel Hiteshkumar Panchani Ray Augé 8 Years Ago Thanks Ray!I have read your post on OSGI integration in new Liferay 7. I am curious to know that are you planning to provide support for Eclipse Equinox OSGi container? Are you planning to inject "BuckMinster" support to build liferay as p2 repository like eclipse plugin? Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 8 Years Ago Liferay is using equinox as it's default OSGi framework.No BuckMinster (but you are free to attempt it).We may provide some R5 repositories however. Please sign in to reply. Reply as... Cancel
Hiteshkumar Panchani Ray Augé 9 Years Ago Thanks Ray for quick answer. You are right it is because of jar conflict in OSGI container on which I am trying to run the Liferay Portal.Interesting thing is, I have successfully run Liferay inside external OSGI container but pain point is, it is running extremely slow inside it. It is talking around 20 minutes to load even single page and ext files. It will be great if you provide some hints here to rectify this issue. You are working on OSGI with liferay since long, you might come across this kind of situation before. Please sign in to reply. Reply as... Cancel
Hiteshkumar Panchani Ray Augé 8 Years Ago Thanks Ray!I have read your post on OSGI integration in new Liferay 7. I am curious to know that are you planning to provide support for Eclipse Equinox OSGi container? Are you planning to inject "BuckMinster" support to build liferay as p2 repository like eclipse plugin? Please sign in to reply. Reply as... Cancel Ray Augé Hiteshkumar Panchani 8 Years Ago Liferay is using equinox as it's default OSGi framework.No BuckMinster (but you are free to attempt it).We may provide some R5 repositories however. Please sign in to reply. Reply as... Cancel
Ray Augé Hiteshkumar Panchani 8 Years Ago Liferay is using equinox as it's default OSGi framework.No BuckMinster (but you are free to attempt it).We may provide some R5 repositories however. Please sign in to reply. Reply as... Cancel
(You) 6 Years Ago [...] “Liferay is a complex beast with an intricate network of features, so many features in fact that they occasionally have such indistinct lines such as finding the where one feature ends and another... [...] Read More Please sign in to reply. Reply as... Cancel
Haseena Begum 6 Years Ago Hi Ray,I installed the blade CLI and Gradle plugin for Eclipse. I have created my first portlet through blade cli and imported it in gradle task of eclipse.When i run the deploy tasks in eclipse I get the below output but unfortunately portlet is not shown in the sample category in portalWorking Directory:Gradle User Home: Gradle Distribution: Gradle wrapper from target buildGradle Version: 3.4Java Home: C:\Program Files\Java\jdk1.8.0_111JVM Arguments: NoneProgram Arguments: NoneGradle Tasks: deploy:compileJava UP-TO-DATE:buildCSS NO-SOURCE:processResources UP-TO-DATE:transpileJS SKIPPED:configJSModules SKIPPED:replaceSoyTranslation NO-SOURCE:wrapSoyAlloyTemplate SKIPPED:classes UP-TO-DATE:jar UP-TO-DATE:deploy UP-TO-DATEBUILD SUCCESSFULTotal time: 0.484 secsAnd when i run the "blade deploy" command am getting the below error:Error0. deploy: Unable to connect to gogo shell on localhost:11311I followed your steps to try to resolve my gogo shell error I am not having telnet connection as am working in my local machine set up. P.S: Am working on Liferay6.2.Please help in resolving this issue Please sign in to reply. Reply as... Cancel Ray Augé Haseena Begum 6 Years Ago Liferay 6.2 doesn't support the OSGi portlet model used by blade. You need Liferay DXP (7.0). Please sign in to reply. Reply as... Cancel
Ray Augé Haseena Begum 6 Years Ago Liferay 6.2 doesn't support the OSGi portlet model used by blade. You need Liferay DXP (7.0). Please sign in to reply. Reply as... Cancel