[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

error while creating war file using ant

Posted on 2011-02-22
8
Medium Priority
?
298 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 2000 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

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 2000 total points
ID: 34957123
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

650 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