Solved

error while creating war file using ant

Posted on 2011-02-22
8
284 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
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to ensure a smooth transition to Let's Encrypt SSL Cert? 2 86
Systems talking to each other 5 146
PHP: Insert Data into MySQL 5 61
wild fly 8 startup error 2 37
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

713 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