Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Web module question(Web module question)
Web module question [message #515095] Wed, 17 February 2010 17:23 Go to next message
breako  is currently offline breako
Messages: 57
Registered: July 2009
Member
Hi,
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...


Re: Web module question [message #515120 is a reply to message #515095] Wed, 17 February 2010 18:34 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
breako wrote:
> Hi,
> 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[1], 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[2].

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=251813
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=202541
Previous Topic:Getting default tomcat applications working
Next Topic:Axis2 Client web service config Port Name ConverterSOAP11port_http not found
Goto Forum:
  


Current Time: Mon Sep 22 06:31:40 GMT 2014

Powered by FUDForum. Page generated in 0.01733 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software