在liferay 6.2中构建服务时出错

时间:2016-02-24 09:50:31

标签: spring-mvc liferay-6 liferay-ide spring-portlet-mvc liferay-service-builder

在liferay 6.2中构建服务时,我得到的错误就像它依赖于“e / hunsicker / jalopy / Jalopy”。不确定它是否真的需要依赖或错过了一些东西。我使用spring MVC作为底层portlet框架。

<service-builder package-path="com.san.portlet.record">
<author>San</author>
<namespace>po_san</namespace>
<entity name="LMSBook" local-service="true" remote-service="false">
    <column name="bookId" type="long" primary="true" />
<column name="bookTitle" type="String" />
<column name="author" type="String" />
<column name="createDate" type="Date" />
</entity>

构建时的错误是

[taskdef] Could not load definitions from resource aQute/bnd/ant/taskdef.properties. It could not be found.
build-service:
[jar] Building MANIFEST-only jar: C:\san\portal\liferay-plugins-sdk-6.2\portlets\Record-portlet\build-service-classpath.jar
[delete] Deleting: C:\san\portal\liferay-plugins-sdk-6.2\portlets\Record-portlet\build-service-classpath.jar.manifest
[java] Java Result: 1
[delete] Deleting: C:\san\portal\liferay-plugins-sdk-6.2\portlets\Record-portlet\build-service-classpath.jar
[delete] Deleting: C:\san\portal\liferay-plugins-sdk-6.2\portlets\Record-portlet\ServiceBuilder.temp
    [echo] Loading jar:file:/C:/san/portal/server/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
    [echo] Loading jar:file:/C:/san/portal/server/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
    [echo] Loading jar:file:/C:/san/portal/server/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
    [echo] Building LMSBook
    [echo] Exception in thread "main" java.lang.NoClassDefFoundError: de/hunsicker/jalopy/Jalopy
    [echo]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:390)
    [echo]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:365)
    [echo]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder._createActionableDynamicQuery(ServiceBuilder.java:1745)
    [echo]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:731)
    [echo]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:228)
    [echo] Caused by: java.lang.ClassNotFoundException: de.hunsicker.jalopy.Jalopy
    [echo]  at java.net.URLClassLoader$1.run(Unknown Source)
    [echo]  at java.security.AccessController.doPrivileged(Native Method)
    [echo]  at java.net.URLClassLoader.findClass(Unknown Source)
    [echo]  at java.lang.ClassLoader.loadClass(Unknown Source)
    [echo]  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    [echo]  at java.lang.ClassLoader.loadClass(Unknown Source)
    [echo]  ... 5 more

BUILD FAILED
C:\selva\portal\liferay-plugins-sdk-6.2\build-common-plugin.xml:249: Service Builder generated exceptions.

1 个答案:

答案 0 :(得分:0)

jalopy依赖项存在于ivy.xml中。我已下载最新版本。它现在正在运作