JBuilder - Redeploy does not function correctly with Weblogic

By: Christopher Moeller

Abstract: Description and workaround for redeploying archive to Weblogic


When I attempt to redeploy my EJB archive to Weblogic, it does not seem to work properly. It seems to be deploying a old version of the archive, instead of the new version that I just compiled.

Why is this happening, and is there a work-around?



When running WLS internal to JBuilder the hot deployment does not work unless the flag "-Dweblogic.ProductionModeEnabled=true" is included on the weblogic command line. Without this flag WLS runs in development mode which causes the following problem:

  1. Right click on jar, deploy - fine.
  2. Update EJB, right click on jar, redeploy.
  3. WLS undeploys old EJB but because it is in development mode it immediately finds the old jar file sitting in its directory structure and redeploys it. This means the pdated EJB does not make it into the WLS

Note: A good summary of Weblogic's behavior in step 3 is in the README.txt file in the /bea/wlserver6.1/config/mydomain/applications directory.

So, to set this flag in the Weblogic Server, do the following:

Project | Project Properties | Servers | Weblogic Application Server 6.x | Edit... | VM Parameters | and add "-Dweblogic.ProductionModeEnabled=true"


Server Response from: ETNASC03