user994165
user994165

Reputation: 9502

Eclilpse changing the context root of WebLogic web application

For some reason my Eclipse sometimes changes the context root of my web application in the weblogic.xml file to the name of the project. The name of the project is different from the context root. How do I prevent this?

Upvotes: 3

Views: 1892

Answers (2)

Gilliard Macedo
Gilliard Macedo

Reputation: 386

Add following property to your pom.xml:

<properties>
<m2eclipse.wtp.contextRoot>my-context</m2eclipse.wtp.contextRoot>
</properties>

Upvotes: 3

Javier Garay
Javier Garay

Reputation: 1

In your workspace, find the following file:

{workspace}\{project name}\.settings\org.eclipse.wst.common.component

Then edit it with the following:

<property name="context-root" value="your context root"/>

Upvotes: 0

Related Questions