File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes create ear file from myeclipse workspace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "create ear file from myeclipse workspace" Watch "create ear file from myeclipse workspace" New topic

create ear file from myeclipse workspace

soheil amini

Joined: Apr 06, 2011
Posts: 7
Actually I use MyEclise to develop and deploy a enterprise project(EAR file).

I use Java Build Path to add some other projects and link sources, and added several jar files (as external jar and user library) to my project. (I used J2EE technology and there are some default jar of course )

By myeclise deploying manager I deployed my project on weblogic base_domain and then by weblogic console I deploy it on weblogic.

All is set and there is no problem in all steps.

Now I wanna to create EAR file manually, first I created WAR file which included some jsf files and web-inf directory contains classes, lib directories and some important file like web.xml , facec-config.xml and etc.

In classes folder I have .class files which build correctly from .java files, and on lib directory**I copied all jar file from web-inf/lib directory** which created automatically by myeclipse deploying manager on weblogic base domain folder.

I added this War file into EAR file along APP-INF directory which contains all jar files from APP-INF/lib directory on weblogic base domain folder and META-INF directorywhat contains application.xml file.

When I deploy this ear file on weblogic there is so many error and problems.

Could you tell me what is the correct way to create that EAR file.

Thanks in advance
E Armitage

Joined: Mar 17, 2012
Posts: 989
You can extract the ear that was created by eclipse and compare its contents with the one you created to see what you missed.

After all that, make time to learn a build tool like maven which will not only manage your build process but also manages your dependencies without being dependent on your IDE.

soheil amini

Joined: Apr 06, 2011
Posts: 7
Hi Armitage
Thanks for reply,
Your solution was very interesting ! ;) But MyEclipse doesn't create EAR file,and it deploy all files in specific directory .

I wanna know exactly EAR structure and diff b\w app-inf lib abd web-inf lib and ...
I agree. Here's the link:
subject: create ear file from myeclipse workspace
It's not a secret anymore!