留言板
Liferay7hooks
Hi All
I am trying to do override of liferay7 hooks jsp, so for that i created a module and i changed the bnd.bnd file according to my requirement .after that i performed gradle task like clean and deploy then i moved the newly created jar file form workspace/bundles/osgi/modules to workspace/bundles/deploy folder after that console showing some issues like:
Processing Mymodule.jar
STOPPED com.liferay.dynamic.data.lists.form.web_1.0.10 [432]
STARTED com.liferay.dynamic.data.lists.form.web_1.0.10 [432]
FrameworkEvent ERROR
org.osgi.framework.BundleException: Invalid operation on a fragment.
so i am not getting why i am getting FrameworkEvent ERROR or org.osgi.framework.BundleException: Invalid operation on a fragment
so how i resolve these issues please help me.
I am trying to do override of liferay7 hooks jsp, so for that i created a module and i changed the bnd.bnd file according to my requirement .after that i performed gradle task like clean and deploy then i moved the newly created jar file form workspace/bundles/osgi/modules to workspace/bundles/deploy folder after that console showing some issues like:
Processing Mymodule.jar
STOPPED com.liferay.dynamic.data.lists.form.web_1.0.10 [432]
STARTED com.liferay.dynamic.data.lists.form.web_1.0.10 [432]
FrameworkEvent ERROR
org.osgi.framework.BundleException: Invalid operation on a fragment.
so i am not getting why i am getting FrameworkEvent ERROR or org.osgi.framework.BundleException: Invalid operation on a fragment
so how i resolve these issues please help me.
Hi Sushil,
Thanks for giving Replay.
According to your suggestion i followed all process like in bnd.bnd file:
Bundle-SymbolicName: dynamic.form1
Bundle-Version: 1.0.0
Fragment-Host:com.liferay.dynamic.data.lists.form.web;bundle-version="1.0.10"
-sources: true
-jsp: *.jsp,*.jspf
-plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
After that in Gogo i run this command :
lb -s | grep dynamic.form1
i am getting output like :
1407|Resolved | 10|dynamic.form1 (1.0.0)
true
still showing this module in Resolve state so plz help me how i achieve Resolve state to Active state
Thanks for giving Replay.
According to your suggestion i followed all process like in bnd.bnd file:
Bundle-SymbolicName: dynamic.form1
Bundle-Version: 1.0.0
Fragment-Host:com.liferay.dynamic.data.lists.form.web;bundle-version="1.0.10"
-sources: true
-jsp: *.jsp,*.jspf
-plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
After that in Gogo i run this command :
lb -s | grep dynamic.form1
i am getting output like :
1407|Resolved | 10|dynamic.form1 (1.0.0)
true
still showing this module in Resolve state so plz help me how i achieve Resolve state to Active state
Ravi Shankar:
1407|Resolved | 10|dynamic.form1 (1.0.0)
true
still showing this module in Resolve state so plz help me how i achieve Resolve state to Active state
A fragment is never Active, as it just gets attached with fragment host. So successfully deployed fragment will remain in Resolved status.
Just visit the web page you tried to hook, Your modifications should be reflected.
Regards,
Gaurav