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
Service Builder Liferay-Require-SchemaVersion update
Hello,
I am working on a service builder project using Liferay 7.0 and Maven. Up until now I was developing version 0.1.x, which is set in my parent pom and in service builder's bnd.bnd. Today I updated this version to 0.2.0 since I made some bigger changes.
Unfortunately as soon as I make this change the service builder is no longer visible inside Liferay. I even get a successful startup message with the new version but the services don't show up. As soon as I revert to 0.1.x it shows up again.
I already cleaned all tmp/work directories, deployed multiple times and restarted the whole server. No success.
Only clues I found so far are:
Best regards,
Bernd
I am working on a service builder project using Liferay 7.0 and Maven. Up until now I was developing version 0.1.x, which is set in my parent pom and in service builder's bnd.bnd. Today I updated this version to 0.2.0 since I made some bigger changes.
Unfortunately as soon as I make this change the service builder is no longer visible inside Liferay. I even get a successful startup message with the new version but the services don't show up. As soon as I revert to 0.1.x it shows up again.
I already cleaned all tmp/work directories, deployed multiple times and restarted the whole server. No success.
Only clues I found so far are:
- one entry for my portlet with version 0.1.0 in RELEASE_ table of Liferay
- articles about complex Liferay upgrade proccesses
Best regards,
Bernd
Got it to work by deleting all entries related to my service in Liferay's RELEASE_ and SERVICECOMPONENT tables.
I am aware that I loose some Liferay features (rollback to previous version) but I prefere to handle those tasks externally anyways.
Did I miss anything critical?
I am aware that I loose some Liferay features (rollback to previous version) but I prefere to handle those tasks externally anyways.
Did I miss anything critical?
By "significant changes" are you talking about table structure changes?
If so, are you including portal-developer.properties?
If yes to first and no to second, SB schema changes are not automatically deployed, so in order for your service to be up to 0.2.0 you need to write an upgrade step to get from "0.1.0" to "0.2.0" to apply the DDL changes. Enabling portal-developer.properties pulls in the setting to allow SB to apply schema changes, but this is not meant to be used in production.
If so, are you including portal-developer.properties?
If yes to first and no to second, SB schema changes are not automatically deployed, so in order for your service to be up to 0.2.0 you need to write an upgrade step to get from "0.1.0" to "0.2.0" to apply the DDL changes. Enabling portal-developer.properties pulls in the setting to allow SB to apply schema changes, but this is not meant to be used in production.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™