Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Error when attempting to override my_account.jsp
I am trying to override my_account.jsp and have been unsuccessful. I am following this guide: https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/overriding-a-modules-jsps along with this example: https://github.com/liferay/liferay-blade-samples/tree/7.0/gradle/overrides/module-jsp-override. I am using IntelliJ + Gradle + Liferay Plugin.
I believe that I have nearly all of it set up correctly, but am pretty sure my bnd.bnd file is wrong. I've tried numerous combinations of Bundle-SymbolicName, Fragment-Host, and the Fragment-Host bundle-version, but to no avail. Here is my bnd.bnd file code:

This is the error I keep getting when deploying my module:

Hoping someone can help me out. Thanks!
I believe that I have nearly all of it set up correctly, but am pretty sure my bnd.bnd file is wrong. I've tried numerous combinations of Bundle-SymbolicName, Fragment-Host, and the Fragment-Host bundle-version, but to no avail. Here is my bnd.bnd file code:

This is the error I keep getting when deploying my module:

Hoping someone can help me out. Thanks!
The correct notation to specify the version number of the fragment host is to use an equals sign and not a double colon.So in your case it would be
Fragment-Host: com.liferay.product.navigation.user;bundle-version="3.0.3"
Ah! Thank you! That took care of the third of those three errors, however the other two still remain. Any more ideas?
I guess, your bundle version is wrong. What does gogo shell say when you execute the following command?
lb "Product Navigation User"
lb "Product Navigation User"
I actually used a similar command the other day to check my Bundle Version and noticed it was wrong. I also read somewhere that my symbolic name should be more different from that of the fragment host, so I tweaked that as well:
Now when I enter the command you mentioned, I see this:

And here is that command with the "-s" added:
If I am reading that correctly, ID 629 is the module I am trying to override, while 1225 is my override. Because 629's version is 3.0.2, that is what I put in my bundle-version for Fragment-Host is it not? I am also not sure was ID 1110 is, perhaps it's a cached version of my previously named module, but I don't know.


And here is that command with the "-s" added:

If I am reading that correctly, ID 629 is the module I am trying to override, while 1225 is my override. Because 629's version is 3.0.2, that is what I put in my bundle-version for Fragment-Host is it not? I am also not sure was ID 1110 is, perhaps it's a cached version of my previously named module, but I don't know.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™