Thursday, November 18, 2010

My Findings

For DB the sid is nothing but name of the database

when db was down it will through
weblogic.common.resourcepool.ResourceDeadException: Could not create pool connection. The DBMS driver exception was: [BEA][Oracle JDBC Driver][Oracle]ORA-12505 Connection refused, the specified SID (XE) was not recognized by the Oracle server. at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1445) at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1401) at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:329) at


A complete message could not be read on socket: 'weblogic.rjvm.t3.T3JVMConnection'" on WebLogic :
weblogic.rjvm.PeerGoneException: ; nested exception is: java.io.IOException: A complete message could not be read on socket: 'weblogic.rjvm.t3.T3JVMConnection@12c22dd4', in the configured timeout period of '60' secs
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)



for this we can increase timeout period by setting the parameters 
-Dweblogic.CompleteT3MessageTimeout=<value in seconds>
-Dweblogic.CompleteMessageTimeout=<value in seconds>



T3 Protocol in WebLogic Server:

T3 is Oracle WebLogic Server's proprietary RMI protocol. Basically, t3 protocol is a protocol that sits on top of Java RMI. There is some documentation available.
RMI communications in WebLogic Server use the T3 protocol to transport data between WebLogic Server and other Java programs, including clients and other WebLogic Server instances.
If you need to control T3 access through a firewall, you may use the protocol filter "T3".

Any two Java programs with a valid T3 connection—such as two server instances, or a server instance and a Java client—use periodic point-to-point “heartbeats” to announce and determine continued availability. Each end point periodically issues a heartbeat to the peer, and similarly, determines that the peer is still available based on continued receipt of heartbeats from the peer.
  • The frequency with which a server instance issues heartbeats is determined by the heartbeat interval, which by default is 60 seconds.
  • The number of missed heartbeats from a peer that a server instance waits before deciding the peer is unavailable is determined by the heartbeat period, which by default, is 4. Hence, each server instance waits up to 240 seconds, or 4 minutes, with no messages—either heartbeats or other communication—from a peer before deciding that the peer is unreachable.
  • Changing timeout defaults is not recommended.
java.lang.NumberFormatException: null from the Embedded LDAP:

This is happens because of corruption of EmbededLdap file
we can fix this issue by removing replica.props under data/ldap/config else change the prop file add replica.num=0


Weblogic server dint support mixed jdk version for the same domain.
Message bridge cant work if u specify the name of domain and jms resources are same.


Some times we find that our access.log are not updating this is because the server buffer the logs upto its default value 8kb and once it fills then it directs to our disk. By putting these flags we can set the buffer size to 0
-Dweblogic.logging.bufferSizeKB={BUFFER SIZE (KB)}
-Dweblogic.logging.bufferSizeKB=0 



We can cahnge jdk to jrocket easily by changing the java home in setDomainEnv.cmd then the server will start using jrocket

Domain Creation in console mode

[root@unknown000c2996ab4a bin]# ./config.sh -mode=console





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Welcome:
--------

Choose between creating and extending a domain. Based on your selection, the Configuration Wizard guides you through the steps to generate a new or extend an
existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory. 

   2|Extend an existing WebLogic domain
    |    Extend an existing WebLogic domain.  Use this option to add applications and services, or to override existing database access (JDBC) and messaging (JMS)
    |settings. You can also incorporate additional functionality in your domain, for example, by including AquaLogic Service Bus.





