Message Boards

Web Fragments: Version of Host

thumbnail
Irina Russkaya, modified 3 Years ago.

Web Fragments: Version of Host

Junior Member Posts: 44 Join Date: 12/2/16 Recent Posts

Hi,

I have an asset publisher web fragment with the reference to the host: Fragment-Host: com.liferay.asset.publisher.web; bundle-version="[1.0.0, 2.0.0)"

After Liferay patching I got the actual Fix Pack. At the Liferay start, I get a warning: Host com.liferay.asset.publisher.web=bundle-version="[1.0.0,2.0.0)" for this fragment/require bundle cannot be found on the classpath. In the Felix Web console, the host bundle has version 1.10.23. Should I update the version in the web fragment or do I have to leave it as it is? 

 

Thank you!

 

 

thumbnail
Dominik Marks, modified 3 Years ago.

RE: Web Fragments: Version of Host

Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts

As usual the answer would be: it depends...

The version range determines to which host you want to be compatible. So if your customization is compatible to version 1.0.0 you can keep it like that. If your customization is working only on version 1.10.23 and above you should update the entry.

thumbnail
Irina Russkaya, modified 3 Years ago.

RE: RE: Web Fragments: Version of Host

Junior Member Posts: 44 Join Date: 12/2/16 Recent Posts

Thank you. 

I thought that the reason for the classpath warning is the updated version of the host bundle that comes with the fix pack.