The error is correct - you have managed.class.path defined as a path, not a fileset. Move the id="managed.class.path" attribute to the fileset directly, rather than wrapping it in a path.
Ben -----Original Message----- From: Sommers, Elizabeth [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 1:09 PM To: 'user@ant.apache.org' Subject: War task I am trying to build a war. The files that should be included in the lib are in a fileset defined by <path id="managed.class.path"> <fileset dir="${M2_REPO}"> <include name="log4j/log4j/1.2.6/log4j-1.2.6.jar"/> <include name="springframework/spring-web/1.2.5/spring-web-1.2.5.jar"/> <include name="net/sourceforge/jexcelapi/jxl/2.5.7/jxl-2.5.7.jar"/> <include name="c3p0/c3p0/0.9.0/c3p0-0.9.0.jar"/> ... </fileset> </path> I can't figure out how to include this. I am getting an error of managed.class.path doesn't denote a zipfileset or a fileset My war target is <target name="war" description="Create payload webapp"> <mkdir dir="${sys.dir}" /> <delete file="${sys.dir}/${project.distname}.war" /> <war warfile="${sys.dir}/${project.distname}.war" webxml="docroot/WEB-INF/web.xml"> <lib refid="managed.class.path" /> <lib dir="${sys.dir}"> <include name="${project.distname}.jar" /> </lib> <webinf dir="docroot/WEB-INF"> <include name="**/*" /> <exclude name="**/web.xml" /> </webinf> <!-- enable for deploy to tomcat: --> <!--metainf dir="docroot/META-INF"> <include name="**/*"/> </metainf--> <fileset dir="docroot"> <include name="css/**/*.css" /> <include name="images/**/*" /> <include name="javascript/*.js" /> <include name="*.jsp" /> </fileset> </war> </target> Thanks Liz Sommers [EMAIL PROTECTED] ____________________________ http://www.pragmatics.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]