我正在使用Netbeans 7.1.1和玻璃鱼3.1.2服务器。 作为JPA提供商,我决定使用与Netbeans一道装运的ec光线2.3.0。 页: 1 我愿利用幻觉,我的项目由大约45个协会实体班组成,他们之间有许多关系,我决定使用Staving。 此外,“Entity”课程属于单独的“Lib”类项目,而“EJB”项目的持久性是xml。
我已经遵循以下指示:http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving>http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving。
我把ant子放在了建材中(低于)。 使用Netbeans时是否正确? The snippet from Building-impl.xml:
<target name="-post-jar" description="New task definition for EclipseLink static weaving">
<taskdef name="weave" classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask"/>
</target>
<target name="weaving" description="perform weaving" depends="-post-jar">
<weave source="${dist.jar}MyProject.jar"
target="${dist.jar}MyProject_Weaved.jar"
persistenceinfo="${dist.jar}....MyProjectEEMyProject-ejbuildclassesMETA-INFpersistence.xml"
loglevel="FINER">
<classpath>
<pathelement path="${dist.jar}libeclipselink-2.3.0.jar"/>
<pathelement path="${dist.jar}libjavaee-api-6.0.jar"/>
<pathelement path="${dist.jar}libjasypt-1.9.0.jar"/>
<pathelement path="${dist.jar}libjavax.persistence-2.0.jar"/>
<pathelement path="${dist.jar}liborg.eclipse.persistence.jpa.jpql_1.0.0.jar"/>
<pathelement path="${dist.jar}libjoda-time-2.1.jar"/>
<pathelement path="${dist.jar}libjms.jar"/>
</classpath>
</weave>
</target>
道路上的所有jar也都作为图书馆列入Netbeans IDE。 在打上“Clean & Building”时,我现在发现以下错误:
D:workspaceMyProject
bprojectuild-impl.xml:703: taskdef class org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask cannot be found
using the classloader AntClassLoader[]
我在这里错了吗?