Message Boards

ServiceBuilder Liferay 7.3 - PersistenceConstants

Kevin Neibarger, modified 4 Years ago.

ServiceBuilder Liferay 7.3 - PersistenceConstants

Regular Member Posts: 105 Join Date: 2/2/18 Recent Posts

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??