Eclipse Keeps Changing Context Roots Of Web Applications For Weblogic Wrongly

Do you like this?

Summary:
Context Root of your web application built for Weblogic was changed without your knowledge in Eclipse. This page shows you how to fix it.


Content:

Problem:

Context Root of your web application for Weblogic was changed without your knowledge in Eclipse.

Example:

  1. Check out YourProject from SVN/Git
  2. Compile/Run/Check in code
  3. The context root in weblogic.xml was changed wrongly from /yourcontext to /your-context
Solution:

  1. Go to the root of your project's folder
  2. Open .settings folder
  3. Edit the file org.eclipse.wst.common.component
In the file org.eclipse.wst.common.component, locate the following line
<property name="context-root" value="your-context"/>
Change it to:
<property name="context-root" value="yourcontext"/>

 
comments powered by Disqus