|
From: Milen D. <mdy...@la...> - 2004-01-09 08:08:26
|
Erik Itter wrote:
> in eclipse i allways get
>
> C:\java\eclipse\workspace\webmonitoring\build.xml:119: Can't create a
> deploymentdescriptor element
> under ejbdoclet. Make sure the jar file containing the corresponding
> subtask class is on the
> classpath specified in the <taskdef> that defined {2}.
>
>
>
> where is that task defined (what do i need to add to the classpath)?
I have had similar problem and it turned out that I was missing J2EE
jars in my class path.
Currently I have something like this in my builds:
[ . . . snip . . . ]
<property environment="env"/>
<!-- JBoss -->
<property name="jboss.server" value="default"/>
<property name="jboss.lib.dir" value="${env.JBOSS_HOME}/lib"/>
<property name="jboss.server.lib.dir"
value="${env.JBOSS_HOME}/server/${jboss.server}/lib"/>
<property name="jboss.client.lib.dir" value="${env.JBOSS_HOME}/client"/>
<path id="jboss.class.path">
<fileset dir="${jboss.lib.dir}" includes="**/*.jar" />
<fileset dir="${jboss.client.lib.dir}" includes="**/*.jar" />
<fileset dir="${jboss.server.lib.dir}" includes="**/*.jar" />
</path>
<!-- STRUTS -->
<property name="struts.lib.dir" value="${env.STRUTS_HOME}/lib"/>
<path id="struts.class.path">
<fileset dir="${struts.lib.dir}" includes="**/*.jar" />
</path>
<!-- XDOCLET -->
<property name="xdoclet.lib.dir" value="${env.XDOCLET_HOME}/lib"/>
<path id="xdoclet.class.path">
<fileset dir="${xdoclet.lib.dir}" includes="**/*.jar" />
</path>
<path id="full.class.path">
<path refid="jboss.class.path"/>
<path refid="struts.class.path"/>
<path refid="xdoclet.class.path"/>
</path>
<target name="prepare">
<taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="full.class.path"
/>
</target>
[ . . . snip . . . ]
If you are not using JBoss then use jars from whatever your application
server is.
Hope this helps!
Milen
|