Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Configure existing TOMCAT project(How to configure an existing TOMCAT project as dynamic Web project)
Configure existing TOMCAT project [message #778285] Thu, 12 January 2012 02:30 Go to next message
Rudolf de Grijs is currently offline Rudolf de Grijs
Messages: 3
Registered: January 2012
Junior Member
When I check out an existing Eclipse project from CVS I'm unable to configure this project as a TOMCAT project.

Initially no Nature is set, so I have tried to setup the project as a dynamic project.
Doing so enables me to set web module setting (the location of WEB-INF) and here is were I run into problems.

The WEB-INF is located at the root and there is no way I can define the root of the project when I try to configure the web module location.

I do not want any other location, since this will keep my sources in sync with CVS.

Could anyone tell me how I can solve this problem?
Re: Configure existing TOMCAT project [message #778286 is a reply to message #778285] Thu, 12 January 2012 02:32 Go to previous messageGo to next message
Rudolf de Grijs is currently offline Rudolf de Grijs
Messages: 3
Registered: January 2012
Junior Member
Sorry, I do mean dynamic web module.

I'm using Indigo.
Re: Configure existing TOMCAT project [message #778439 is a reply to message #778285] Thu, 12 January 2012 09:10 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
On 1/12/2012 2:30 AM, Rudolf de Grijs wrote:
> When I check out an existing Eclipse project from CVS I'm unable to
> configure this project as a TOMCAT project.
>
> Initially no Nature is set, so I have tried to setup the project as a
> dynamic project.
> Doing so enables me to set web module setting (the location of WEB-INF)
> and here is were I run into problems.
>
> The WEB-INF is located at the root and there is no way I can define the
> root of the project when I try to configure the web module location.
>
> I do not want any other location, since this will keep my sources in
> sync with CVS.
>
> Could anyone tell me how I can solve this problem?

It may be possible create a Dynamic Web Project and use folder linking
to point the folders in this project to your CVS source in some other
location. For example, the WebContent folder in the project would be
linked to the parent of the WEB-INF folder from the CVS source. I
believe this will involve deleting the old project folder, then creating
a new project folder and using the Advanced button to specify the link.
This will allow your CVS source to appear with the "normal" structure
in the Dynamic Web Project.

Cheers,
Larry
Re: Configure existing TOMCAT project [message #778559 is a reply to message #778439] Fri, 13 January 2012 04:51 Go to previous message
Rudolf de Grijs is currently offline Rudolf de Grijs
Messages: 3
Registered: January 2012
Junior Member
Thank you Larry. That does indeed work. The linking is rather complex in my case and I needed to re-edit Eclipse to see the links appear.

It seems that the links do not appear directly, but they are there Wink.

The reason why I want this setup is because I want various configurations for a Web client. Every configuration is a separate Web project, but they all link to the same common base. This solution works in Eclipse.

If anyone is aware of a more elegant solution, I would very much like to hear from you.
Previous Topic:Where should the saaj.jar be located?
Next Topic:Republish does not work (static resources)
Goto Forum:
  


Current Time: Fri Aug 22 23:36:43 EDT 2014

Powered by FUDForum. Page generated in 0.05272 seconds