Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 289
Shivagoy Avatar asked Apr 16 '13 09:04

Shivagoy


4 Answers

  1. Go to Weblogic's config.xml
  2. Locate all <app-deployment> sections.
  3. Delete them (you may want to backup it somewhere).

In my case it was more than thirty instances of our application:

<app-deployment>
    <name>deploy_ear_ear_exploded</name>
    <target>AdminServer</target>
    <module-type>ear</module-type>
    <source-path>*path_to_application*</source-path>
    <security-dd-model>DDOnly</security-dd-model>
  </app-deployment>
like image 134
krtek Avatar answered Nov 05 '22 20:11

krtek


  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
like image 27
macloving Avatar answered Nov 05 '22 19:11

macloving


For me works:

1) Uninstall all previous deployments (all ears)

2) Stop de server

3) Go to user_projects/domains/base_domain/servers/AdminServer/tmp and delete all content in this folder (you can back up the content)

4) Start and deploy

like image 34
Rafael Sánchez Bodoque Avatar answered Nov 05 '22 20:11

Rafael Sánchez Bodoque


  1. Start the server
  2. Go to deployments ( http://localhost:7001/console/console.portal?_nfpb=true&_pageLabel=AppDeploymentsControlPage )
  3. Remove war deployments
  4. Then restart, it should works
like image 2
Nvan Avatar answered Nov 05 '22 20:11

Nvan