I'm switching from doing my Java dev on linux to Mac OSX. I also just recently started using xdoclet to generate my ejb's and web applications, which worked great on linux. However, I'm running into some problems running the same build files on my new mac.
First, the problem:
I'm trying to use the webdoclet task to generate my war and some jsp taglibs. When I run my ant task to do this, I get the following error:
neutron--> ant -buildfile build2.xml Buildfile: build2.xml
war:
[webdoclet] Make sure the jar file containing the webdoclet class is on the classpath specified in the <taskdef> that defined {2}. These classes are needed in order to generate correct output.
[webdoclet] at xdoclet.DocletTask.checkClass(DocletTask.java:501)
[webdoclet] at xdoclet.modules.web.WebDocletTask.validateOptions(WebDocletTask.java:22)
[webdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:53)
[webdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[webdoclet] at org.apache.tools.ant.Task.perform(Task.java:341)
[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)
BUILD FAILED file:/opt/projects/grt/GrtWeb/build2.xml:18: Unexpected error
Total time: 7 seconds neutron-->
Now some background info:
I am running Mac OSX 10.2.4 with java 1.4.1 DP10. I have xdoclet-1.2.b2 installed at /usr/local/xdoclet-1.2b2/lib. The java DP10 is stored in the normal place (/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/), although I created a symlink at /usr/local/java to point to that to save myself some typing. I refer to the symlink in my JAVA_HOME env variable.
Here is the build file I am using:
<project name="GrtWeb" default="war">
<property name="defaultroot" value="./defaultroot"/>
<property name="src.dir" value="./src"/>
<path id="xdoclet.class.path">
<fileset dir="/usr/local/xdoclet-1.2b2/lib">
<include name="*.jar"/>
</fileset>
</path> <target name="war"
description="builds war file"> <taskdef name="webdoclet"
classname="xdoclet.modules.web.WebDocletTask"
classpathref="xdoclet.class.path"
/> <webdoclet destdir="${defaultroot}/WEB-INF">
<fileset dir="${src.dir}/com/aol/nettools/grtweb">
<include name="*.java"/>
<include name="**/*java"/>
</fileset>
<deploymentdescriptor servletspec="2.3"
mergeDir="${base.dir}/merge"/>
<jsptaglib destinationfile="grt_tags.tld"
destdir="${defaultroot}/WEB-INF/tlds"
taglibversion="1.0"
jspversion="1.2"
shortname="grt"
/>
</webdoclet>
</target>
</project>The error message i'm getting indicates a classpath problem, but I don't see what I'm doing wrong. I'm using the example from the docs. I've spent a bunch of time trying to find out why webdoclet can't find the jar file that contains itself. If I change the path 'xdoclet.class.path' to
<path id="xdoclet.class.path">
<pathelement path="/usr/local/xdoclet/lib/xdoclet-web-module-1.2b2.jar"/>
</path>
and run I get
BUILD FAILED
file:/opt/projects/grt/GrtWeb/build2.xml:15: taskdef class xdoclet.modules.web.WebDocletTask cannot be found
however, if I do 'jar tf /usr/local/xdoclet/lib/xdoclet-web-module-1.2b2.jar', it clearly is part of the jar I reference.
I've spent a bunch of time trying to figure this out, but I can't seem to find what the problem is. I did a search through the mailing list archives, but I didn't see anyone talk about this problem. Can anyone help me out with this? I really like my mac, and I would like to do my java dev on it if possible.
Thanks!
Dave Steinbrunn
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
