Mikael Hansen wrote:
> Hi
>
> I have a target like this:
>
> <target name="beans-jboss" depends="xdoclet-generate">
> <javac srcdir="src/ejb/src">
> </javac>
> <ejbjar descriptordir="src/ejb/descriptor" srcdir="src/ejb/src"
> destdir="src/ejb/deploy" naming="ejb-name"
> flatdestdir="true">
> <jboss destdir="${jboss.deploy}/"/>
> <include name="**/jboss.xml"/>
> <include name="**/ejb-jar.xml"/>
> <dtd publicId="-//JBoss//DTD JBOSS//EN"
>location="http://localhost/DTD/jboss.dtd"/>
> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
>2.0//EN" location="http://localhost/DTD/ejb-jar_2_0.dtd"/>
> </ejbjar>
> </target>
>
> The xdoclet-generate target generates deployment descriptors (jboss.xml
> and ejb-jar.xml) as well as the home and remote interface java files from
> the bean implementation using Xdoclet.
>
> When I run this task I get the following error, but the strange thing is
> that the jar file is created, named correctly, and deployed succesfully.
> Why does this error appear?
>
NPE isn't nice but it comes about because you have told ejbjar to process
the jboss descriptors. ejbjar only processes the ejb descriptors and will
pickup the associated jboss descriptors by association. Remove the line
<include name="**/jboss.xml"/>
Conor
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>