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 4822] New: - ejbjar task bombs when using naming attribute
Date Tue, 13 Nov 2001 02:50:08 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=4822>.
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=4822

ejbjar task bombs when using naming attribute

           Summary: ejbjar task bombs when using naming attribute
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: jdfagan@hotmail.com


Get below crash when trying to use ejbjar.  When I use basejarname attribute, 
it works.  Getting rid of basejarname and using the naming attribute (and 
setting it to "directory"), it bombs.

Sample Ant code:
  <target name="ejbjar-calculator" depends="compile">
    <echo message="Creating calculator-ejb.jar file..."/>

    <ejbjar srcdir="${build.dir}/classes"
            destdir="${staging.dir}"
            descriptordir="${dd.dir}/calculator"
            naming="directory"
            flatdestdir="true">
      <classpath>
        <pathelement location="${build.dir}/classes"/>
      </classpath>
      <include name="ejb-jar.xml"/>
      <exclude name="weblogic*.xml"/>
      <weblogic destdir="${staging.dir}"
                compiler="${build.compiler.exec}"
                keepgenerated="${debug}"
                newCMP="true">
        <wlclasspath refid="wl.classpath"/>
      </weblogic>
    </ejbjar>
  </target>

Exception trace:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1525)
        at org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.getJ
arBaseName(GenericDeploymentTool.java:512)
        at org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.proc
essDescriptor(GenericDeploymentTool.java:317)
        at org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java
:525)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

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


Mime
View raw message