Solved

error while creating war file using ant

Posted on 2011-02-22
8
286 Views
Last Modified: 2012-06-27
I am getting an error when i build my ant file...

build failed:
.lib does not exist



my build.properties:


war.name=web
src.dir=src
war.dir=WebContent
lib.dir=WebContent/WEB-INF/lib
build.dir=.classes
build.lib.dir=.lib
dist.dir=dist


let me know what should i change to the atached build file....



build.xml
0
Comment
Question by:shragi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34956028
> build.dir=.classes
> build.lib.dir=.lib

change those to

build.dir=classes
build.lib.dir=lib
0
 

Author Comment

by:shragi
ID: 34956322
same error....

build failed:
lib does not exist
0
 
LVL 92

Expert Comment

by:objects
ID: 34956388
so where is the lib directory exactly?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:shragi
ID: 34956553
my folder structure:


Project02
  -> src
  -> build.xml
  -> webcontent
       -> jsp
       -> meta-inf
       -> Web-inf
              -> lib
              -> web.xml
0
 

Author Comment

by:shragi
ID: 34956559
Project02
  -> src
  -> build.xml
  -> build.properties
  -> webcontent
       -> jsp
       -> meta-inf
       -> Web-inf
              -> lib
              -> web.xml
0
 
LVL 92

Expert Comment

by:objects
ID: 34956669
you can either create an empty lib directory in your project

or change your build xml to not look for one
0
 

Author Comment

by:shragi
ID: 34956843
It's working now....

I heard that ant creates war and stores directly in webapps folder of tomcat... but here it created war in the directory mentioned by me... what should i change in my code so that it creates war directly in webapps folder..
(with out hardcoding)


is there any other way to create war using ant.. i mean few more scripts.... plz..
0
 
LVL 92

Assisted Solution

by:objects
objects earned 500 total points
ID: 34957123
0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question