Search This Blog

Thursday, 20 June 2013

Paking and unpaking weblogic domains

Packing a domain

[root@localhost bin]# pwd
/home/bea/weblogic91/common/bin
[root@localhost bin]# ./pack.sh -domain=/home/bea/user_projects/domains/dev_domain -template=/home/bea/user_templates/New_dev_domain.jar -template_name="New_dev_domain"
<< read domain from "/home/bea/user_projects/domains/dev_domain"
>>  succeed: read domain from "/home/bea/user_projects/domains/dev_domain"
<< write template to "/home/bea/user_templates/New_dev_domain.jar"
....................................................................................................
>>  succeed: write template to "/home/bea/user_templates/New_dev_domain.jar"
<< close template
>>  succeed: close template

Unpaking domain

[root@localhost bin]# ./unpack.sh -template=/home/bea/user_templates/New_dev_domain.jar -domain=/home/bea/user_projects/domains/new_dev_domain
<< read template from "/home/bea/user_templates/New_dev_domain.jar"
>>  succeed: read template from "/home/bea/user_templates/New_dev_domain.jar"
<< write Domain to "/home/bea/user_projects/domains/new_dev_domain"
>>  warning:write Domain to "/home/bea/user_projects/domains/new_dev_domain"
>>  The "Servers, Clusters and Machines" configuration in your domain has been found to be invalid. It may be possible to resolve the issue by reviewing your script. The wizard will continue, but you may want to start the server in your domain and review the messages displayed to identify the invalid configuration.
...............................................................................................
>>  succeed: write Domain to "/home/bea/user_projects/domains/new_dev_domain"
<< close template
>>  succeed: close template
 



No comments: