- This topic has 25 replies, 13 voices, and was last updated 20 years, 6 months ago by
choudhary_san.
-
AuthorPosts
-
September 14, 2004 at 4:27 pm #215212
crazyyoyoMemberUsing many Web Module projects means more configuration, more work…
It is also very surprising to have to use this kind of trick in order to integrate all the web apps of our project(currently 6 struts web apps)But I am interested in trying the “shared resources” workaround. Unfortunately I cannot figure out how to do it. When I create a new Web project I do not know how to link the web root to a directory in my master project. Has the master project to be of a particular type?
September 14, 2004 at 4:36 pm #215213
Riyad KallaMembercrazy,
The “shared resources” part is variable depending on what you are sharing… can you give me a better idea of what is in each module, and why having them in one project really helps you? Is there a common set or libs? Do they all rely on a separate Java projects? etc…September 14, 2004 at 5:18 pm #215214
crazyyoyoMemberWe use ANT to build our project, we do not want to rely on any IDE to build it.
We have common java classes for all web apps.
We also have common HTML, images, javascript etc. files. The ANT build alows us to deploy each application separately or all applications together.The directory structure looks like this:
project_src
|__ common (common java classes)
|__ context1 (web app)
|__ docroot (equivalent of WebRoot)
|__ src (java classes)
|__ context2 (web app)
|__ docroot (equivalent of WebRoot)
|__ src (java classes)
|__ ejb
|__ webapp-common (common resources for all web apps)
|__ …..September 14, 2004 at 6:31 pm #215218
Riyad KallaMemberOk great detail, I would suggestion the following breakdown if you wanted to try ME out:
Java Project 1:
Project root: /project_src/commonWeb Module Project 1:
Project root: /project_src/context1
src dir: /project_src/context1/src
webroot dir: /project_src/context1/docroot
–> Java Build Path –> Referenced Projects = Java Project 1
–> Project References –> Java Project 1Web Module Project 2:
Project root: /project_src/context2
src dir: /project_src/context2/src
webroot dir: /project_src/context2/docroot
–> Java Build Path –> Referenced Projects = Java Project 1
–> Project References –> Java Project 1EJB Module Project 1:
Project root: /project_src/ejb
<don’t know src dir from above example>(OPTIONAL) Enterprise APp Project 1:
Module 1: Web Module Project 1
Module 2: Web Module Project 2
Module 3: EJB Module Project 1
NOTE: This is optional because its pretty much used for deployment, which you said you have the Ant script for.** Please note that I am not aware of the src/bin dirs, or the full resolved paths, so interpret my dirs above accordingly.
** Also I don’t give a project above for the webapp-common project, this could easily be a Web Module Project but I wasn’t sure how much this portion of the projects changes, or if you just want to let the script handle deploying it and you don’t need it in its own project for editing (e.g. the HTML team edits it and you guys only update from CVS before deploying).
Please let me know if any of this was unclear.
September 15, 2004 at 2:43 pm #215291
crazyyoyoMemberThanks for your fast answers, I am currently testing your suggestion.
At first sight it seems to be ok.September 16, 2004 at 4:53 pm #215396
crazyyoyoMemberI had to stop the evaluation because of the important bugs in the current version of MyEclpse(mainly out of memory, validation switching off not working). I have searched the bug reports and these problems are already identified. I will start again the evaluation when the next release is available. Except the huge bugs, I am quite positive about MyEclipse.
October 26, 2004 at 9:55 pm #218358
haritnMember+1 is this available yet ? This is a serious discoragement. I guess I will have to go back to intellij 😕 🙁
October 26, 2004 at 9:58 pm #218359
Riyad KallaMemberharitn,
Is what available yet? All the bugs crazyyoyo was talking about were fixed with 3.8.2 + the latest quick fix, but I’m not aware of any feature that was asked for in this thread…December 1, 2004 at 3:04 pm #220389
crazyyoyoMemberI think the feature haritn talks about is mentionned a couple of times in this topic:
multiple web contexts in a single project
December 1, 2004 at 3:41 pm #220392
Riyad KallaMembermultiple web contexts in a single project
Crazy, I am not following. WHat was the result of my big post above with your project, did you get it working?
Each web project in MyEclipse repsents 1 web application, it is not supported for a single web app to have multiple web contexts… I must be misunderstanding you because that doesn’t make any sense.
December 20, 2004 at 1:18 pm #221606
choudhary_sanMember@crazyyoyo wrote:
Using many Web Module projects means more configuration, more work…
It is also very surprising to have to use this kind of trick in order to integrate all the web apps of our project(currently 6 struts web apps)But I am interested in trying the “shared resources” workaround. Unfortunately I cannot figure out how to do it. When I create a new Web project I do not know how to link the web root to a directory in my master project. Has the master project to be of a particular type?
It seems someone has already done this. Please advice how will you forward or redirect a request from struts-config.xml to an URL in another context.
Quick help is appreciated.
-Sanjay
-
AuthorPosts