This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating .ear file from zip file

 
Dipti Mogare
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a zip file. Zip file is actually binary of the application. Zip file contains folders bin,doc,server,sql. I want to create .ear file from zip file.
.ear file created should be having all folder structure of .ear file i.e. META-INF, application.xml
So how to create .ear file from zip file, so that .ear file can be deployed on JBoss Application server.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1868
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

The ear file is not just a "zipped file".

It has to follow a structure of its own and also it has additional files for "information" for the application servers.

You might need to extract the zip file. create the necessary ear dependent files. Use a tool like maven to create the ear file

Br
Rahul Mahindrakar
 
Dipti Mogare
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rahul,

Which maven plugin I can use to create .ear.
Because I am having bin,server,doc,sql folder in the zip file.
bin folder contains exe and batch files. server contains server/default/deploy and sql contains database related queries.
And the ear file structure should ideally having META-INF folder, then war and ejbs.
So how to create all that?
 
Rahul Mahindrakar
Ranch Hand
Posts: 1868
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

.ear stands for Enterprise Archive which is kind of a "java solution"

What are you trying to deploy here. It does not seem to be a java application.
 
Dipti Mogare
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i was having one java enterprise application source code. Using build.xml i got the zip file. But modifying the build.xml of source code to get .ear is not working.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic