aspose file tools*
The moose likes Java in General and the fly likes Creating .ear file from zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating .ear file from zip file" Watch "Creating .ear file from zip file" New topic
Author

Creating .ear file from zip file

Dipti Mogare
Greenhorn

Joined: Jan 17, 2012
Posts: 9
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

Joined: Jul 28, 2000
Posts: 1859
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

Joined: Jan 17, 2012
Posts: 9
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

Joined: Jul 28, 2000
Posts: 1859
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

Joined: Jan 17, 2012
Posts: 9
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
 
subject: Creating .ear file from zip file