Solved

error while creating war file using ant

Posted on 2011-02-22
8
273 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
 

Author Comment

by:shragi
ID: 34956553
my folder structure:


Project02
  -> src
  -> build.xml
  -> webcontent
       -> jsp
       -> meta-inf
       -> Web-inf
              -> lib
              -> web.xml
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now