Ant problems

Anybody ever seen messages similar to the ones below. I can no longer build our project in Intellij using Ant after switching to XP from Windows 2000 after a hard drive failure.

I have no idea what is happening since others in my office are running XP and don't have this problem. I've given up using Intellij to build and have switched to using a batch file with the same build.xml file, JDK, and classpath settings as that used in my Intellij project. I've tried about everything I can think of to fix this problem and it persists.

Grant


java.io.IOException: CreateProcess: javac -nowarn -classpath C:\projects\emallport\modules\base\ejbcgen;C:\projects\emallport\modules\base\commons-logging.jar;C:\projects\emallport\modules\base\commons-digester.jar;C:\projects\emallport\modules\base\commons-beanutils.jar;C:\projects\emallport\modules\base\log4j.jar;C:\projects\emallport\modules\base\commons-collections.jar;C:\projects\emallport\modules\base\log4j.properties;C:\projects\emallport\modules\base\commons-logging.properties;C:\BEA\jdk131_03\jre\lib\rt.jar;C:\BEA\jdk131_03\jre\lib\i18n.jar;C:\BEA\jdk131_03\jre\lib\sunrsasign.jar;C:\BEA\jdk131_03\jre\classes;C:\projects\emallport\modules\base\build\classes;C:\projects\emallport\lib\aspectjrt-1.0.5.jar;C:\projects\emallport\lib\cactus-1.4.1.jar;C:\projects\emallport\lib\classes12.zip;C:\projects\emallport\lib\commons-beanutils.jar;C:\projects\emallport\lib\commons-collections.jar;C:\projects\emallport\lib\commons-digester.jar;C:\projects\emallport\lib\commons-httpclient.jar;C:\projects\emallport\lib\commons-logging.jar;C:D
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.]]>(Win32Process.java:61)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:546)
at java.lang.Runtime.exec(Runtime.java:472)
at java.lang.Runtime.exec(Runtime.java:438)
at weblogic.utils.Executable.exec(Executable.java:208)
at weblogic.utils.Executable.exec(Executable.java:133)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:545)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:363)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:294)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
at weblogic.ejbc20.runBody(ejbc20.java:464)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:21)
Exec failed .. exiting
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1

Ant build completed with 7 errors and 2 warnings at 4:22:08 PM in 19s

0
3 comments

I found this problem if "javac" was not defined in the path. This was
especially true when compiling the weblogic ejb components. However, this
problem was independent of IDEA.

dino

"Grant Lewis" wrote in message news:815180.1062707941016.JavaMail.itn@is.intellij.net... Anybody ever seen messages similar to the ones below. I can no longer build our project in Intellij using Ant after switching to XP from Windows 2000 after a hard drive failure. I have no idea what is happening since others in my office are running XP and don't have this problem. I've given up using Intellij to build and have switched to using a batch file with the same build.xml file, JDK, and classpath settings as that used in my Intellij project. I've tried about everything I can think of to fix this problem and it persists. Grant java.io.IOException: CreateProcess: javac -nowarn -classpath C:\projects\emallport\modules\base\ejbcgen;C:\projects\emallport\modules\bas e\commons-logging.jar;C:\projects\emallport\modules\base\commons-digester.ja r;C:\projects\emallport\modules\base\commons-beanutils.jar;C:\projects\emall port\modules\base\log4j.jar;C:\projects\emallport\modules\base\commons-colle ctions.jar;C:\projects\emallport\modules\base\log4j.properties;C:\projects\e mallport\modules\base\commons-logging.properties;C:\BEA\jdk131_03\jre\lib\rt .jar;C:\BEA\jdk131_03\jre\lib\i18n.jar;C:\BEA\jdk131_03\jre\lib\sunrsasign.j ar;C:\BEA\jdk131_03\jre\classes;C:\projects\emallport\modules\base\build\cla sses;C:\projects\emallport\lib\aspectjrt-1.0.5.jar;C:\projects\emallport\lib \cactus-1.4.1.jar;C:\projects\emallport\lib\classes12.zip;C:\projects\emallp ort\lib\commons-beanutils.jar;C:\projects\emallport\lib\commons-collections. jar;C:\projects\emallport\lib\commons-digester.jar;C:\projects\emallport\lib \commons-httpclient.jar;C:\projects\emallport\lib\commons-logging.jar;C:D at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.]]>(Win32Process.java:61)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:546)
at java.lang.Runtime.exec(Runtime.java:472)
at java.lang.Runtime.exec(Runtime.java:438)
at weblogic.utils.Executable.exec(Executable.java:208)
at weblogic.utils.Executable.exec(Executable.java:133)
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a:545)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:363)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:294)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
at weblogic.ejbc20.runBody(ejbc20.java:464)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:21)
Exec failed .. exiting
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1

