Deploying war files as SharedLibrary on weblogic Using Intellij IDEA

I have a weird problem deploying war files as a shared library in Weblogic using Intelli-IDEA.

By using the expression Shared library , I mean the exact concept of shared library used by weblogic when trying to use the admin console to deploy a war / jar file:

enter image description here

Obviously my war file has no problem and when I deploy it using admin console or command line (weblogic.Deployer) no problem and it deploys successfully.

Problem I can't get Intellij-Idea to figure out how to deploy my war file as a shared library:

enter image description here

I tried to build PersonWeb artifact like jar or ear or ... but there was no progress. When it's war-packaged I can successfully deploy it as a shared library using the admin console or weblogic.Deployer command line tools.

Using the weblogic.Deployer command line tool and the -library argument , you can deploy applications as public libraries on web logic, for example:

java weblogic.Deployer -adminurl t3://localhost:7001 -username [Your username] -password [Your password] -upload -library -targets AdminServer -deploy -source [path to your war file]

      

But I couldn't find any parameter in intellij to pass arguments or parameters to weblogic.Deployer when deploying the artifact.

Is there a way around this working with Intellij-Idea?

I am currently using weblogic12c. But the same problem occurs using weblogic 11g (10.3.4 or 10.3.5)

+4


source to share


1 answer


The workaround I'm using:

  1. Go to Weblogic console and deploy your application as a shared library. When asked for a path, provide the path to your parsed folder (e.g. target / MyApp)

  2. Go to Weblogic console and deploy all other apps and provide path to your parsed folder (e.g. target / MyApp)

  3. Delete all entries in the Deployment tab
  4. Reboot the server.


You've set up all your apps and set them up to an exploded folder. When you recompile any of your applications, the parsed folder will contain the latest version, and all you need to do is restart the server and WebLogic will deploy the latest version.

+2


source







All Articles