0

在 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.
4

1 回答 1

0

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

于 2016-02-24T11:47:20.050 回答