Ant build completed with 7 errors and 2 warnings at 4:22:08 PM in 19s



0

Grant:

I think something changed with the allowable path size in XP over 2K
because this problem pops up alot with NetBeans while using an external
app-server link (e.g. Tomcat 4.1). The command path gets SO LONG, that
it ends up getting concatonated, which is an invalid command, and then
you end up with an exception. If you look at the command IDEA tried to
execute, you see the same behavior here.

The solution I found (after no one else finding one) was to reinstall
Tomcat into a much shorter dir... I never (an no one else on the list)
figured out how to increase the size of an allowable command line or a
better work around than that.

You might want to try and chop down your classpath if you can.

Best,
-Riyad

Grant Lewis wrote:

Anybody ever seen messages similar to the ones below. I can no longer build our project in Intellij using Ant after switching to XP from Windows 2000 after a hard drive failure.

I have no idea what is happening since others in my office are running XP and don't have this problem. I've given up using Intellij to build and have switched to using a batch file with the same build.xml file, JDK, and classpath settings as that used in my Intellij project. I've tried about everything I can think of to fix this problem and it persists.

Grant


java.io.IOException: CreateProcess: javac -nowarn -classpath C:\projects\emallport\modules\base\ejbcgen;C:\projects\emallport\modules\base\commons-logging.jar;C:\projects\emallport\modules\base\commons-digester.jar;C:\projects\emallport\modules\base\commons-beanutils.jar;C:\projects\emallport\modules\base\log4j.jar;C:\projects\emallport\modules\base\commons-collections.jar;C:\projects\emallport\modules\base\log4j.properties;C:\projects\emallport\modules\base\commons-logging.properties;C:\BEA\jdk131_03\jre\lib\rt.jar;C:\BEA\jdk131_03\jre\lib\i18n.jar;C:\BEA\jdk131_03\jre\lib\sunrsasign.jar;C:\BEA\jdk131_03\jre\classes;C:\projects\emallport\modules\base\build\classes;C:\projects\emallport\lib\aspectjrt-1.0.5.jar;C:\projects\emallport\lib\cactus-1.4.1.jar;C:\projects\emallport\lib\classes12.zip;C:\projects\emallport\lib\commons-beanutils.jar;C:\projects\emallport\lib\commons-collections.jar;C:\projects\emallport\lib\commons-digester.jar;C:\projects\emallport\lib\commons-httpc

lient.jar;C:\projects\emallport\lib\commons-logging.jar;C:D

at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:61)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:546)
at java.lang.Runtime.exec(Runtime.java:472)
at java.lang.Runtime.exec(Runtime.java:438)
at weblogic.utils.Executable.exec(Executable.java:208)
at weblogic.utils.Executable.exec(Executable.java:133)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:545)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:363)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:294)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
at weblogic.ejbc20.runBody(ejbc20.java:464)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:21)
Exec failed .. exiting
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1
C:\projects\emallport\modules\base\build.xml:131: Java returned: 1

Ant build completed with 7 errors and 2 warnings at 4:22:08 PM in 19s


0

Dino,

You were on target. I did not have my java bin directory added to my PATH environment variable. I added it and the problem went away in IDEA.

Thanks,

Grant

0

Please sign in to leave a comment.