cd C:\Oracle2\Middleware\wlserver_10.3\common\bin
pack -domain="c:\Oracle2\Middleware\user_projects\domains\osb_domain" -template="c:\temp\fanculo.jar" -template_name="template1" -managed=true
read domain from "C:\Oracle2\Middleware\user_projects\domains\osb_domain"
succeed: read domain from "C:\Oracle2\Middleware\user_projects\domains\osb_domain"
set config option Managed to "true"
succeed: set config option Managed to "true"
write template to "C:\temp\fanculo.jar"
....................................................................................................
succeed: write template to "C:\temp\fanculo.jar"
close template
succeed: close template
unpack -template="c:\temp\fanculo.jar" -domain="c:\Oracle2\Middleware\user_projects\domains\fanculo_domain"
read template from "C:\temp\fanculo.jar"
succeed: read template from "C:\temp\fanculo.jar"
set config option DomainName to "osb_domain"
succeed: set config option DomainName to "osb_domain"
write Domain to "C:\Oracle2\Middleware\user_projects\domains\fanculo_domain"
warning:write Domain to "C:\Oracle2\Middleware\user_projects\domains\fanculo_domain"
The "JDBC" configuration in your domain is invalid. Try to resolve the issue by reviewing your script. The wizard will continue, but you may want to start the server in the domain and review the messages to identify the invalid configuration.
...............................................................................................
succeed: write Domain to "C:\Oracle2\Middleware\user_projects\domains\fanculo_domain"
close template
succeed: close template
cd C:\Oracle2\Middleware\user_projects\domains\fanculo_domain
startWebLogic.cmd
C:\Oracle2\Middleware\user_projects\domains\fanculo_domain\config\config.xml not found
No config.xml was found.
Would you like the server to create a default configuration and boot? (y/n): n
18-Sep-2011 14:30:47 o'clock BST Critical WebLogicServer BEA-000362 Server failed. Reason:
There are 1 nested errors:
weblogic.management.internal.InteractiveConfigurationException: C:\Oracle\Middleware\user_projects\domains\fanculo_domain\config\config.xml not found.
I have really no clue what was wrong in my JDBC configuration....
Anyway later I realized I am an idiot: if you specify "managed=true", your config.xml will not be included in the domain template. You must specify "managed=false" to recreate the entire domain. JDBC error apart (I had to remove manually the DS) things work.
The official documentation is here:
http://download.oracle.com/docs/cd/E13179_01/common/docs103/pack/commands.html
Sunday, September 18, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment