|Re: Web module question [message #515120 is a reply to message #515095]
||Wed, 17 February 2010 18:34
| Larry Isaacs
Registered: July 2009
> For web projects, Eclipse has this concept of a Web Module.
> Every dynamic web project deployed has a web module. for example, if you
> go to the Server the web app is deployed on and the click the modules
> tab for the project.
> However, I can't see the module name anywhere on the project properties.
> I can only see a reference to in the hidden file:
> org.eclipse.wst.common.component which has the tag:
> <wb-module deploy-name="myproject">
> I am wondering what is the significance of this property? When is it
> ever used? It is not used for the web context name so what is it used for?
> Also, if I add an external application to my server for example the
> jsp-examples that comes bundles with tomcat, I can specify the
> document-base and the path but I can't specify the a module name for it
> and eclipse doesn't assign one.
> Why not?
> And what are the limitations of a web application which doesn't have a
> web module name?
> Comments appreciated...
I believe in Java EE land, modules are allowed to have names. The
deploy-name would be that "name" for the web module. However, for
practical reasons, the deploy-name and the project's name should always
be the same. An added benefit of keeping them the same is that it
ensures the deploy-name is unique in the workspace. In most versions of
WTP, renaming the project will also update the deploy-name. However,
thanks to Bug 251813, WTP 3.1.1 doesn't do this. You will have to
manually keep them in sync in this version. This behavior will be fixed
in WTP 3.1.2 and 3.2. If you are curious about why they need to stay in
sync, see Bug 202541.
Powered by FUDForum
. Page generated in 0.01986 seconds