"weblogic.application.ModuleException - Context path already in use" When Running Application Saved With A Different Name (Doc ID 1093069.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version 11.1.1.0.0 to 11.1.2.3.0
Information in this document applies to any platform.
***Checked for relevance on 6-Feb-2013***

Symptoms

The following error message is thrown when trying to run an application:

<03-05-2010 03:47:10 PM CLT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1272916028203' for task '0'. Error is: 'weblogic.application.ModuleException: Context path '/[former application name]-ViewController-context-root' is already in use by the module: [former application name]-ViewController-context-root application: [former application name]'
weblogic.application.ModuleException: Context path '/[former application name]-ViewController-context-root' is already in use by the module: [former application name]-ViewController-context-root application: [former application name]
at weblogic.servlet.internal.WebAppModule.initAndValidateContextPath(WebAppModule.java:1099)
at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:922)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:356)
at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:411)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
Truncated. see log file for complete stacktrace
>
<03-05-2010 03:47:10 PM CLT> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'ToggleELJSPX'.>
<03-05-2010 03:47:10 PM CLT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'ToggleELJSPX'.>
<03-05-2010 03:47:10 PM CLT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Context path '/[former application name]-ViewController-context-root' is already in use by the module: Application11-ViewController-context-root application: [former application name]
at weblogic.servlet.internal.WebAppModule.initAndValidateContextPath(WebAppModule.java:1099)
at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:922)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:356)
at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:411)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
Truncated. see log file for complete stacktrace
>
[03:47:10 PM] #### Deployment incomplete. ####
[03:47:10 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application [new application name] due to error deploying to IntegratedWebLogicServer.
[Application [new application name] stopped and undeployed from Server Instance IntegratedWebLogicServer]

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms