Solved

error while creating war file using ant

Posted on 2011-02-22
8
275 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
New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

 

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

New! My Passport Wireless Pro Wi-Fi Mobile Storage

Portable wireless storage to offload, edit, and stream anywhere.

High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 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

13 Experts available now in Live!

Get 1:1 Help Now