This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

create ear file from myeclipse workspace

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 989
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic