Problem with Ant and ejbjar

Hi,

When I want to use ejbjar to create an ejb for weblogic from ANT.
I've got this error :

java.io.IOException: CreateProcess: javac -nowarn -classpath "D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\JavaComponents\ejbcgen;D:\java\jdk1.3.1\jre\lib\rt.jar;D:\java\jdk1.3.1\jre\lib\i18n.jar;D:\java\jdk1.3.1\jre\lib\sunrsasign.jar;D:\java\jdk1.3.1\jre\classes;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesCore;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesSB;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesLFS;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesCar;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesHotel;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesContent;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesHomepage;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesEauto;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\build\classesCheckout;D:\EKA\Opodo\Opodo CVS Directory\Shopping Basket\Sherpa\Config\lfs\sapient-lib\XFMS_Java_API.jD at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.]]>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:477)
at java.lang.Runtime.exec(Runtime.java:443)
at weblogic.utils.Executable.exec(Executable.java:209)
at weblogic.utils.Executable.exec(Executable.java:134)
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.compileEJB(EJBCompiler.java:246)
at weblogic.ejbc20.runBody(ejbc20.java:360)
at weblogic.utils.compiler.Tool.run(Tool.java:79)
at weblogic.ejbc20.main(ejbc20.java:460)


Here is my call in ant :

  • <target name="air-ejb-jar">

]]>
<include name="*/-ejb-jar.xml"/>
<exclude name="*/weblogic*.xml"/>
]]>*

Classpath is huge. There is a lot of jar to include.
I guess that the problem was my classpath which is too long ! But when I test it with ant commandline in shell it's working
Is there a limitation in the command ling from IntelliJ ?

Am I right to think that ?
What's going wrong ?

Please sign in to leave a comment.