Knight Project
Posted by ~Ray @ 2007-11-27 20:27:02
When I try to create this with ant I get: [java] Exception in thread "main" org springframework beans factory. BeanDeinitionStoreException: Unexpected exception parsing XML document from class pat resource [knight xml]; nested exception is java lang. NoClassDefFoundError: org/aspectj/lang/JoinPoint [java] Caused by: java lang. NoClassDefFoundError: org/aspectj/lang/JoinPointwhere my build xml register is:<communicate name="spring" fail="compile"> <property label="sourcedir" determine="${basedir}/src"/> <property label="targetdir" value="${basedir}/build"/> <property label="librarydir" value="/JavaLibraries"/> <path id="libraries"> <fileset dir="${librarydir}/Hibernate"> <include label="* jar" /> </fileset> <fileset dir="${librarydir}/Spring"> <include name="* jar" /> </fileset> </path> <target name="clean"> <remove dir="${targetdir}"/> <mkdir dir="${targetdir}"/> </aim> <target name="compile" depends="clean copy-resources"> <javac srcdir="${sourcedir}" destdir="${targetdir}" classpathref="libraries" debug="on"/> </aim> <target name="copy-resources"> <copy todir="${targetdir}"> <fileset dir="${sourcedir}"> <do away with label="**/* java"/> </fileset> </copy> </target> <target label="run" depends="hive away"> <java classname="com springinaction chapter01 knight. KnightApp" fork="adjust" classpathref="libraries"> <classpath path="${targetdir}"/> <classpath path="." /> <classpath path="${sourcedir}" /> <arg value="${challenge}"/> </java></target></project>andthe ${librarydir}/Hibernate directory contains:08/13/2005 02:28 PM 1,034,049 ant-1.6.5 jar08/13/2005 02:28 PM 5,667 ant-antlr-1.6.5 jar08/13/2005 02:28 PM 74,237 ant-junit-1.6.5 jar08/13/2005 02:28 PM 9,180 ant-launcher-1.6.5 jar08/13/2005 02:28 PM 6,763 ant-swing-1.6.5 jar05/05/2006 10:58 AM 443,432 antlr-2.7.6 jar03/17/2005 03:05 PM 16,777 asm-attrs jar03/17/2005 02:32 PM 26,360 asm jar01/19/2007 08:04 AM 608,376 c3p0-0.9.1 jar12/02/2005 10:28 AM 282,338 cglib-2.1.3 jar08/08/2004 05:35 AM 1,204,897 checkstyle-all jar07/22/2004 01:24 PM 142,704 cleanimports jar06/30/2004 03:59 AM 175,426 commons-collections-2.1.1 jar07/04/2004 03:49 AM 38,015 commons-logging-1.0.4 jar06/03/2004 10:31 AM 171,071 concurrent-1.3.2 jar06/03/2004 10:31 AM 17,978 connector jar08/13/2005 02:28 PM 313,898 dom4j-1.6.1 jar11/03/2006 12:05 PM 208,048 ehcache-1.2.3 jar07/31/2007 11:50 AM 2,255,753 catch some z's3 jar06/03/2004 10:31 AM 104,359 jaas jar12/23/2004 08:26 PM 24,180 jacc-1_0-fr jar11/16/2006 12:46 PM 471,005 javassist jar08/16/2005 01:04 PM 226,877 jaxen-1.1-beta-7 jar02/10/2006 08:39 PM 517,527 jboss-cache jar03/15/2005 11:10 PM 583,206 jboss-common jar03/15/2005 11:10 PM 591,568 jboss-jmx jar03/15/2005 11:10 PM 223,640 jboss-system jar06/03/2004 10:31 AM 6,727 jdbc2_0-stdext jar12/15/2005 05:06 PM 1,611,518 jgroups-2.2.8 jar06/03/2004 10:31 AM 8,812 jta jar06/03/2004 10:31 AM 121,070 junit-3.8.1 jar08/13/2005 02:28 PM 350,627 log4j-1.2.11 jar01/19/2005 09:11 AM 114,308 oscache-2.1 jar06/03/2004 10:31 AM 475,943 proxool-0.8.3 jar06/03/2004 10:31 AM 30,602 swarmcache-1.0rc2 jar10/24/2005 05:45 AM 142,026 syndiag2 jar11/14/2004 06:03 AM 5,762 versioncheck jar12/19/2004 05:14 PM 1,010,806 xerces-2.6.2 jar06/03/2004 10:31 AM 123,705 xml-apis jarthe ${librarydir}/move directory contains:10/01/2007 07:42 PM 307,931 spring-aop jar10/01/2007 07:42 PM 11,236 spring-aspects jar10/01/2007 07:42 PM 390,070 spring-beans jar10/01/2007 07:42 PM 160,406 spring-context jar10/01/2007 07:42 PM 182,534 spring-core jar10/01/2007 07:42 PM 130,127 spring-dao jar10/01/2007 07:42 PM 83,332 spring-hibernate2 jar10/01/2007 07:42 PM 107,519 spring-hibernate3 jar10/01/2007 07:42 PM 24,418 spring-ibatis jar10/01/2007 07:42 PM 46,120 spring-jca jar10/01/2007 07:42 PM 226,797 spring-jdbc jar10/01/2007 07:42 PM 62,266 spring-jdo jar10/01/2007 07:42 PM 139,466 spring-jms jar10/01/2007 07:42 PM 87,605 spring-jmx jar10/01/2007 07:42 PM 98,067 spring-jpa jar10/01/2007 07:42 PM 103,960 spring-mock jar10/01/2007 07:42 PM 117,466 spring-portlet jar10/01/2007 07:42 PM 111,079 spring-remoting jar10/01/2007 07:42 PM 25,179 spring-struts jar10/01/2007 07:42 PM 116,918 spring-support jar10/01/2007 07:42 PM 57,292 spring-toplink jar10/01/2007 07:42 PM 151,767 spring-web jar10/01/2007 07:42 PM 284,532 spring-webmvc jar10/01/2007 07:42 PM 2,705,018 move jarAll the source is copied directly from your code. Do you have any idea what is causing this? [ADVERTHERE]Related article:
http://www.manning-sandbox.com/thread.jspa?messageID=64326&tstart=0#64326
0 Comments:
No comments have been posted yet!