Thursday, November 1, 2012

Exporting Weblogic Configuration

Exporting Weblogic Configuration

The following oracle link gives good description on how to export weblogic configurations into a deployment plan:


Essentially, what is needed is to execute the following command under DOS prompt:
java weblogic.PlanGenerator -root /appRelease/MyApplication -all  

Someone asked: how do I execute this?

(1) ensure java.exe is in your path. or do something like the following:
E:\oracle\portal\java\jdk1.7.0_04\bin\java -cp weblogic.jar weblogic.PlanGenerator -root e:\exportapps\myApplication


 (2) find out where weblogic.PlanGenerator is so that you can run it using java.
It looks like a class. Perhaps in a jar? You can search using windows explorer and make sure search for text not just file name so that the windows searcher will look inside jars.
 Windows search reveals that  weblogic.PlanGenerator is a class insider weblogic.jar.

(3) make sure include the jar in your classpath.  -cp weblogic.jar adds the jar into your classes.
if you need to include multiple jars, do the following:
-cp jar1;jar2;jar3

No comments:

Post a Comment