The following comment has been added to this issue: Author: Andrew Stevens Created: Tue, 31 May 2005 6:24 PM Body: Judging by the stacktrace, Ant is unable to open some jar file (which are just Zips with a different extension) to read the classes. Have you tested all the files in the classpath (i.e. all the jars in ${xdocletlib} and *everything* in ${lib}) with "jar tvf" to make sure they're valid zips and readable? If there's, say, some other text file in that lib directory, that might be the problem.
Also, do those <echo> tasks *inside* the webdoclet actually work? I'd have expected the WebDocletTask to throw up an error as they're not (XDoclet) subtasks. I suspect the other problem is stopping it from getting that far, though. --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-505?page=comments#action_16634 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-505 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-505 Summary: executing xdoclet.modules.web.WebDocletTask results in infinite loop Type: Bug Status: Open Priority: Major Original Estimate: 0 minutes Time Spent: Unknown Remaining: 0 minutes Project: XDoclet Components: Web Module Versions: 1.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Sai S Prasad Created: Fri, 30 May 2003 7:54 AM Updated: Tue, 31 May 2005 6:24 PM Environment: Windows 2000, J2SDK 1.4.1_02, Ant 1.5.3-1, XDoclet 1.2 beta 2 Description: I am new to XDoclet and tried to run "xdoclet.modules.web.WebDocletTask" to create web.xml. The build.xml is listed below: ----------------------------- <?xml version="1.0"?> <project name="wlWebdoclet" default="deploy"> <property file="build.properties"/> <path id="cpath"> <fileset dir="${lib}"/> </path> <path id="xdocpath"> <path refid="cpath"/> <fileset dir="${xdocletlib}"> <include name="*.jar"/> </fileset> </path> <target name="init"> <mkdir dir="${output}/war" /> <mkdir dir="${dest}" /> </target> <target name="clean"> <delete dir="${output}/war" /> <delete> <fileset dir="${WEBINF}"> <include name="**/*.tld" /> <include name="**/web.xml" /> </fileset> </delete> <delete> <fileset dir="${dest}"> <exclude name="**/*.java" /> </fileset> </delete> <delete dir="${webapps}/${appname}" /> <delete dir="${webapps}/${appname}.war" /> </target> <target name="compile" depends="init"> <javac srcdir="${src}" destdir="${dest}" debug="true" deprecation="true"> <classpath refid="cpath"/> </javac> </target> <target name="generateDD"> <echo>${xdocpath}</echo> <taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask" classpathref="xdocpath" /> <echo> about to webdoclet</echo> <webdoclet destdir="${dest}"> <fileset dir="${src}"> <include name="**/*Servlet.java" /> <include name="**/*Tag.java" /> </fileset> <echo> about to dd</echo> <deploymentdescriptor servletspec="2.3" destdir="${WEBINF}" > <taglib uri="mytaglib" location="WEB-INF/tlds/mytaglib.tld" /> </deploymentdescriptor> <echo> about to jsptaglib</echo> <jsptaglib jspversion="1.2" destdir="${WEBINF}/tlds" shortname="basic" filename="mytaglib.tld"/> </webdoclet> </target> <target name="package" depends="clean,init,compile,generateDD"> <war destfile="${output}/war/${appname}.war" webxml="${WEBINF}/web.xml"> <fileset dir="${docroot}"> <exclude name="**/build.xml" /> <exclude name="**/*.bat" /> <exclude name="**/build.properties" /> <exclude name="**/web.xml" /> <exclude name="**/*.java"/> <exclude name="**/*.class"/> </fileset> <lib dir="${WEBINF}/lib"> <exclude name="jdbc1.jar"/> </lib> <classes dir="${WEBINF}/classes"> <exclude name="**/*.java"/> </classes> </war> </target> <target name="deploy" depends="package"> <copy file="${output}/war/${appname}.war" todir="${webapps}" /> </target> </project> ------------------------------- build.properties: src=./src webapps=/bea7.0/user_domains/sweepDomain/applications xdocletlib=/xdoclet1.2b2/lib output=./tmp WEBINF=./web/WEB-INF basic.servlet.hi=mom appname=webdoclet docroot=./web #=/j2sdkee1.3/lib lib=/j2sdkee1.3/lib basic.servlet.bye=dude dest=${WEBINF}/classes ------------------------------- When I tried to run "ant deploy", I get the exception below running in a infinite loop: Buildfile: build.xmlinit:compile:generateDD:[webdoclet] java.util.zip.ZipException: error in opening zip file[webdoclet] at java.util.zip.ZipFile.open(Native Method)[webdoclet] at java.util.zip.ZipFile.<init>(ZipFile.java:110)[webdoclet] at java.util.zip.ZipFile.<init>(ZipFile.java:125)[webdoclet] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:867)[webdoclet] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:796)[webdoclet] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)[webdoclet] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)[webdoclet] at org.apache.log4j.Category.getInstance(Category.java:514)[webdoclet] at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:153)[webdoclet] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)[webdoclet] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)[webdoclet] at xdoclet.util.LogUtil.getLog(LogUtil.java:26)[webdoclet] at xdoclet.loader.ModuleFinder.findModules(ModuleFinder.java:114)[webdoclet] at xdoclet.DocletTask.registerModules(DocletTask.java:533)[webdoclet] at xdoclet.DocletTask.createDynamicElement(DocletTask.java:332)[webdoclet] at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java:510)[webdoclet] at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:239)[webdoclet] at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:122)[webdoclet] at org.apache.tools.ant.Task.perform(Task.java:340)[webdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)[webdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)[webdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)[webdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)[webdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:609)[webdoclet] at org.apache.tools.ant.Main.start(Main.java:196)[webdoclet] at org.apache.tools.ant.Main.main(Main.java:235) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel