WebLogic installation support - WL 8.1 + Silent mode configuration problem

This is Interesting: Free IT Magazines  
Home > Archive > WebLogic installation support > March 2004 > WL 8.1 + Silent mode configuration problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WL 8.1 + Silent mode configuration problem
Lara

2004-03-22, 3:36 pm


I use weblogic 8.1 sp2 and created the below silent script to create one admin
and one manager server.It works but it also creates a 'myserver' entry with 7001
in my config.xml.How do I fix this? Advance thanks for your help...

//Silent domain creation
// Usage:
// <Windows> = config.cmd -mode=silent -silent_script=<silent script>
// <Unix> = ./config.sh -mode=silent -silent_script=<silent script>
//
// Where:
// <silent script> should be the full path to the silent script.
/////////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////////////
//Read in a domain template.
/////////////////////////////////////////////////////////////////////////////////////////
read template from
"C:\beaplatform\weblogic81/common/templates/domains/wls.jar";

/////////////////////////////////////////////////////////////////////////////////////////
//Find and configure the Admin Server.
/////////////////////////////////////////////////////////////////////////////////////////

create Server "AdminServer" as s1;
set s1.ListenAddress "localhost";
set s1.ListenPort "10000";
set s1.SSL.Enabled "false";
//set s1.SSL.ListenPort "10001";

create Server "ManagedServer" as s2;
set s2.ListenAddress "localhost";
set s2.ListenPort "10002";
set s2.SSL.Enabled "false";
//set s2.SSL.ListenPort "10003";


/////////////////////////////////////////////////////////////////////////////////////////
//Create a JDBCConnectionPool.
/////////////////////////////////////////////////////////////////////////////////////////
create JDBCConnectionPool "demoPool" as mypool;
//required attribute
set mypool.DriverName "oracle.jdbc.driver.OracleDriver";
//required attribute
set mypool.URL "jdbc:oracle:thin:@192.xxx.x.xxx:1521:mydb";
//required attribute
set mypool.Password "test";
//optional attribute (but it's recommended you set the db user...)
set mypool.Properties "user=user";
//target all JDBC connection pools to server "ManagedServer"
assign JDBCConnectionPool "*" to target "ManagedServer";

/////////////////////////////////////////////////////////////////////////////////////////
//Create the admin user and password.
/////////////////////////////////////////////////////////////////////////////////////////
find User "weblogic" as u1;
set u1.password "weblogic";

/////////////////////////////////////////////////////////////////////////////////////////
//Write out the domain.
/////////////////////////////////////////////////////////////////////////////////////////
set OverwriteDomain "true";
write domain to "C:\functionaldomains/test/test_iteration_1";

/////////////////////////////////////////////////////////////////////////////////////////
//Close domain template to indicate completion of work.
/////////////////////////////////////////////////////////////////////////////////////////
close template;

Terence

2004-03-26, 12:12 pm


Instead of
create Server "AdminServer" as s1;

Use
find Server "myserver" as s1;
set s1.Name "AdminServer";
set s1.ListenAddress "localhost";
set s1.ListenPort "10000";
set s1.SSL.Enabled "false";

Regards,
Terence

"Lara" <lara123@xordinary.com> wrote:
>
>I use weblogic 8.1 sp2 and created the below silent script to create
>one admin
>and one manager server.It works but it also creates a 'myserver' entry
>with 7001
>in my config.xml.How do I fix this? Advance thanks for your help...
>
>//Silent domain creation
>// Usage:
>// <Windows> = config.cmd -mode=silent -silent_script=<silent script>
>
>// <Unix> = ./config.sh -mode=silent -silent_script=<silent script>
>
>//
>// Where:
>// <silent script> should be the full path to the silent script.
>/////////////////////////////////////////////////////////////////////////////////////////
>
>/////////////////////////////////////////////////////////////////////////////////////////
>//Read in a domain template.
>/////////////////////////////////////////////////////////////////////////////////////////
>read template from
>"C:\beaplatform\weblogic81/common/templates/domains/wls.jar";
>
>/////////////////////////////////////////////////////////////////////////////////////////
>//Find and configure the Admin Server.
>/////////////////////////////////////////////////////////////////////////////////////////
>
>create Server "AdminServer" as s1;
>set s1.ListenAddress "localhost";
>set s1.ListenPort "10000";
>set s1.SSL.Enabled "false";
>//set s1.SSL.ListenPort "10001";
>
>create Server "ManagedServer" as s2;
>set s2.ListenAddress "localhost";
>set s2.ListenPort "10002";
>set s2.SSL.Enabled "false";
>//set s2.SSL.ListenPort "10003";
>
>
>/////////////////////////////////////////////////////////////////////////////////////////
>//Create a JDBCConnectionPool.
>/////////////////////////////////////////////////////////////////////////////////////////
>create JDBCConnectionPool "demoPool" as mypool;
>//required attribute
>set mypool.DriverName "oracle.jdbc.driver.OracleDriver";
>//required attribute
>set mypool.URL "jdbc:oracle:thin:@192.xxx.x.xxx:1521:mydb";
>//required attribute
>set mypool.Password "test";
>//optional attribute (but it's recommended you set the db user...)
>set mypool.Properties "user=user";
>//target all JDBC connection pools to server "ManagedServer"
>assign JDBCConnectionPool "*" to target "ManagedServer";
>
>/////////////////////////////////////////////////////////////////////////////////////////
>//Create the admin user and password.
>/////////////////////////////////////////////////////////////////////////////////////////
>find User "weblogic" as u1;
>set u1.password "weblogic";
>
>/////////////////////////////////////////////////////////////////////////////////////////
>//Write out the domain.
>/////////////////////////////////////////////////////////////////////////////////////////
>set OverwriteDomain "true";
>write domain to "C:\functionaldomains/test/test_iteration_1";
>
>/////////////////////////////////////////////////////////////////////////////////////////
>//Close domain template to indicate completion of work.
>/////////////////////////////////////////////////////////////////////////////////////////
>close template;
>


Johnson

2004-03-26, 12:12 pm


Terence, It works. Thanks a lot....

"Terence" <terencey@psa.com.sg> wrote:
>
>Instead of
>create Server "AdminServer" as s1;
>
>Use
>find Server "myserver" as s1;
>set s1.Name "AdminServer";
>set s1.ListenAddress "localhost";
>set s1.ListenPort "10000";
>set s1.SSL.Enabled "false";
>
>Regards,
>Terence
>
>"Lara" <lara123@xordinary.com> wrote:
>script>
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com