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
ServiceBuilder Liferay 7.3 - PersistenceConstants
Currently using the following
liferay-ce-portal-7.3.6-ga7
tomcat-9.0.40
There is a namespace configuration in the service.xml
<namespace>COMPASS_DB</namespace>
When I build the services a class is built COMPASS_DBPersistenceConstants.java. This class has a method called activate. I'm not sure what this is supposed to do but when I'm deploying MVC portlets that are not my DB-Services modules I get the error
2021-04-12 17:21:21.726 ERROR [Start Level: Equinox Container: 847d2871-a99a-4ced-a41a-81c256e5c8a3][COMPASS_DBPersistenceConstants:93] bundle compass-population-portlet:1.4.0 (1397)[com.healthmap.portlet.compass.service.persistence.impl.constants.COMPASS_DBPersistenceConstants(8816)] : The activate method has thrown an exception
java.lang.IllegalStateException: Incorrect Bundle-SymbolicName for bundle compass-population-portlet
It's throwing this exception because the module symbolic name doesn't match the DB-service symbolic bundle name. Why does this happen? I can see why it checks in the DB-Service module, but why does it do this in other modules??