This discussion is archived
1 Reply Latest reply: Apr 12, 2013 5:45 AM by 997468 RSS

Partial redeployment of a static jar file with weblogic.Deployer

foch Newbie
Currently Being Moderated

We are working on an application serving jar files to customers, via Java Web Start, hence that are considered from our point of view as static files, like our HTML and Javascript pages.
Moreover, we have one jar that changes regularly, so every time it's loaded on the server we need to do a partial redeployment of this jar file, as documented here:

However, it does not work, as I believe WebLogic doesn't consider my jar file as a static file.

C:\>java -cp weblogic.jar weblogic.Deployer -adminurl http://mymachine:7001 -user weblogic -password mystrongpassword -name myapp -redeploy launcher/downloadme.jar

weblogic.Deployer invoked with options: -adminurl http://mymachine:7001 -user weblogic -name myapp -redeploy launcher/downloadme.jar
<Mar 8, 2013 7:09:36 PM CET> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, myapp [archive: null], to configured targets.>
Task 24 initiated: [Deployer:149026]redeploy application myapp [Version=7] on WebServer.
Task 24 failed: [Deployer:149026]redeploy application myapp [Version=7] on WebServer.

Target state: redeploy failed on Server WebServer
The application myapp#7 cannot have the resource launcher/downloadme.jar updated dynamically. Either:
1.) The resource does not exist.
2) The resource cannot be changed dynamically.
Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.

As a side note, if I rename downloadme.jar to downloadme.jar.*html*, then WebLogic agrees to redeploy it!

Is there any way to force the static redeployment of my jar file?

Thanks and regards,
  • 1. Re: Partial redeployment of a static jar file with weblogic.Deployer
    997468 Explorer
    Currently Being Moderated

    The feature you are trying to use works only when web application is deployed in exploded format. Is your app deployed in exploded format?
    Also jars are never considered static, so I doubt this will work here.

    As an alternative you can go for Oracle Weblogic Production redployment feature. Refer to -


    Edited by: Ranjan K on Apr 12, 2013 5:45 AM


  • Correct Answers - 10 points
  • Helpful Answers - 5 points