Enter index number to select OR [Exit][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the domain by selecting from the required components or by selecting from a list of
existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in your domain.

   2|Choose custom template
    |    Choose this option if you want to use an existing  template. This could be a custom created template using the Template Builder.





Enter index number to select OR [Exit][Previous][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Application Template Selection:
-------------------------------



    Available Templates
    |_____WebLogic Server (Required)x



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Required





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Application Template Selection:
-------------------------------



    Available Templates
    |_____WebLogic Server (Required)x


    ** Invalid input, only integer selection or page movement command are
    ** accepted: Required


Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Configure Administrator Username and Password:
----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|       *User name:       |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "User name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"




Enter option number to select OR [Exit][Previous][Next]> p 





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Application Template Selection:
-------------------------------



    Available Templates
    |_____WebLogic Server (Required)x



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> p





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the domain by selecting from the required components or by selecting from a list of
existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in your domain.

   2|Choose custom template
    |    Choose this option if you want to use an existing  template. This could be a custom created template using the Template Builder.





Enter index number to select OR [Exit][Previous][Next]> p





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Welcome:
--------

Choose between creating and extending a domain. Based on your selection, the Configuration Wizard guides you through the steps to generate a new or extend an
existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory. 

   2|Extend an existing WebLogic domain
    |    Extend an existing WebLogic domain.  Use this option to add applications and services, or to override existing database access (JDBC) and messaging (JMS)
    |settings. You can also incorporate additional functionality in your domain, for example, by including AquaLogic Service Bus.





Enter index number to select OR [Exit][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the domain by selecting from the required components or by selecting from a list of
existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in your domain.

   2|Choose custom template
    |    Choose this option if you want to use an existing  template. This could be a custom created template using the Template Builder.





Enter index number to select OR [Exit][Previous][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Application Template Selection:
-------------------------------



    Available Templates
    |_____WebLogic Server (Required)x



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Configure Administrator Username and Password:
----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|       *User name:       |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "User name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"




Enter option number to select OR [Exit][Previous][Next]> 2





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Configure Administrator Username and Password:
----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    "*User password:" = []




Enter new *User password: OR [Exit][Reset][Accept]>




<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Configure Administrator Username and Password:
----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|       *User name:       |                weblogic                 |
   2|     *User password:     |                ********                 |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "User name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> 3





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Configure Administrator Username and Password:
----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    "*Confirm user password:" = []




Enter new *Confirm user password: OR [Exit][Reset][Accept]>




<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Configure Administrator Username and Password:
----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|       *User name:       |                weblogic                 |
   2|     *User password:     |                ********                 |
   3| *Confirm user password: |                ********                 |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "User name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]>





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.

 ->1|Development Mode

   2|Production Mode




Enter index number to select OR [Exit][Previous][Next]> 2





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Java SDK Selection:
-------------------

 ->1|JRockit SDK 1.5.0_12 @ /Weblogic/apps/weblogic9.23/jrockit_150_12
   2|Sun SDK 1.5.0_12 @ /Weblogic/apps/weblogic9.23/jdk150_12
   3|Other Java SDK




Enter index number to select OR [Exit][Previous][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Choose Configuration Option:
----------------------------

    *Do you want to modify any of the preconfigured settings or defaults in your template?
    *
    *To keep the default or template settings, and proceed directly to name and create your domain, leave No selected.

   1|Yes

 ->2|No





Enter index number to select OR [Exit][Previous][Next]> 2





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Select the target domain directory for this domain:
---------------------------------------------------

    "Target Location" = [Enter new value or use default "/Weblogic/apps/weblogic9.23/user_projects/domains"]




Enter new Target Location OR [Exit][Previous][Next]> /Weblogic/domains/weblogic9/test1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Edit Domain Information:
------------------------

    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |




Enter value for "Name" OR [Exit][Previous][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Edit Domain Information:
------------------------

    |  Name  | Value |
   _|________|_______|
   1| *Name: |   1   |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Edit Domain Information:
------------------------

    |  Name  | Value |
   _|________|_______|
   1| *Name: |   1   |
Enter option number to select OR [Exit][Previous][Next]> 1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Edit Domain Information:
------------------------

    |  Name  | Value |
   _|________|_______|
   1| *Name: |   1   |




Enter value for "Name" OR [Exit][Previous][Next]> test1





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Edit Domain Information:
------------------------

    |  Name  | Value |
   _|________|_______|
   1| *Name: | test1 |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]>





<----------------------------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------------------------->

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****

It will crearte a domain in particular directory, 
for ex: the name of the domain is test1 need to create at /root/bea/web9.2. Just give the till where to create and it will create the folder automatically. 

-----------------------

 Available Templates
    |_____WebLogic Server (Required)x
    |_____Workshop for WebLogic Platform [2]



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>

 

weblogic Installation

We have different types of installation, we are using console mode in linux.

1) Go to the installation directory and execute the following command
 ./server923-linux32.bin -mode=console
Extracting 0%....................................................................................................100%
<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->
Welcome:
--------
This installer will guide you through the installation of BEA Products. Type "Next" or enter to proceed to the next prompt.  If you want to change data entered
previously, type "Previous".  You may quit the installer at any time by typing "Exit".
Enter [Exit][Next]>
-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->
BEA Systems License Agreement:
------------------------------
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT

USE OF SOFTWARE ORDERED FROM BEA SYSTEMS, INC. ("BEA") IS PROVIDED ONLY UNDER LICENSE FROM BEA. PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY, INCLUDING ANY
SUPPLEMENTAL TERMS AND CONDITIONS SET FORTH AT THE END OF THE MAIN LICENSE AGREEMENT, AND INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX. CERTAIN CAPITALIZED
TERMS ARE DEFINED IN SECTION  11.
      
1.      LICENSE TERMS

a.      Evaluation Use. The terms of this Section 1(a) are applicable to you if you have registered as an Evaluation customer. Subject to the terms of this Agreement, BEA
grants to you a non-exclusive, non-transferable, license to use the Software solely for Evaluation Use. Third party software products or modules supplied by BEA, if
any, may be used solely with the Software, and may be subject to your acceptance of terms and conditions provided by such third parties. This license begins upon
downloading and ends thirty (30) days thereafter. When the license terminates you must stop using the Software.  All rights not specifically granted to you herein are
retained by BEA.

b.      Development Use. The terms of this Section 1(b) are applicable to you if you have registered as a Development Use customer. Subject to the terms of this Agreement,
BEA grants to you a non-exclusive, non-transferable, fee-bearing license to use the Software solely for Development Use for the number of users and the number of
CPU's, Servers, or other pricing units and/or at the Sites, as specified on BEA's invoice. Third party software products or modules supplied by BEA, if any, may be
used solely with the Software. All rights not specifically granted to you herein are retained by BEA.

c. Production Use. The terms of this Section 1(c) are applicable to you if you have registered as a Production Use customer. Subject to the terms of this Agreement,
BEA grants to you a non-exclusive, non-transferable, fee-bearing license to use the Software solely for Production Use on the number of CPU's, Servers, or other
pricing units and/or at the Sites, as specified on BEA's invoice. Third party software products or modules supplied by BEA, if any, may be used solely with the
Use above value or select another option:
    1 - Yes, I agree with the terms of the license
    2 - No, I do not agree with the terms of the license
Enter option number to select OR [Down][Exit][Previous]> 1
<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->
Choose BEA Home Directory:
--------------------------

 ->1|* Create a new BEA Home
   2|/Weblogic/apps/weblogic10.3
Enter index number to select OR [Exit][Previous][Next]> 1
<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose BEA Home Directory:
--------------------------

    "BEA Home" = [Enter new value or use default "/root/bea"]

Enter new BEA Home OR [Exit][Previous][Next]> /Weblogic/apps/weblogic9

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose BEA Home Directory:
--------------------------

    "BEA Home" = [/Weblogic/apps/weblogic9]

Use above value or select another option:
    1 - Enter new BEA Home
    2 - Change to default [/root/bea]

Enter option number to select OR [Exit][Previous][Next]> 1

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose BEA Home Directory:
--------------------------

    "BEA Home" = [/Weblogic/apps/weblogic9]

Enter new BEA Home OR [Exit][Previous][Next]> /Weblogic/apps/weblogic9.23

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose BEA Home Directory:
--------------------------

    "BEA Home" = [/Weblogic/apps/weblogic9.23]

Use above value or select another option:
    1 - Enter new BEA Home
    2 - Change to default [/root/bea]

Enter option number to select OR [Exit][Previous][Next]>
<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

 ->1|Complete
    |  Install the following software components and examples:
    | - WebLogic Server
    | - Workshop for WebLogic Platform

   2|Custom
    |  Choose software components to install and perform optional configuration.
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1
<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose Components to install:
-----------------------------

    Release 9.2.3.0
    |_____WebLogic Server [1] x
    |    |_____Server [1.1]
    |    |_____Server Examples [1.2]
    |    |_____Web Server Plug-Ins [1.3]
    |_____Workshop for WebLogic Platform [2]
         |_____Workshop [2.1]
         |_____Workshop Examples [2.2]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.1
<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose Components to install:
-----------------------------

    Release 9.2.3.0
    |_____WebLogic Server [1]
    |    |_____Server [1.1]
    |    |_____Server Examples [1.2]
    |    |_____Web Server Plug-Ins [1.3]
    |_____Workshop for WebLogic Platform [2]
         |_____Workshop [2.1]
         |_____Workshop Examples [2.2]




Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.1

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose Components to install:
-----------------------------

    Release 9.2.3.0
    |_____WebLogic Server [1] x
    |    |_____Server [1.1] x
    |    |_____Server Examples [1.2]
    |    |_____Web Server Plug-Ins [1.3]
    |_____Workshop for WebLogic Platform [2]
         |_____Workshop [2.1]
         |_____Workshop Examples [2.2]

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.2

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->
Choose Components to install:
-----------------------------

    Release 9.2.3.0
    |_____WebLogic Server [1] x
    |    |_____Server [1.1] x
    |    |_____Server Examples [1.2] x
    |    |_____Web Server Plug-Ins [1.3]
    |_____Workshop for WebLogic Platform [2]
         |_____Workshop [2.1]
         |_____Workshop Examples [2.2]




Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.3
<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose Components to install:
-----------------------------

    Release 9.2.3.0
    |_____WebLogic Server [1] x
    |    |_____Server [1.1] x
    |    |_____Server Examples [1.2] x
    |    |_____Web Server Plug-Ins [1.3] x
    |_____Workshop for WebLogic Platform [2]
         |_____Workshop [2.1]
         |_____Workshop Examples [2.2]

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Choose Product Installation Directories:
----------------------------------------

BEA Home Directory: [/Weblogic/apps/weblogic9.23]

Product Installation Directories:


    "Default Product Home" = [Enter new value or use default "/Weblogic/apps/weblogic9.23/weblogic92"]

Enter new Default Product Home OR [Exit][Previous][Next]>

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Installing JDK....

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions...



Creating Domains...

<-------------------------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------------------------->

Installation Complete


Congratulations! BEA Products has been successfully installed to /Weblogic/apps/weblogic9.23/weblogic92.
Enter index number to select OR [Exit][Previous][Next]>