Search code examples
liferayliferay-6

Service builder doesn't build services for new entities added Liferay


I have a service builder and there are few entitties. Now when I try to add more entities to the service builder and try to build services, the services for this new entity are not getting created.

What should possibly be the problem and how to tackle it?

Another problem that I am facing is the newly created portlets are not shown in the control panel. Earlier i never had any such problems.

Don't know what has happned. I tried restarting the server,refreshing workspace but no use.

EDITED:

CONSOLE OUTPUT

[Console output redirected to file:D:\test\MIS\.metadata\.plugins\com.liferay.ide.eclipse.sdk\sdk.log]
Buildfile: D:\MIS_Portal\liferay-plugins-sdk-6.1.1\portlets\MISPortal-portlet\build.xml
build-service:
     [echo] Loading jar:file:/D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
     [echo] Apr 25, 2013 10:34:16 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [echo] INFO: Global shared lib directory /D:/TEST_MIS_Portal/liferay-plugins-sdk-6.1.1/lib/
     [echo] Apr 25, 2013 10:34:16 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [echo] INFO: Global lib directory /D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/lib/ext/
     [echo] Apr 25, 2013 10:34:16 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [echo] INFO: Portal lib directory /D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/lib/
     [echo] Apr 25, 2013 10:34:17 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [echo] INFO: Properties for portal loaded from [file:/D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
     [echo] Loading jar:file:/D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
     [echo] Loading jar:file:/D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
     [echo] Loading file:/D:/TEST_MIS_Portal/liferay-portal-6.1.1-ce-ga2/totestt-7.0.27/webapps/ROOT/WEB-INF/classes/portal-ext.properties
     [echo] java.lang.RuntimeException: Column employerCity not found
     [echo]     at com.liferay.portal.tools.servicebuilder.Entity.getColumn(Entity.java:62)
     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder._parseEntity(ServiceBuilder.java:4783)
     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:636)
     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:151)
    [mkdir] Created dir: D:\TEST_MIS_Portal\liferay-plugins-sdk-6.1.1\portlets\MISMISPortal-portlet\docroot\WEB-INF\service-classes
compile-java:
     [copy] Copied 9 empty directories to 9 empty directories under D:\TEST_MIS_Portal\liferay-plugins-sdk-6.1.1\portlets\MISMISPortal-portlet\docroot\WEB-INF\service-classes
    [javac] Compiling 86 source files to D:\TEST_MIS_Portal\liferay-plugins-sdk-6.1.1\portlets\MISMISPortal-portlet\docroot\WEB-INF\service-classes
      [zip] Building zip: D:\TEST_MIS_Portal\liferay-plugins-sdk-6.1.1\portlets\MISMISPortal-portlet\docroot\WEB-INF\lib\MISMISPortal-portlet-service.jar
   [delete] Deleting directory D:\TEST_MIS_Portal\liferay-plugins-sdk-6.1.1\portlets\MISMISPortal-portlet\docroot\WEB-INF\service-classes
BUILD SUCCESSFUL
Total time: 7 seconds

Solution

  • I would say check where you are declaring the employerCity in service.xml, that might be the problem since you are getting:

    java.lang.RuntimeException: Column employerCity not found,
    

    may be you are referencing this column incorrectly in some entity or I would suggest check the spelling of the column.