ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kailash.Subraman...@alltel.com
Subject ejbjar task
Date Wed, 18 Sep 2002 14:01:15 GMT
Greetings,
            I am using the ejbjar task to generate the ejbs for weblogic. I
am getting the following error.

/ebppvobstore/vobs/ATLSVCS/build/ANTBUILD.xml:55: A valid destination directory must be specified
using the "destdir" attribute.
        at org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.validateConfigured(GenericDeploymentTool.java)
        at org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.validateConfigured(WeblogicDeploymentTool.java)
        at org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java)
        at org.apache.tools.ant.Task.perform(Task.java)
        at org.apache.tools.ant.Target.execute(Target.java)
        at org.apache.tools.ant.Target.performTasks(Target.java)
        at org.apache.tools.ant.Project.executeTarget(Project.java)
        at org.apache.tools.ant.Project.executeTargets(Project.java)
        at org.apache.tools.ant.Main.runBuild(Main.java)
        at org.apache.tools.ant.Main.start(Main.java)
        at org.apache.tools.ant.Main.main(Main.java)

      The snippet of the code is,

             <ejbjar srcdir="${SRC_DIR}"
                        naming="ejb-name"
                        descriptordir="${SRC_DIR}"
                        destdir="/tmp/ejbs" >
        <weblogic destdir="${SRC_DIR}/src/com/alltel/service/serviceproxy/ejb" />
        <classpath refid="EJBclass.path" />

        <exclude name="**/weblogic-ejb-jar.xml"/>
        <include name="**/ejb-jar.xml"/>

        <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
        location="/ebppvobstore/vobadm_work/ejb-jar_2_0.dtd"/>

        <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
        location="/ebppvobstore/vobadm_work/ejb-jar_2_0.dtd"/>

        <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
        location="/ebppvobstore/vobadm_work/weblogic-ejb-jar.dtd"/>

        </ejbjar>

            I am not able to figure out what exactly the problem is. The "destdir" is a valid
one and I tried using different valid "destdir"
attribute. The classpath is
CLASSPATH=:/opt/devlib/jaf1.0.1/activation.jar:$ANT_HOME/lib/optional.jar:$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/xml-apis.jar:$ANT_HOME
/lib/NetComponents.jar:

            I checked the files in classpath also. The java compilation works fine. I am using
"Ant version 1.5Beta2".
Any help would be greatly appreciated. I am stuck here.

Thx in advance.
Kailash



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message