ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25826] New: - ejbjar NullPointer Exception
Date Tue, 30 Dec 2003 17:26:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25826>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25826

ejbjar NullPointer Exception

           Summary: ejbjar NullPointer Exception
           Product: Ant
           Version: 1.6.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: damon@sicore.org


For some reason the jarfile.getParentFile() returns null (docs indicate this is valid when
the 
pathname does not indicate a parent directory.  This works fine in Ant 1.5.3.

When attempting to use the ejbjar tag I encounter the following:

java.lang.NullPointerException
        at 
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.writeJar(GenericDeploymentTool
.java:788)
        at 
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.processDescriptor(GenericDeplo
ymentTool.java:479)
        at org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java:640)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)


Here is my build.xml snippet:

<ejbjar srcdir="${build.dir}"
                cmpversion="2.0"
                flatdestdir="true"
                descriptordir="${meta-inf.dir}"
                dependency="full"
                basejarname="my_ejb"
                manifest="src/metadata/my/MANIFEST.MF">
                  <include name="ejb-jar.xml"/>
                  <include name="${configuration.dir}/**"/>
                  <exclude name="jboss.xml"/>
                  <jboss destdir="${jars.dir}/"/>
                  <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
                       location="${ejb_2_0.dtd.name}"/></ejbjar>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message