Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to merge war file and ear file?

 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys:

I have a war file which includes web modules and a ear file which includes
enterprise modules. Before I deploy them to websphere, I need to merge them
into one ear file. I am wondering if there is any simple way to do that?

thanks
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WAR files go inside EAR files.
 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

Yes, I know war file should go inside ear file.
But how to do that? Is there a simple command to do that?

Originally posted by Scott Selikoff:
WAR files go inside EAR files.
 
Henry Wong
author
Marshal
Pie
Posts: 21122
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rick collette:
Thanks.

Yes, I know war file should go inside ear file.
But how to do that? Is there a simple command to do that?



The "jar" command can be used to list, extract, and create jar, war, and ear files. I guess you can extract the ear file, copy in the war file, and bundle it up again. BTW, just don't forget to use the "M" option, when creating the ear file -- as you don't want a manifest.

Henry
 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, Henry. That solved my problem.


Originally posted by Henry Wong:


The "jar" command can be used to list, extract, and create jar, war, and ear files. I guess you can extract the ear file, copy in the war file, and bundle it up again. BTW, just don't forget to use the "M" option, when creating the ear file -- as you don't want a manifest.

Henry
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rick collette:
Thanks.

Yes, I know war file should go inside ear file.
But how to do that? Is there a simple command to do that?

I just use tools like Winzip/Winrar to drag and drop WARs inside of existing EARs. Then, you just update the EAR's application.xml with a line or two of text.
 
radha mannava
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In wsad, go to your enterprise application, open applicaiton.xml,click on modules -details,click on add, it would show all other app modules with in your workspace..add the module you want to include in your application..
Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic