ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "danny tjahjadi" <danny.tjahj...@dingoblue.com.au>
Subject RE: Usage: [ejbc] problem
Date Fri, 13 Jul 2001 01:29:14 GMT
Hi Conor,

I've downloaded the latest nightly build from
/builds/jakarta-ant/nightly/2001-07-11.
I've rerun ant with -debug as suggested and the following error is
displayed:

   [ejbjar] Checking if weblogic Jar needs to be rebuilt for jar
MedullaEntitie
sEJB.jar
   +Task: java
   [ejbjar] Calling weblogic.ejbc for F:\danny.tjahjadi\Medulla -
POC\Code\dist
\deploy\MedullaEntities-generic.jar
     [ejbc] Forking java -classpath
"C:\j2sdkee1.3\lib\j2ee.jar;C:\bea\wlserver
6.0\lib\weblogic.jar;F:\danny.tjahjadi\Medulla -
POC\Code\dist\lib\MedullaConfi
g.jar" weblogic.ejbc "F:\danny.tjahjadi\Medulla -
POC\Code\dist\deploy\MedullaE
ntities-generic.jar" "F:\danny.tjahjadi\Medulla -
POC\Code\dist\deploy\MedullaE
ntitiesEJB.jar"
Execute:Java13CommandLauncher: java -classpath
"C:\j2sdkee1.3\lib\j2ee.jar;C:\b
ea\wlserver6.0\lib\weblogic.jar;F:\danny.tjahjadi\Medulla -
POC\Code\dist\lib\M
edullaConfig.jar" weblogic.ejbc "F:\danny.tjahjadi\Medulla -
POC\Code\dist\depl
oy\MedullaEntities-generic.jar" "F:\danny.tjahjadi\Medulla -
POC\Code\dist\depl
oy\MedullaEntitiesEJB.jar"
     [ejbc] java.io.IOException: CreateProcess:
c:\jdk1.3.0_02\bin\javac.exe -c
lasspath
"c:\jdk1.3.0_02\jre\lib\rt.jar;c:\jdk1.3.0_02\jre\lib\i18n.jar;c:\jdk1
.3.0_02\jre\lib\sunrsasign.jar;c:\jdk1.3.0_02\jre\classes;C:\j2sdkee1.3\lib\
j2e
e.jar;C:\bea\wlserver6.0\lib\weblogic.jar;F:\danny.tjahjadi\Medulla -
POC\Code\
dist\lib\MedullaConfig.jar;F:\danny.tjahjadi\Medulla -
POC\Code\bin\ejbcgen" -n
owarn -d "F:\danny.tjahjadi\Medulla - POC\Code\bin\ejbcgen"
"F:\danny.tjahjadi\
Medulla -
POC\Code\bin\ejbcgen\com\dingoblue\cis\entities\ejb\CustomerComputerT
ypeBeanHomeImpl_WLStub.java" "F:\danny.tjahjadi\Medulla -
POC\Code\bin\ejbcgen\
com\dingoblue\cis\entities\ejb\CustomerISPBeanHomeImpl_WLSkel.java"
"F:\danny.t
jahjadi\Medulla -
POC\Code\bin\ejbcgen\com\dingoblue\cis\entities\ejb\CustomerA
geRangeBeanEOImpl_WLStub.java" "F:\danny.tjahjadi\Medulla -
POC\Code\bin\ejbcge
n\com\dingoblue\cis\entities\ejb\InternationalCountryBeanEOImpl_WLSkel.java"
"F
:\danny.tjahjadi\Medulla -
POC\Code\bin\ejbcgen\com\dingoblue\cis\entities\ejb\
CustomerAddressBeanEOImpl_WLSkD
     [ejbc]     at java.lang.Win32Process.create(Native Method)
     [ejbc]     at java.lang.Win32Process.<init>(Win32Process.java:66)
     [ejbc]     at java.lang.Runtime.execInternal(Native Method)
     [ejbc]     at java.lang.Runtime.exec(Runtime.java:551)
     [ejbc]     at java.lang.Runtime.exec(Runtime.java:477)
     [ejbc]     at java.lang.Runtime.exec(Runtime.java:443)
     [ejbc]     at weblogic.utils.Executable.exec(Executable.java:144)
     [ejbc]     at weblogic.utils.Executable.exec(Executable.java:108)
     [ejbc]     at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Com
pilerInvoker.java:422)
     [ejbc]     at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvo
ker.java:267)
     [ejbc]     at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:
201)
     [ejbc]     at weblogic.ejbc20.runBody(ejbc20.java:342)
     [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:81)
     [ejbc]     at weblogic.ejbc.main(ejbc.java:20)
     [ejbc] Exec failed .. exiting

BUILD FAILED

F:\danny.tjahjadi\Medulla - POC\Code\bin\MedullaEntities_build.xml:70:
Exceptio
n while calling weblogic.ejbc. Details: Ejbc reported an error
--- Nested Exception ---
Ejbc reported an error

Total time: 12 minutes 33 seconds


Line 70 happens to be:
<ejbjar srcdir="${build}" descriptordir="${entities.descriptor}"
basejarname="MedullaEntities">

My environment settings are as follows:
ANT_HOME=d:\jakarta-ant-1.4alpha
PATH=c:\jdk1.3.0_02\bin;c:\j2sdkee1.3\bin;d:\jakarta-ant-1.4alpha\bin;d:\jik
es\bin

There are 470 source files being built and the MedullaEntitiesEJB.jar is
built with 485 files.

Regards,
Danny

-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
Sent: Thursday, 12 July 2001 19:43
To: ant-user@jakarta.apache.org
Subject: Re: Usage: [ejbc] problem


Danny,

Can you please do the following.
1. Try a recent nightly build. I fixed some EJB-2.0 related stuff after the
1.3 release.

2. Run ant -debug to see what command line is being generated for the ejbc
command.

Conor

----- Original Message -----
From: "danny tjahjadi" <danny.tjahjadi@dingoblue.com.au>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, July 12, 2001 6:29 PM
Subject: Usage: [ejbc] problem


> Hi,
>
> I'm trying to build my application using ejbjar. However I keep getting
the
> following error (it's been driving me nuts for the last couple of days):
>
> ejbc.entities:
>    [ejbjar] building MedullaEntities.jar with 485 files
>      [ejbc] Usage: java weblogic.ejbc20 [options] <source jar file>
<target
> dir
> ectory or jar file>
>      [ejbc]
>      [ejbc] where options include:
>      [ejbc]     -help             Print this help message.
>      [ejbc]     -version          Print version information.
>      [ejbc]     -idl              Generate idl for remote interfaces
>      [ejbc]     -idlOverwrite     Always overwrite existing IDL files
>      [ejbc]     -idlVerbose       Display verbose information for IDL
>      [ejbc]                       generation
>      [ejbc]     -idlDirectory <dir> Specify the directory where IDL files
> will be
>      [ejbc]                       created (default : current directory)
>      [ejbc]     -iiop             Generate CORBA stubs
>      [ejbc]     -iiopDirectory <dir> Specify the directory where IIOP
stub
> files
>      [ejbc]                       will be written (default : current
>      [ejbc]                       directory)
>      [ejbc]     -keepgenerated    Keep the generated .java files.
>      [ejbc]     -compiler <javac> Java compiler to use.
>      [ejbc]     -g                Compile debugging info into class file.
>      [ejbc]     -debug            Compile with debugging on.
>      [ejbc]     -nowarn           Compile without warnings.
>      [ejbc]     -verbose          Compile with verbose output.
>      [ejbc]     -deprecation      Warn about deprecated calls.
>      [ejbc]     -normi            Passed through to Symantec's sj.
>      [ejbc]     -classpath <path> Classpath to use during compilation.
>      [ejbc]
>      [ejbc] Unrecognized option or flag, -
>      [ejbc] Java Result: 1
>
> My ant build file that produces the error is:
>   <target name="ejbc.entities" depends="compile.entitiesAll">
>     <ejbjar srcdir="${build}" descriptordir="${entities.descriptor}"
> basejarname="MedullaEntities">
>       <include name="**/*ejb-jar.xml"/>
>       <exclude name="**/*weblogic*.xml"/>
>       <support dir="${build}">
>         <include name="**/*.class"/>
>       </support>
>       <weblogic destdir="${dist.deploy}"
>                 keepgeneric="true"
>                 suffix=".jar"
>                 rebuild="false"
>                 newCMP="true">
>         <classpath>
>           <path refid="entities.class.path"/>
>           <pathelement location="${build}"/>
>         </classpath>
>         <wlclasspath>
>           <path refid="entities.class.path"/>
>         </wlclasspath>
>       </weblogic>
>     </ejbjar>
>   </target>
>
>



Mime
View raw message