Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create APP-INF/lib structure in ear

 
Sowbakia Nagaraj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to create APP-INF/lib structure? and How to put the jar inside of APP-INF/lib folder? while making the ear file with ant scripts.
Thanks!
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure its the APP-INF directory you want to create? I would think either a META-INF or WEB-INF is what you're after...
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's what I do. I first build my EAR structure on disk, usually in target/xxx.ear. Then I use the jar task to create the EAR. This provides several benefits:

* I know exactly what is in my EAR
* I can choose to deploy the EAR as either an archive file, or as the exploded directory
* I don't have to unpack my ear to verify that its structure is correct
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the code examples for the war task in the ant manual. They include a zipfileset with a prefix specified (for your 'APP-INF/lib'). As I recall, WebLogic server uses or used APP-INF/lib.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic