You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ilango_g <il...@yahoo.com> on 2008/11/16 22:56:16 UTC

trouble deploying using build.xml -

I have a Java project in Eclipse and I am trying to build and deploy the
project. Unfortunately my build.xml is failing  with two errors.

Buildfile: C:\Users\i\workspace\RREJB\build.xml
clean:
cleanall:
     [echo] ##### Cleaning common #####
clean:
   [delete] Deleting directory C:\Users\i\workspace\RREJB\common\build
     [echo] ##### Cleaning ejb #####
clean:
   [delete] Deleting directory C:\Users\i\workspace\RREJB\ejb\build
     [echo] ##### Cleaning webapp #####
clean:
compile:
     [echo] ##### Building common #####
clean:
compile:
    [mkdir] Created dir: C:\Users\i\workspace\RREJB\common\build
    [mkdir] Created dir: C:\Users\i\workspace\RREJB\common\build\classes
    [javac] Compiling 7 source files to
C:\Users\i\workspace\RREJB\common\build\classes
jar:
    [mkdir] Created dir:
C:\Users\i\workspace\RREJB\common\build\distribution
      [jar] Building jar:
C:\Users\i\workspace\RREJB\common\build\distribution\common.jar
all:
     [echo] ##### Building ejb #####
clean:
compile:
    [mkdir] Created dir: C:\Users\i\workspace\RREJB\ejb\build
    [mkdir] Created dir: C:\Users\i\workspace\RREJB\ejb\build\classes
    [javac] Compiling 1 source file to
C:\Users\i\workspace\RREJB\ejb\build\classes
build-ejb-jar:
    [mkdir] Created dir: C:\Users\i\workspace\RREJB\ejb\build\distribution

BUILD FAILED
C:\Users\i\workspace\RREJB\build.xml:69: The following error occurred while
executing this line:
C:\Users\i\workspace\RREJB\ejb\build.xml:56:
C:\Users\i\workspace\RREJB\ejb\META-INF not found.

Total time: 2 seconds
------

Any assistance in helping me spot the error in my build.xml is appreciated.
Should I post the build.xml or should I simply upload it here?



-- 
View this message in context: http://www.nabble.com/trouble-deploying-using-build.xml---%3Cant-dir%3D%22%24%7Bejb.dir%7D%22-target%3D%22all%22-%3E-tp20530578p20530578.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


AW: trouble deploying using build.xml -

Posted by Ja...@rzf.fin-nrw.de.
Have a look at the reported line.
Often a build fails if Ant should copy files to a directory which doesnt
exist.
In that case place a <mkdir> before that task.


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: trouble deploying using build.xml -

Posted by Andy Stevens <in...@googlemail.com>.
2008/11/16 ilango_g <il...@yahoo.com>:
>
> I have a Java project in Eclipse and I am trying to build and deploy the
> project. Unfortunately my build.xml is failing  with two errors.
...
>     [echo] ##### Building ejb #####
> clean:
> compile:
>    [mkdir] Created dir: C:\Users\i\workspace\RREJB\ejb\build
>    [mkdir] Created dir: C:\Users\i\workspace\RREJB\ejb\build\classes
>    [javac] Compiling 1 source file to
> C:\Users\i\workspace\RREJB\ejb\build\classes
> build-ejb-jar:
>    [mkdir] Created dir: C:\Users\i\workspace\RREJB\ejb\build\distribution
>
> BUILD FAILED
> C:\Users\i\workspace\RREJB\build.xml:69: The following error occurred while
> executing this line:
> C:\Users\i\workspace\RREJB\ejb\build.xml:56:
> C:\Users\i\workspace\RREJB\ejb\META-INF not found.
>
> Total time: 2 seconds
> ------
>
> Any assistance in helping me spot the error in my build.xml is appreciated.
> Should I post the build.xml or should I simply upload it here?

Well, the build-ejb-jar target or at least line 56 would probably be helpful...

Given the context (building an EJB jar for distribution), I'm guessing
it's doing something that expects to find an EJB deployment descriptor
in the META-INF subdirectory of your EJB sources and isn't even
finding that directory, much less the DD.  What J2EE version are you
developing for?  Do you actually have a deployment descriptor?  Does
C:\Users\i\workspace\RREJB\ejb\META-INF exist, and if not, does the
error message change if you create an empty directory of that name?
Are you able to run the script successfully outside of Eclipse with a
standalone Ant installation?


Andy
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku creator

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org