Home > Eclipse > Eclipse WTP and renaming context root

Eclipse WTP and renaming context root

June 12th, 2007

Eclipse IconI am using Eclipse WTP now for about two years and I am very satisfied with its features. But the version 1.5.2 which I used over the last year still has some problems.

Yesterday I migrated an old application that was tested with the Sysdeo Tomcat plugin to WTP by making a Dynamic Web Project and moving the source folder inside the CVS repository. Everything worked fine except the fact that every time I started the Tomcat test server the application was loaded twice.

I found out that the reason for this behavior was that I renamed the Context Root under Web Project Settings in the project properties dialog.

To be able to access the application under a different name than the project name you have to rename deploy-name inside the org.eclipse.wst.common.component file too. With WTP 2.0 and Eclipse 3.3 RC3 it is enough to rename the Context Root.

Eclipse



  1. dr_java
    September 23rd, 2007 at 16:42 | #1

    Had the same problem. Lucky your blog came up top on google search.

    Your blog is monster, will read it more often.

    Thx a lot.

  2. September 23rd, 2007 at 19:53 | #2

    thanks for your comments, these are the ones I blog for ;-)

  3. Robin
    March 18th, 2008 at 12:25 | #3

    This post really helped me out. I switched from MyEclipse to Eclipse Europa 3.3.2 and had the same problem. Thanks for taking the time to put this up.

  1. No trackbacks yet.