- This topic has 25 replies, 13 voices, and was last updated 19 years, 11 months ago by choudhary_san.
-
AuthorPosts
-
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?
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…
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)
|__ …..
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.
crazyyoyoMemberThanks for your fast answers, I am currently testing your suggestion.
At first sight it seems to be ok.
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.
haritnMember+1 is this available yet ? This is a serious discoragement. I guess I will have to go back to intellij 😕 🙁
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…
crazyyoyoMemberI think the feature haritn talks about is mentionned a couple of times in this topic:
multiple web contexts in a single project
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.
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