RE: Error when attempting to override my_account.jsp

Cam Schnackel, modified 5 Years ago. New Member Posts: 5 Join Date: 11/19/19 Recent Posts
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!
thumbnail
Dominik Marks, modified 5 Years ago. Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts
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"
Cam Schnackel, modified 5 Years ago. New Member Posts: 5 Join Date: 11/19/19 Recent Posts
Ah! Thank you! That took care of the third of those three errors, however the other two still remain. Any more ideas?
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I guess, your bundle version is wrong. What does gogo shell say when you execute the following command?
lb "Product Navigation User"
Cam Schnackel, modified 5 Years ago. New Member Posts: 5 Join Date: 11/19/19 Recent Posts
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.