>Conor wrote:

>The location is a file path, and not a URL. Try that and let me know if
>you still have problems.

Yeah, I had a file path originally, but I was experimenting. It would be good if the documentation, if not the syntax could reflect what was expected where. eg, Name / Required / Type in those handy tables. I know it says its a "file" but that's still ambiguous enough. Its like most things, when its working, you don't care how good the docs are (overall I'd say they're pretty good) when it isn't you need all the help you can get :)

Anyway, I think I figured out what's up:

This doesn't work:

<target name="ejb-jar" depends="ejb-classes">
    <ejbjar srcdir="${ejbstaging.dir}"
            basenameterminator="." >
        <pathelement location="${ejb.library}" />
      <support dir="${ejbstaging.dir}">
        <include name="**/*.class" />
      <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
           location="D:\java\weblogic classes\weblogic\ejb20\dd\xml\ejb11-jar.dtd" />
      <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
           location="D:\java\weblogic classes\weblogic\ejb20\dd\xml\weblogic600-ejb-jar.dtd" />
      <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence//EN"
           location="D:\java\weblogic classes\weblogic\ejb20\cmp11\rdbms\weblogic-rdbms11-persistence-600.dtd" />
 <!--    <weblogic destdir="${output.dir}"
                rebuild="false" >
          <pathelement path="${ejbstaging.dir}" />
          <pathelement location="${ejb.library}" />
      </weblogic> -->                          


If I remove the comment around the <weblogic> element it works fine. No other changes. So it looks like <dtd> requires <weblogic> to be present. (there may be other things that'll make it work, I guess). Of course, it may be more complex than this ... using <weblogic> starts another JVM does it not? With a different classpath...?

In any case, I can't get a vanilla

<ejbjar> <dtd/> </ejbjar> task to execute.

Is that a bug?