我有一个服务构建者,并且几乎没有权利。 现在,当我尝试向服务构建器添加更多实体并尝试构建服务时,不会创建此新实体的服务。
问题可能是什么以及如何解决?
我面临的另一个问题是新创建的portlet未显示在控制面板中。 早些时候我从未遇到任何此类问题。
不知道什么是幸福的。我尝试重新启动服务器,刷新工作区但没有用。
编辑:
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
答案 0 :(得分:0)
我会说检查您在employerCity
中声明service.xml
的位置,这可能是您遇到的问题:
java.lang.RuntimeException: Column employerCity not found,
可能是您在某个实体中错误地引用了此列,或者我建议您检查列的拼写。
答案 1 :(得分:0)
在lib里面你有---&gt; /HelloPortlet-portlet/docroot/WEB-INF/lib/HelloPortlet-portlet-service.jar 删除项目中的上述jar 在service.xml中完成更改后再次构建服务并刷新 Goto数据库检查您的表,如果您根据修改后的service.xml看到它没有刷新。