For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 4 replies, 2 voices, and was last updated 19 years, 2 months ago by
Riyad Kalla.
-
AuthorPosts
-
junglikaMemberHello:
i have a project divide in five projects:- – p1EAR
– p2EJB
– p3WAR
– p4Common
– p5CommonWeband two jars, one common by all ear and the other only common to war
- – common1.jar
– common2.jarmy question is, Its possible deploy the next structure¿?
- p1EAR | - p2EJB.jar | - p2WAR.war | - p4CommonWeb - common1.jar - p5Common - common2.jar (uses by ejb and war)
thanks
May 31, 2006 at 7:08 pm #252902
Riyad KallaMemberWhat kind of projects are p4Common and p5COmmonWeb? If they are Java projects, then yes, this is definately dooable.
June 1, 2006 at 4:10 am #252910
junglikaMemberYes p4Common an p5CommonWeb are java projects. (I use MyEclipseIDE 5.0M1)
Now my configuration is:
- – p1EAR:
- – Project References: p4Common, p2EJB and p3WAR
– p2EJB:- – Project References: p4Common
– Java Built Path:- – Projects: p4Common
– libraries: common2.jar [Exported]– p3WAR:
- – Project References: p4Common, p5CommonWeb, p2EJB
– Java Built Path:- – Projects: p4Common, p5CommonWeb, p2EJB
– libraries: common1.jar[No Exported], common2.jar [Exported]And deployments configuration is:
-
EAR:
- – Dependent Java Project Deployment Policy:
- – Jar dependent Java Project (see Notice)
– Library Deplyment Policies [Only Marked]:
- – Jars exported from dependent Java projects
EJB:
- – Dependent Java Project Deployment Policy:
- – Ignore
WAR:
- – Web Project Dependent Project Deploy Policy:
- – Jar dependent Java Project output and place in ‘lib’ directory
- – Library Deplyment Policies [Only Marked]:
- – Jars on web project build-path
Whith this configuration, in war project replicate libraries, put all the libraries that contain builth path and ignore the attribute exported in “Order and Exporter”. Example of result:
- EAR: (contain) | - common2.jar - WAR(contain in /lib) | - common1.jar [no exported] - common2.jar [exported]
How is the error??
Thanks again!!!
June 1, 2006 at 4:22 am #252912
junglikaMemberIm sorry i have an error whith the code, the result is:
- p1EAR: (contain) | - p2EJB - p1WAR(contain in /lib) | - common1.jar [no exported] - common2.jar [exported] - p5CommonWeb.jar [Correct] - p4Common.jar [No Correct] -p4Common [Repited]
i try to mark p4Common like export, but deployment ignore it.
June 1, 2006 at 7:41 am #252922
Riyad KallaMemberYour common libraries that are shared across more than one project need to go into the root of your EAR, please have a look at section 9.1 of this doc for more info:
http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/ -
AuthorPosts