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 3954] New: - blgenclient task fails when debug is enabled
Date Wed, 03 Oct 2001 23:03:46 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=3954>.
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=3954

blgenclient task fails when debug is enabled

           Summary: blgenclient task fails when debug is enabled
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: eric@altaserv.net


Generating a client jar using the blgenclient task (or the borland task with
generateclient="on") fails when debug is enabled.  Here is code from my
build.xml file that causes the failure:

    <blgenclient ejbjar="${staging.lib.dir}/${component.jar}"
                 clientjar="${staging.lib.dir}/${component.clientjar}"
                 debug="true"
                 mode="java">

This code fails when it attempts to run java2iiop.  The
BorlandGenerateClient.executeJava() method sets the invalid flag "-trace" (line
192), which is not a valid option to java2iiop.  A better solution is to pass
"-long" instead of "-short" to java2iiop, which will give full detail.  The
Borland generateclient options are detailed here:
http://www.borland.com/techpubs/books/appserver/appserver45/users-guide/ias.html#49927

Here is the abbreviated error output:

     [java] Creating client jar
/home/eric/src/WebApp/EjbTier/staging/debug-jdk1.3.1/lib/EjbTierclient.jar,
Analyzing source jar EjbTier.jar, Building client jar for EjbTier.jar,
Generating client stubs for jar EjbTier.jar, Error type: Usage: Bad arguments
passed to java2iiop
     [java] Thread: Thread[main,5,main]
     [java] Stack trace:
     [java] com.inprise.ejb.util.GeneratorException: Usage: Bad arguments passed
to java2iiop
     [java] 	at com.inprise.ejb.util.StubGenerator.generate(StubGenerator.java:239)
     [java] 	at
com.inprise.ejb.util.ClientGenerator.generate_buildJar(ClientGenerator.java:301)
     [java] 	at
com.inprise.ejb.util.ClientGenerator.generate(ClientGenerator.java:147)
     [java] 	at com.inprise.ejb.util.ClientGenerator.generate(ClientGenerator.java:74)
     [java] 	at
com.inprise.server.commandline.EJBUtilities.doGenerateClient(EJBUtilities.java:640)
     [java] 	at
com.inprise.server.commandline.EJBUtilities.generateClient(EJBUtilities.java:442)
     [java] 	at
com.inprise.server.commandline.EJBUtilities.main(EJBUtilities.java:1546)

Mime
View raw message