Search code examples
javawebserverweblogicweblogic12c

weblogic.application.ModuleException: Context path '' is already in use by the module: / application:


When i am trying to run weblogic server 12c , it is throwing this error and is unable to start.

    <Apr 16, 2013 2:42:57 PM IST> <Warning> <HTTP> <BEA-101384> <WLServlet annotation is deprecated, please use servlet 3.0 annotation instead. App:[email protected], Class:oracle.adfinternal.view.faces.activedata.AdsServlet>
    <Apr 16, 2013 2:42:58 PM IST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application "acsportal" due to error weblogic.application.ModuleException: Context path '' is already in use by the module: / application: acs-portal
    weblogic.application.ModuleException: Context path '' is already in use by the module: / application: acs-portal
            at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:732)
            at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
            at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
            at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
            Truncated. see log file for complete stacktrace


Caused By: weblogic.application.ModuleException: Context path '' is already in use by the module: / application: acs-portal

            at weblogic.servlet.internal.WebAppModule.validateContextPath(WebAppModule.java:1392)
            at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:1238)
            at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:723)
            at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
            at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
            Truncated. see log file for complete stacktrace

After this error, the server hanged at this point

<Apr 16, 2013 2:43:58 PM IST> <Warning> <WorkManager> <BEA-002919> <Unable to find a Work Manager with name wm/ProvisionWorkManager. Dispatch policy wm/ProvisionWorkManager will map to the default Work Manager for the application acs-portal>

and is not starting after this line kindly help how to resolve this error.


Solution

    1. Stop the weblogic server
    2. Remove all war files from the 'autodeploy' folder in weblogic.
    3. Then start the weblogic server again
    4. After that type the URL "http:// localhost:7001/console/" in browser
    5. Go to " Configure applications" link
    6. Then select previous projects and the go stop -> When work completes