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

create ear file from myeclipse workspace

 
soheil amini
Greenhorn
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
 
E Armitage
Rancher
Posts: 989
9
  • 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
Greenhorn
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 ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic