home / infca / was (navigation links) Ahora que sé las respuestas,
me cambian las preguntas.

Concepts | WAS admin | mdb (ext) | SAG | MQ Links | End | mapa

WAS

WAS Homepage, Library; InfoCenter v 6.0, v 6.1, v 7.0 v 7.0, v 8.0, v 8.5

Concepts Family CheckList Instalació Ports Commands Fixes Virtual Host
JVM tuning Samples / Snoop Seguridad - activar Cluster HA Biblio MQ Consola
Seguridad Avanzada SAG APP CM & PS hostname change WAS log v 8.5 Dubtes Links

Concepts

Amunt!   Top of page

Carefully plan your application server nomenclature. Use a systematic approach to naming to simplify administering the environment.

The deployment manager is the centralized management communication vehicle. It is recommended that the deployment manager be installed on a separate machine than the application server nodes to prevent unmanaged work from occurring on the nodes.

WS Extended Deployment v 6.0.1 Install Guide, SA22-7998.pdf, page 8 of 29.

The profile is a separate set of files that define the application server environment. A profile is a separate data partition that contains the files that define the run-time environment for an application server. A default profile is created during the installation of the base product. Create additional profiles using the Profile Creation wizard. [+ make a profile the default] Each profile defines a separate stand-alone application server that has its own administrative interface.

This wizard creates run-time environments that are referred to as profiles. Each profile contains either a deployment manager, a node that is administered by a deployment manager, or a stand-alone application server.

  1. deployment manager profile : a deployment manager administers Application Servers that are federated into its cell.
  2. application server profile : the application server can be managed from its own administrative console and function independent of other Application Servers and deployment managers. Alternatively, it can be federated into a cell and managed by the deployment manager.

See wasprofile command.

WAS !

Regardless of the configuration, the WebSphere Application Server is organized based on the concept of cells, nodes, and servers.

WAS 6.0 System Management and Configuration Handbook, SG24-6451.pdf, page 47 of 1040.

Application servers, nodes, and cells

The application server is the primary runtime component in all configurations. It is where an application executes. All WAS configurations can have one or more application servers.
Application servers provide the runtime environment for application code. They provide containers and services that specialize in enabling the execution of specific Java application components. Each application server runs in its own Java Virtual Machine (JVM).


A node is a logical grouping of server processes managed by WebSphere and that share common configuration and operation control. A node is a grouping of managed or unmanaged servers. A node usually corresponds to a logical or physical computer system with a distinct IP host address. Nodes cannot span multiple computers. Node names usually are identical to the host name for the computer.

Nodes in the network deployment topology can be managed or unmanaged. A managed node has a node agent process that manages its configuration and servers. Unmanaged nodes do not have a node agent.

"AC" : A node corresponds to a physical computer system with a distinct IP host address. The node name is usually the same as the host name for the computer. The following table lists the nodes in this cell. You can add new nodes into the cell by clicking on "Add Node" and specifying a remote, running WebSphere Application Server instance


The node agent represents the node in the management cell and keeps the configuration up to date. Node agents are administrative agents that represent a node to your system and manage the servers on that node. Node agents monitor application servers on a host system and route administrative requests to servers.

A node group is a new concept introduced with WebSphere Application Server V6. A node group is a grouping of nodes within a cell that have similar capabilities. A node group is a collection of managed nodes.


If a node agent is managing a WAS, the (re)start parameters are specified here :

  1. login to Integrated Solutions Console
  2. expand Servers + Server types + WebSphere application servers
  3. < select a specific server >
  4. expand "Server Infrastructure" and "Java and Process Management"
  5. click on "Monitoring policy"
  6. select parameters

Gracias, Bruno !


A cell is a grouping of nodes into a single administrative domain. A cell is a configuration concept, a way for administrators to logically associate nodes with one another.

Deployment Manager, dmgr

Deployment managers are administrative agents that provide a centralized management view for all nodes in a cell, as well as management of clusters and workload balancing of application servers across one or several nodes in some editions. A deployment manager hosts the administrative console. A deployment manager provides a single, central point of administrative control for all elements of the entire WebSphere Application Server distributed cell. Each cell contains one deployment manager.

Administrative service

The administrative service runs within each server JVM. In Base and Express, the administrative service runs in the application server. In Network Deployment, each of the following hosts an administrative service:

The administrative service provides the necessary functions to manipulate configuration data for the server and its components. The configuration is stored in a repository in the server's file system.

WAS 6.0 Technical Overview, REDP3918.pdf, page 15 of 64


Celula / Nodo / Server / Cluster ======= ===== ======= ======== logico fisico fisico logico Nodo == Maquina Requiere un Node Agent. Server == JVM Celula : agrupa Nodos Requiere un Deployment Manager = WAS con herramientas. Cluster : agrupa Servers

Sub-products

Amunt!   Top of page

WAS product family and products

Network Deployment has additional elements that allow for more advanced topologies such as workload management, scalability, high availability, and central management of multiple application servers.

With Network Deployment, you can build a distributed server configuration, which enables central administration, workload management, and failover. In this environment, you integrate one or more application servers into a cell that is managed by a deployment manager. The application servers can reside on the same machine as the deployment manager or on multiple separate machines. Administration and management is handled centrally from the administration interfaces via the deployment manager.

With this configuration, you can create multiple application servers to run unique sets of applications and then manage those applications from a central location. However, more importantly, you can cluster application servers to allow for workload management and failover capabilities. Applications that you install in the cluster are replicated across the application servers. When one server fails, another server in the cluster continues processing. Workload is distributed among Web containers and Enterprise JavaBeans containers in a cluster using a weighted round-robin scheme.

WAS 6.0 Technical Overview, REDP3918.pdf, page 3 of 64

WebSphere Extended Deployment extends WebSphere Application Server Network Deployment Version 6.0.2, providing an enhanced quality of service in four primary areas:

WebSphere Extended Deployment introduces virtualization and automation. It delivers a high performance, easily manageable and dynamically scalable environment for distributed WebSphere applications.

What is WS Extended Deployment ? [publib]

Network Deployment provides an operating environment with advanced performance and availability capabilities in support of dynamic application environments.

WAS product family


CheckList

Amunt!   Top of page

  • crear Logs en otro FileSystem
  • crear grupo wasgroup y mqm
  • crear usuarios was1 y mqm con clave
  • instalar MQ y luego parches MQ
  • instalar WAS ( [cd]:\WAS\install.exe )
  • crear perfil Deployment Manager
  • verificar instalación
  • crear perfil Application Server
  • verificar instalación
  • instalar parches WAS
  • federar nodo a celda
  • crear Virtual Host
  • incorporar DefaultApplication
  • usar snoop
  • activar seguridad
  • instalar WAS en PC-1.
    Services log using usr/pwd with "act as ..." & "log as ..."
  • crear perfil Deployment Manager
  • verificar instalación
  • crear perfil Application Server (crea Server1 en PC-1)
  • verificar instalación
  • instalar parches WAS
  • federar nodo a celda
  • instalar WAS en PC-2 (Node02) & instalar parches WAS
  • crear perfil Application Server (crea Server1 en PC-2)
  • crear cluster Clust01 en dmgr (PC1)
  • añadir Server-2 (nuevo) a Clust01 usando Node02
    Servers, Clusters, click Cluster-Name, "Cluster Members".
    "New", Select Node := Node02
    "Generate Unique HTTP ports := NO",
    as we have 2 machines / nodes / IPs.

Instalació

Amunt!   Top of page

Use /WAS/install command or launchpad.bat

  Com es tria el idioma ?  

Full install includes :

Default install locations :

Deployment Manager := Dmgr01 A deployment Manager administers Application Servers that are federated into its cell. Node Name := w2kwasCellManager01 Host Name := w2kwas Cell Name := w2kwasCell01 The Node Name is for administration by the deployment manager. The name must be unique within the cell. The Host Name is the DNS name or the IP address of this computer. The Cell Name is a logical name for the group of nodes administered by this deployment manager.

First steps v 5 : (firststeps.bat)

First steps v 6 : (firststeps.bat del perfil Dmgr01)

First steps v 6 : (firststeps.bat del perfil AppSrv01)

IVT - writes
c:\Program Files\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\dmgr\SystemOut.log

Profile Name := AppSrv01 A deployment Manager administers Application Servers that are federated into its cell. Node Name := w2kwasNode01 Host Name := w2kwas The Node Name is used for administration. If the node is federated, the name must be unique within the cell. The Host Name is the DNS name or the IP address of this computer.

The user account that runs the Windows service must have the following user rights :

See it in "Administrative Tools" + "Local Security Policy" + "Local Policies" + "User Rights Assignment"

Change it (to "was1" user) in "Services" + "IBM ... Cell Manager" + boton derecho + "Properties" + "Log On".

IVT - writes
c:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1\SystemOut.log

To federate the Application Server, use either the addNode command or the administrative console of the deployment manager. If you use the administrative console, the Application Server must be running.

Adding node
ADMU0001I: Begin federation of node w2kwasNode01 with Deployment Manager at w2kwas:8879.
ADMU0009I: Successfully connected to Deployment Manager Server: w2kwas:8879
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU2010I: Stopping all server processes for node w2kwasNode01
ADMU0024I: Deleting the old backup directory.
ADMU0015I: Backing up the original cell repository.
ADMU0012I: Creating Node Agent configuration for node: w2kwasNode01
ADMU0014I: Adding node w2kwasNode01 configuration to cell: w2kwasCell01
ADMU0016I: Synchronizing configuration between node and cell.
ADMU0018I: Launching Node Agent process for node: w2kwasNode01
ADMU9990I:
ADMU0300I: Congratulations! Your node w2kwasNode01 has been successfully incorporated into the w2kwasCell01 cell.
ADMU9990I:
ADMU0306I: Be aware:
ADMU0302I: Any cell-level documents from the standalone w2kwasNode01Cell configuration have not been migrated to the new cell.
ADMU0307I: You might want to:
ADMU0303I: Update the configuration on the w2kwasCell01 Deployment Manager with values from the old cell-level documents.
ADMU9990I:
ADMU0003I: Node w2kwasNode01 has been successfully federated.

The new node will not be available in the console until you log in again

Logout from the WebSphere Administrative Console

Now we can see cell w2kwasCell01 has 2 nodes :

w2kwasCellManager01 --------- Deploy Manager w2kwasNoder01 --------------- Application Server

The later (at Server1) has the snoop application available at http://ip:9080/snoop/


Ports

Amunt!   Top of page

dmgr

Administrative console port 9060 Administrative console secure port 9043 Bootstrap port 9809 SOAP connector port 8879 SAS SSL ServerAuth port 9401 CSIV ServerAuth listener port 9403 CSIV2 MutiAuth listener port 9402 ORB listener port 9100 Cell discovery port 7277 High availability manager communications port 9352

Those are the Default values

Can be reached thru Dmgr Admin Console, System Administration, Deployment manager, Additional Properties, "Ports".

App Srv

Using "Administrative Console", go "Application servers", select a server, then "Ports".

Administrative console port (WC_adminhost) 9061 Administrative console secure port (WC_adminhost_secure) 9044 HTTP transport port (WC_defaulthost) 9080 HTTPS transport port (WC_defaulthost_secure) 9443 Bootstrap port 9810 SOAP connector port SOAP_CONNECTOR_ADDRESS 8880 SAS SSL ServerAuth port SAS_SSL_SERVERAUTH_LISTENER_ADDRESS 9404 CSIV ServerAuth listener port CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS 9405 CSIV2 MutiAuth listener port CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS 9406 ORB listener port ORB_LISTENER_ADDRESS 9101 High availability manager communications port DCS_UNICAST_ADDRESS 9353 Service integration port SIB_ENDPOINT_ADDRESS 7276 Service integration secure port SIB_ENDPOINT_SECURE_ADDRESS 7286 Service integration MQ interoperability port SIB_MQ_ENDPOINT_ADDRESS 5558 Service integration MQ interoperability secure port SIB_MQ_ENDPOINT_SECURE_ADDRESS 5578

So, for next server (Server2) those values (in alphabetical order) would be :

BOOTSTRAP_ADDRESS w2kwas 9811 CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS w2kwas 9409 CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS w2kwas 9408 DCS_UNICAST_ADDRESS w2kwas 9355 ORB_LISTENER_ADDRESS w2kwas 9102 SAS_SSL_SERVERAUTH_LISTENER_ADDRESS w2kwas 9407 SIB_ENDPOINT_ADDRESS * 7278 SIB_ENDPOINT_SECURE_ADDRESS * 7287 SIB_MQ_ENDPOINT_ADDRESS * 5559 SIB_MQ_ENDPOINT_SECURE_ADDRESS * 5579 SOAP_CONNECTOR_ADDRESS w2kwas 8881 WC_adminhost * 9062 WC_adminhost_secure * 9045 WC_defaulthost * 9081 WC_defaulthost_secure * 9444

Commands

Amunt!   Top of page

Veure la versió del WAS :

/opt/IBM/WebSphere/AppServer/bin/versionInfo.sh o versionInfo.bat

Veure la versió del IHS :

/opt/IBM/IHS/bin/apachectl -version

Veure la versió del PLUGIN :

/opt/IBM/WebSphere/Plugins/bin/versionInfo.sh

Veure el estat del Deploy Manager :

/opt/IBM/WebSphere/AppServer/profiles/<deploy manager>/bin/serverStatus.sh -all

Per administrar el IHS des la consola administrativa de WAS, ha de estar actiu el procés admin, escoltant al port 8008. S'engega així :

/opt/IBM/IHS/bin # ./adminctl start

La seva configuració es troba a

/opt/IBM/IHS/conf/admin.conf

Administració "command line" de la consola administrativa :

/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh

Bon consell : learn Python ! {see "installear.py" !}


Amunt! Top Amunt!
Using command line tools

url

All command line tools function relative to a particular profile. If you run a command from a app_server_root/bin directory, the command runs within the default profile. To specify a different profile, use one of the following methods:

wasprofile wasprofile -lstProfiles : [Dmgr01, AppSrv01]
wasprofile -delete -profileName AppSrv01
  Server-related
startServer reads the configuration file for the specified application server and starts the server
stopServer  
serverStatus serverstatus -all
  Node-related
addNode to a Cell
startNode  
stopNode stop nodeAgent
syncNode  
removeNode  
cleanupNode  
  dmgr-related
startManager  
stopManager  
status ...\profiles\Dmgr01\bin > serverstatus dmgr
  other
backupConfig
restoreConfig
EARExpander
GenPluginCfg
versionInfo displays the product version and Fix Packs installed.
genVersionReport
historyInfo
genHistoryReport

Node Agent does not seem to work :

  1. make sure the node agent has been added to the NDM : open "System Admin -> Node Agent" list.
  2. see if that node agent is running : serverstatus -all
  3. start it using /AppServer/bin/StartNode.bat command

url

Start / stop commans

See \\T430\sebas\WAS\scripts\Start_Stop>

Display profiles

Interesting command :

C:\IBM\WebSphere\AppServer\bin> manageprofiles.bat -help ; deix un log detallat a c:\IBM\WebSphere\AppServer\logs\manageprofiles\ Function: Creates, lists, alters or deletes profiles Syntax: manageprofiles - - ... The available modes are: create augment delete unaugment unaugmentAll deleteAll listProfiles listAugments backupProfile restoreProfile getName getPath validateRegistry validateAndUpdateRegistry getDefaultName setDefaultName response help Note: Command-line arguments are case sensitive. Note: If argument accepts a parameter containing spaces, the parameter must be enclosed in "double quotes". Note: The default profile template is "default" and may be overridden by the -templatePath switch. Note: Mode specific arguments are described in the detailed help for each mode. To see the detailed help on each mode enter: - -help

En el nostre cas:

C:\IBM\WebSphere\AppServer\bin> manageprofiles -listProfiles [STSCDMgrProfile, STSCAppProfile, proxy-sunSTPPNProfile1, meeting-sSTMPNProfile1, st852-sunSTMSPNProfile1]

Surt el mateix que

c:\> dir C:\IBM\WebSphere\AppServer\profiles\ 02/29/2012 04:12 PM <DIR> proxy-sunSTPPNProfile1 02/28/2012 01:54 PM <DIR> STSCAppProfile 02/24/2012 01:55 PM <DIR> STSCDMgrProfile

Profile registry exists:

type C:\IBM\WebSphere\AppServer\properties\profileRegistry.xml <?xml version="1.0" encoding="UTF-8"?><profiles> <profile isAReservationTicket="false" isDefault="true" name="STSCDMgrProfile" path="C:\IBM\WebSphere\AppServer\profiles\STSCDMgrProfile" template="C:\IBM\WebSphere\AppServer\profileTemplates\management"/> <profile isAReservationTicket="false" isDefault="false" name="STSCAppProfile" path="C:\IBM\WebSphere\AppServer\profiles\STSCAppProfile" template="C:\IBM\WebSphere\AppServer\profileTemplates\default"/> <profile isAReservationTicket="false" isDefault="false" name="proxy-sunSTPPNProfile1" path="C:\IBM\WebSphere\AppServer\profiles\proxy-sunSTPPNProfile1" template="C:\IBM\WebSphere\AppServer\profileTemplates\default"/> <profile isAReservationTicket="false" isDefault="false" name="meeting-sSTMPNProfile1" path="C:\IBM\WebSphere\AppServer\profiles\meeting-sSTMPNProfile1" template="C:\IBM\WebSphere\AppServer\profileTemplates\default"/> <profile isAReservationTicket="false" isDefault="false" name="st852-sunSTMSPNProfile1" path="C:\IBM\WebSphere\AppServer\profiles\st852-sunSTMSPNProfile1" template="C:\IBM\WebSphere\AppServer\profileTemplates\default"/> </profiles>

Display SERVERs for every profile:

c:\IBM\WebSphere\AppServer\profiles\STSCAppProfile\bin> serverStatus.bat -all ADMU0116I: Tool information is being logged in file C:\IBM\WebSphere\AppServer\profiles\STSCAppProfile\logs\serverStatus.log ADMU0128I: Starting tool with the STSCAppProfile profile ADMU0503I: Retrieving server status for all servers ADMU0505I: Servers found in configuration: ADMU0506I: Server name: nodeagent ADMU0506I: Server name: STConsoleServer ADMU0508I: The Node Agent "nodeagent" is STARTED ADMU0508I: The Application Server "STConsoleServer" is STARTED

Fixes

Amunt!   Top of page


Amunt! Top Amunt!
WAS administration

Engrunes d'administració de WAS

Error log language
-Duser.language=en
  1. abrir WAS script console :
    c:\> wsadmin -lang jython
  2. ver que hay en un server :
    AdminTask.showJVMProperties('[-serverName DCRules1 -nodeName WODMDCenterNode01]');
  3. configurar language :
    AdminTask.setGenericJVMArguments('[-serverName DCRules1 -nodeName WODMDCenterNode01 -genericJvmArguments "-Duser.language=en -Dcom.ibm.cacheLocalhost=true"]');

De nuevo, gracias, Bruno !

VERBOSEGC

How to disable the garbage collector verbose output ? Es un parametre a la JVM ? Quin fitxer és ?

  1. ISC = open Integrated Solutions Console
  2. [+] Servers
  3. [+] Server Types
  4. click "WebSphere application servers"
  5. on the right-panel, click on specific server name
  6. on right-hand panel, expand [+] Java and Process Management and click on "Process Definition"
  7. on next screen, click on "Java Virtual Machine", under "Additional Properties"
  8. you can see the "Verbose garbage collection" checkbox, as well as "Generic JVM arguments"

Per assignar mes memoria a Eclipse (from-0-2-hero), posem:

-Xmx1024m
jython & console commands

article

A la dreta, dins el quadre "Help", a sota de Page help", hi ha una entrada anomenada "Command Assitance" on hi surt un link "View administrative scripting command for last action" !

Change user's password

(sag 20121108) "simone2012" -> no jython

wsadmin

You can start the scripting client when no server is running, if you want to use only local operations. To run in local mode, use the wsadmin.bat -conntype NONE option to start the scripting client. You receive a message that you are running in the local mode

If you are deploying an application in the local mode, you must modify the wsadmin.bat or wsadmin.sh command file in the install_root/bin directory. Add the following lines of code to the wsadmin file, right after the call to the setupCmdLine.bat file:

SET PATH=%WAS_PATH%;%PATH%

Amunt! Top Amunt!
Administrative security
Disabling administrative security

If you can't log onto Sametime Console, disable security.

There are 2 methods for disabling security

by way of wsadmin command
  1. stop the servers, as we will work in local mode
  2. <WAS_HOME>/bin/> wsadmin -conntype NONE { usually at c:\IBM\WebSphere\AppServer\bin }
  3. wsadmin> securityoff
  4. wsadmin> exit
  5. restart the servers
  6. enable the security from administrative console
  7. restart the servers
C:\IBM\WebSphere\AppServer\bin> wsadmin -conntype NONE WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode. WASX7029I: For help, enter: "$Help help" wsadmin> securityoff LOCAL OS security is off now but you need to restart server1 to make it affected. wsadmin> exit
by editing security.xml file
  1. create a copy for security.xml file, in case you need to roll back.
  2. disable the security from the security.xml file
    Change the very first occurrence of enabled="true" to enabled="false"
  3. restart the servers
  4. enable the security from administrative console
  5. restart the servers

url

Enabling administrative security from admin console

En quin moment es posa usr/pwd ?

Problem : wasdmin usr/pwd stopped working

https://st852-suno.bar.es.hal.com:8701/ibm/console/ :

[10/31/12 15:38:11:265 CET] 00000037 WebCollaborat A SECJ0129E: Authorization failed for user wasadmin:default WIMFileBasedRealm while invoking GET on admin_host:/ibm/console/, Authorization failed, Not granted any of the required roles: administrator operator configurator monitor nobody [10/31/12 15:38:11:359 CET] 00000037 webcontainer E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: A WebGroup/Virtual Host to handle /favicon.ico has not been defined.
Changing wasadmin password

If your system is configured to use the internal user registry and you have a stand-alone installation, do not use the web console to change the WAS administrator password.

  1. stop WAS
  2. change the password by using the DirectoryAdmin command:
    Linux: /opt/IBM/InformationServer/ASBServer/bin/DirectoryAdmin.sh -user -userid wasadmin -password password Windows: C:\IBM\InformationServer\ASBServer\bin\DirectoryAdmin.bat -user -userid wasadmin -password password
  3. run the AppServerAdmin command with the -was option to update the credentials across your configuration :
    Linux: /opt/IBM/InformationServer/ASBServer/bin/AppServerAdmin.sh -was -user wasadmin1 -password mypassword Windows : C:\IBM\InformationServer\ASBServer\bin\AppServerAdmin.bat -was -user wasadmin1 -password mypassword

url


Amunt! Top Amunt!
How to start WAS as a Service

So it starts with power-on, and not at Logon time (as with BAT in Startup folder).

Molt interessant : \\WebSphere\AppServer\bin> wasservicehelper.bat : generates the command to execute - just CopyAndPaste it.

wasservice command

url

c:\IBM\WebSphere\AppServer\bin\wasservice -add ST-Server -serverName ???????? -profilePath C:\IBM\WebSphere\AppServer\profiles\profileName -stopArgs "-username wasuser -password waspwd" -encodeParams

Compte !

Verify PATH exists !
How to start WAS service from Admin Console

... so only NA has to be in Windows Services !

  1. log into was admin console
  2. (left) Servers
  3. (left) Server Types + websphere application servers
  4. (right) select your server, as "STMediaServer"
  5. (right) under "Server Infrastructure", expand "Java and Process Management"
  6. click "Monitoring Policy"
  7. under "Node Restart State" menu, select "Running"

Thanks, Bruno, again !


Virtual Host

Amunt!   Top of page


Amunt! Top Amunt!
JVM tuning

WAS v8

Heap Size

Conveniently, WebSphere Application Server (WAS) supports updating JVM parameters using its administration APIs, specifically, AdminConfig object.

import sys Change JVM heap size for all application servers in a cell # New heap size is passed as a parameter to the script max_heap_size=sys.argv[0] # Get the string with config ids of all serves server_confids=AdminConfig.list("Server") # Iterate over all servers - config ids are separated by \n for server_confid in server_confids.split("\n"): server_confid=server_confid.strip() # obtain the type - types are APPLICATION_SERVER, DEPLOYMENT_MANAGER, NODE_AGENT, WEB_SERVER server_type=AdminConfig.showAttribute(server_confid, "serverType") # we're changing the heap size for application servers - we want to exclude node agents, etc. if server_type == "APPLICATION_SERVER": server_name=AdminConfig.showAttribute(server_confid, "name") # this is the query to get JavaVirtualMachine configuration object for a particular server jvm_path="/Server:%s/JavaProcessDef:/JavaVirtualMachine:/" % server_name jvm_confid=AdminConfig.getid(jvm_path) # "modify" accepts a list of lists - each list contains name and value (odd choice I must say, why not use tuples?) AdminConfig.modify(jvm_confid, [["maximumHeapSize", max_heap_size]]) # Commit our changes to the repository AdminConfig.save()

url


Snoop

Amunt!   Top of page

After server1 is running, the Snoop sample application is available at http://localhost:9080/snoop/

In order to have it available, Server1 must be running, as snoop servlet is part of Default Applications module.


WAS 6.0 System Management and Configuration Handbook, SG24-6451.pdf, ch 5.8.11, page 254, 278 of 1040.

Finding the URL for a servlet or JSP

The URL for a servlet or JSP is the path used to access it from a browser. The URL is partly defined in the deployment descriptor provided in the EAR file and partly defined in the deployment descriptor for the Web module containing the servlet or JSP.

To find the URL for a servlet or JSP:

  1. Find the context root of the Web module containing the servlet.
  2. Find the URL for the servlet.
  3. Find the virtual host where the Web module is installed.
  4. Find the aliases by which the virtual host is known.
  5. Combine the virtual host alias, context root, and URL pattern to form the URL request of the servlet/JSP.

For example, to look up the URL for the snoop servlet :

  1. Find the context root of the Web module DefaultWebApplication of the DefaultApplication enterprise application. This Web module contains the snoop servlet.

  2. Find the URL for the snoop servlet:

  3. Find the virtual host where the DefaultWebApplication Web module is installed:

  4. Find the host aliases for the default_host virtual host.

  5. Combine the virtual host alias, context root and URL pattern to form the URL request of the snoop servlet. Requests for the servlet with any of the following URLs will map to the default_host virtual host:

    http://<hostname>:80/snoop http://<hostname>:9080/snoop https://<hostname>:9443/snoop

Código instalado :

c:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\ w2kwasCell01\DefaultApplication.ear\DefaultWebApplication.war\WEB-INF\classes\SnoopServlet.class

Get the code or write it ! (Feb 2006)

Start at developerWorks [***]


Activar Seguridad

Amunt!   Top of page

Infocenter + "Configuring security with scripting" : url

Or was600nd_security.pdf, chapter 13 !

When security is disabled, WebSphere Application Server performance is increased between 10-20%.


Antes de todo, por si hay que volver atras, guardar :

.../IBM/WebSphere/AppServer/etc en c:\temp\save\global\ .../IBM/WebSphere/AppServer/profiles/Dmgr01/etc en c:\temp\save\Dmgr01\ .../IBM/WebSphere/AppServer/profiles/AppSrv01\etc en c:\temp\save\AppSrv\

Y también usar C:\Program Files\IBM\WebSphere\AppServer\bin\backupConfig.bat (que NO copia los ficheros de seguridad).

Global security

Specifies the global security configuration for a managed domain. The following steps are required to turn on security:

  1. Configure LTPA usr/pwd under "Authentication mechanisms".

  2. Configure the desired user registry listed under User registries and set its properties.
    Custom / LDAP / Local OS => Local OS.

  3. Select the Enable global security option on this panel.
    Disable Enforce Java 2 security !

  4. Select the configured user registry type from the Active user registry option on this panel => Local OS

Then, click "OK" (not Apply ...)

Editamos C:\Program Files\IBM\WebSphere\AppServer\profiles\Dmgr01\properties\soap.client.props para asignar :

com.ibm.SOAP.securityEnabled=true com.ibm.SOAP.loginUserid= com.ibm.SOAP.loginPassword=

Seleccionamos :

  • Security
  • Global security
  • General Properties
  • User registries + Local OS : set usr/pwd.
  • Check "Enable global security"
  • Un-Check "Enforce Java-2 security"
  • click "OK
Ahora, una IE hacia http://localhost:9060/ibm/console/secure/logon.do nos redirige a https://localhost:9043/ibm/console/logon.jsp y hay campo de PWD ...

To disable security, just ...

  • un-check "Enable Security"
  • click "OK"
  • Save ...
  • and IPL.

Cluster

Amunt!   Top of page

A server cluster consists of a group of application servers. If one of the member servers fails, requests will be routed to other members of the cluster.

A cluster is a logical collection of application server processes that provides workload balancing and high availability. Application servers in a cluster are members of that cluster and must all have identical application components on them. Other than the applications on them, cluster members do not have to share any other configuration data.



Now, the snoop application is also available on Server2 at URL http://localhost:9081/snoop/

Mind Virtual Host for port 9081 !


High Availability

Amunt!   Top of page

High Availability Solutions, SG24-6688.pdf

url or [\\WAS\RedBooks\v 6\WAS ND 6.0_High Availability Solutions_sg246688.pdf]
Amunt! Top Amunt!
Configuring SMTP

PROFILE_HOME\config\cells\cell_name\nodes\node_name\servers\server_name\process-server\config\100Custom.xml

url


Bibliography

Amunt!   Top of page

WS Application Server zone - tons of links.
Product Overview
WS Application Server library [***] & related libraries. [ \\WAS\Llibres_WAS\6.0\Documentation ]

Migrating, coexisting, and interoperating wasv600nd_mig.pdf
Installing your application serving environment wasv600nd_gs.pdf
Administering applications and their environment wasv600nd_app.pdf
Setting up the application serving environment wasv600nd_env.pdf
Using the administrative clients wasv600nd_admin.pdf
Securing applications and their environment wasv600nd_security.pdf
Developing and deploying applications wasv600nd_devdep.pdf
Troubleshooting and support wasv600nd_trb.pdf
Tuning guide wasv602nd_tune.pdf

And more

WAS version 6.0 Information Center [*** publib ***]   Top !  

welcome_base.htm : Getting started, How do I ? ... perform key tasks,

Tutorials : (1) Education Assistant :

(2) developerWorks.
WS Application Server support - forums, fixes, etc
The base URL for WebSphere Application Server fixes.
V 6. Go from 6.0.0 to 6.0.2. Go from 6.0.2 to 6.0.2.7.

Instalació

Best practices tutorials - curs audio-visual.

Install v 5.1 - docu [boulder]

v 6, 6.1, v 7.

WS Application Server performance info - guides, redbooks, articles, etc.
WS Application Server RedBooks

As SG24-6451 = WAS 6.0 System Management and Configuration HandBook   Top !  
[\\WAS\Llibres_WAS\6.0\]

Part 1. The basics Chapter 1. WebSphere Application Server V6 for distributed platforms Chapter 2. WebSphere Application Server V6 architecture Chapter 3. System management: A technical overview Chapter 4. Getting started with profiles Chapter 5. Administration basics Chapter 6. Administration with scripting Chapter 7. Configuring WebSphere resources Chapter 8. Managing Web servers Chapter 9. Problem determination Part 2. Messaging with WebSphere Chapter 10. Asynchronous messaging Chapter 11. Default messaging provider Part 3. Working with applications Chapter 12. Session management Chapter 13. WebSphere naming implementation Chapter 14. Understanding class loaders Chapter 15. Packaging applications Chapter 16. Deploying applications Chapter 17. WebSphere Rapid Deployment

As SG24-6446 = WAS 6.0 Planning and Design
[\\WAS\RedBooks\v 6]

As SG24-6963 = WAS 6.0_Product Family Overview And Achitecture
[\\WAS\RedBooks\v 6]

  Best !   : redp3918 = WAS 6.0 Technical Overview
[\\WAS\RedBooks\v 6]

IBM Systems Journal, vol 43, No 2, 2004 : WebSphere Application Server.
See \\WS\RevistesWS\SystemsJournal\Vol43No2
From {developerworks}
WS Extended Deployment library or On-Line [publib]

Consola Administrativa

Amunt!   Top of page

URL

If the node is not federated, WAS Administrative console can be found here

http://localhost:9061/ibm/console/
It is removed when the node is federated, and it becomes managed by Deploy Manager :
http://localhost:9060/ibm/console/

La URL en versión 5 és http://servidor:9090/admin/ o http://servidor:9060/ibm/console/ en versión 6 !

Se sap mirant el fitxer
<installation_root>/profiles/<profile_name>/config/cells/<cell_name>/nodes/<node_name>/serverindex.xml
i el fitxer <installation_root>/profiles/<profile_name>/config/cells/<cell_name>/virtualhosts.xml.

Per defecte és WC_adminhost = 9060 i WC_adminhost_secure = 9443

Ha engegat be quan al fitxer SystemOut.log hi trobem el missatge CWWSR0221I: Application started: isclite

How to change administrative console port ?

If you cannot start the administrative console because the console port conflicts with an application that is already running on the machine, change the port number in the

<install_root>/profiles/<profile name>/config/cells/<cell_name>/nodes/<node_name>/servers/<server_name>/server.xml file
and the
<install_root>/profiles/<profile name>/config/cells/<cell_name>/virtualhosts.xml files.

WAS ND v 6, Using the administrative clients, wasv600nd_admin.pdf, page 21 [29/591]

HTTP transport ports can be found in
$WAS_HOME/config/cells/<your cell>/nodes/<node name>/servers/<server name>/server.xml. The HTTP HTTPTransport entry will have attribute sslEnabled="false", while the HTTPS HTTPTransport entry will have attribute sslEnabled="true".

url

You can find it using was console by the path ...

  • servers
  • type := was
  • select "server1"
  • click on "port"
  • scroll down to find "WC_adminhost"
  • the ISC URL is http://ip:port/ibm/console

Trassa en engegar :
Deploy Manager : C:\WAS51\DMgr\logs\dmgr\StartServer.log
Server : C:\WAS51\AppServer\logs\server1\startServer.log

Console requirements for the Browser ?

Menu structure

From f:\MQ\Projects\BBVA\WAS\Consola\MENUS.TXT => CD

1.- Servidores 1.1.- Servidores de aplicaciones 1.1.1.- < select server > 1.1.2.- propiedades adicionales 1.1.2.1.- Servicio de transacciones 1.1.2.2.- Contenedor Web 1.1.2.2.1.- Agrupación de hebras 1.1.2.2.2.- Gestión de sesiones 1.1.2.2.3.- Transportes de HTTP 1.1.2.2.3.1.- "6680" - puerto para comunicar peticiones al contenedor Web 1.1.2.2.4.- Propiedades personalizadas 1.1.2.3.- Contenedor de EJB 1.1.2.4.- Servicio de antememoria dinámica 1.1.2.5.- Registro cronológico y rastreo 1.1.2.5.1.- Rastreo de diagnóstico 1.1.2.5.2.- Anotaciones cronológicas de JVM 1.1.2.5.3.- Anotaciones cronológicas de proceso 1.1.2.5.4.- Anotaciones cronológicas de servicio de IBM 1.1.2.6.- Servicio de receptor de mensajes 1.1.2.6.1.- Puertos receptores < Nombre > Nombre JNDI de la fábrica de conexiones Nombre JNDI del destino 1.1.2.6.2.- Agrupación de hebras 1.1.2.6.3.- Propiedades personalizadas 1.1.2.7.- Servicio ORB 1.1.2.8.- Propiedades personalizadas 1.1.2.9.- Servicios de administración Autónomo ? Conector preferido ? SOAP_Connector/ RMI_Connector 1.1.2.9.1.- Conectores JMX 1.1.2.9.2.- Proveedores de MBean de extensión 1.1.2.9.3.- Servicios de depósito 1.1.2.9.4.- Propiedades personalizadas 1.1.2.10.- Servicio de rastreo de diagnóstico Salida de rastreo - Nombre de archivo = $(SERVER_LOG_ROOT)/trace.log 1.1.2.11.- Servicio de depuración Puerto de depuración de JVM = 7777 Puerto de depuración de BSF = 4444 1.1.2.12.- Anotaciones cronológicas de servicio de IBM Nombre de archivo = $(LOG_ROOT)/activity.log 1.1.2.13.- Servicios personalizados 1.1.2.14.- Componentes de servidor 1.1.2.14.1.- Servidor de nombres 1.1.2.14.2.- Servidor de aplicaciones 1.1.2.14.2.1.- Servicio de transacciones 1.1.2.14.2.2.- Contenedor Web 1.1.2.14.2.3.- Contenedor de EJB 1.1.2.14.2.4.- Servicio de antememoria dinámica 1.1.2.14.2.5.- Registro cronológico y rastreo 1.1.2.14.2.6.- Servicio de receptor de mensajes 1.1.2.14.2.7.- Servicio ORB 1.1.2.14.2.8.- Propiedades personalizadas 1.1.2.14.2.9.- Servicios de administración 1.1.2.14.2.10.- Servicio de rastreo de diagnostico 1.1.2.14.2.11.- Servicio de depuración 1.1.2.14.2.12.- Anotaciones cronológicas de IBM 1.1.2.14.2.13.- Servicios personalizados 1.1.2.14.2.14.- Componentes del servidor 1.1.2.14.2.15.- Definición de proceso 1.1.2.14.2.16.- Servicio de supervisión del rendimiento 1.1.2.14.2.17.- Puntos finales 1.1.2.14.2.18.- Cargador de clases 1.1.2.14.2.19.- Servicios Web : enlaces por omisión para Web Services Security 1.1.2.14.2.20.- Configuración del Asesor de rendimiento de tiempo de ejecución 1.1.2.14.3.- Servidores JMS Nombre de colas 1.1.2.14.3.1.- Punto final del puerto de seguridad Numero del puerto TCP/IP del puerto receptor utilizado internamente. 1.1.2.14.3.2.- Propiedades personalizadas 1.1.2.14.3.3.- Componentes de servidor 1.1.2.14.3.4.- Servicios de administración 1.1.2.14.3.5.- Servicios de rastreo de diagnóstico 1.1.2.14.3.6.- Anotaciones cronológicas de servicio de IBM 1.1.2.14.3.7.- Definición de proceso 1.1.2.14.3.8.- Puntos finales 1.1.2.15.- Definición de proceso Nombre ejecutable : $(JAVA_HOME)/bin/java Directorio de trabajo : $(USER_INSTALL_ROOT) 1.1.2.15.1.- Máquina virtual Java 1.1.2.15.2.- Ejecución de proceso 1.1.2.15.3.- Anotaciones cronológicas de proceso 1.1.2.15.4.- Entradas de entorno 1.1.2.15.5.- Politicas de supervisión 1.1.2.15.6.- Registro cronológico y rastreo 1.1.2.16.- Servicio de supervisión del rendimiento 1.1.2.17.- Puntos finales SOAP_CONNECTOR_ADDRESS := 8880 1.1.2.18.- Cargador de clases 1.1.2.19.- Servicios Web : enlaces por omisión para Web Services Security 1.1.2.19.1.- Anclas de confianza 1.1.2.19.2.- Almacen de certificados de colecciones 1.1.2.19.3.- Localizadores de claves 1.1.2.19.4.- Evaluadores de ID de confianza 1.1.2.19.5.- Correlaciones de inicio de sesión 1.1.2.20.- Configuración del asesor de rendimiento de tiempo de ejecución 1.1.2.21.- Seguridad del servidor 1.2.- Servidores JMS 1.3.- Clusteres 1.4.- Topologia de clusteres 2.- Aplicaciones 2.1.- Aplicaciones de empresa 2.2.- Instalar una nueva aplicación 3.- Recursos 3.1.- Proveedores de JDBC 3.2.- Proveedores genéricos de JMS 3.3.- Proveedores de JMS de WebSphere 3.4.- Proveedores de JMS de WebSphere MQ 3.5.- Proveedores de correo 3.6.- Proveedores de entorno de recursos 3.7.- Proveedores de URL 3.8.- Adaptadores de recursos 4.- Seguridad 4.1.- Seguridad global 4.2.- SSL 4.3.- Mecanismos de autenticación 4.3.1.- LTPA 4.4.- Registros de usuarios 4.4.1.- Sistema operativo local 4.4.2.- LDAP 4.4.3.- Personalizado 4.5.- Configuración de JAAS 4.5.1.- Inicios de sesión de la aplicación 4.5.2.- Inicios de sesión del sistema 4.5.3.- Datos de autenticación de J2C 4.6.- Protocolo de autenticación 4.6.1.- Autenticación de entrada CSIv2 4.6.2.- Autenticación de salida CSIv2 4.6.3.- Transporte de entrada CSIv2 4.6.4.- Transporte de salida CSIv2 4.6.5.- Transporte de entrada SAS 4.6.6.- Transporte de salida SAS 4.7.- Servicios Web 4.7.1.- Propiedades 4.7.2.- Anclas de confianza 4.7.3.- Almacen de certificados de colecciones 4.7.4.- Localizadores de claves 4.7.5.- Evaluadores de ID de confianza 4.7.6.- Correlaciones de inicio de sesión 5.- Entorno 5.1.- Actualizar el plug-in del servidor Web 5.2.- Sistemas principales virtuales 5.2.1.- < seleccionar nombre lógico > 5.2.2.- Propiedades adicionales 5.2.2.1.- Alias de sistema principal 5.2.2.1.1.- "6680" - alias de DNS por los que se conoce el sistema principal 5.2.2.2.- Tipos de MIME 5.3.- Gestionar variables de WebSphere 5.4.- Bibliotecas compartidas 5.5.- Dominios de duplicación interna 5.6.- Denominación 5.6.1.- Enlaces de espacio de nombres 5.6.2.- Usuarios de CORBA Naming Service 5.6.3.- Grupos de CORBA naming Service 6.- Administración del sistema 6.1.- Célula 6.2.- Gestor de despliegue 6.3.- Nodos 6.4.- Agentes de nodo 6.5.- Usuarios de consola 6.6.- Grupos de consola 7.- Resolución de problemas 7.1.- Anotaciones cronológicas y rastreo 7.2.- Problemas de configuración 7.3.- PMI Request Metrics

Per a tenir "Consola Administrativa" (Portal Server + Content Manager)

[ que us cal per engegar el "Verbose Garbage Collector" ] només cal que engegueu el server1.

Es a dir, la comanda "màgica" es startserver server1

Després de una curta estoneta, tindreu la consola administrativa a la URL

http://ip_de_la_maquina:9090/admin/ versio 5 http://ip_de_la_maquina:9060/ibm/console/ versio 6


Amunt! Top Amunt!
Installing and configuring a JMS provider

From [*** publib.boulder ***]

Or
  Installing WebSphere MQ as the JMS provider
or
  Installing WebSphere embedded messaging as the JMS provider

Backout queue or poison messages

When a message arrives at the destination, the MDB is invoked and its onMessage() method called. If a "poison message" is delivered to an MDB, the application can choose to reject it. In this situation, what happens to the message and how does the application server behave?

A poison message is simply a message that the receiving MDB application is unable to process. It could be that the message has become corrupt, is in an unexpected format, or contains information that cannot be handled by the MDB's business logic. For example, suppose you have an MDB that processes book orders. If the MDB receives an order for a book that doesn’t exist, the message could be considered a poison message.

If a poison message is delivered to an MDB, the bean can do one of three things:

How WebSphere Application Server handles poison messages : url
Using an MDB that always rolls back a message to test the handling of poison messages (WebSphere MQ V7, WebSphere Application Server V7) url.

Pregunta : com indica l'aplicacio que el missatge s'ha processat correctament i no s'ha de fer rollback ?


Amunt! Top Amunt!
Seguridad Avanzada

Enlaces :

El material del curso está en:


Amunt! Top Amunt!
J2EE

J2EE contains the Java Message Service (JMS) specification, which defines an API that applications can utilize to access a messaging provider (a product implementation that provides the infrastructure that supports messaging, such as IBM WebSphere MQ or the Messaging engine component used here). JMS is the API specification only and does not describe the actual messaging product or provider. This is similar to accessing relational databases through JDBC, where JDBC defines the access mechanism but does not define the actual relational database product. All the interaction with the J2EE server so far was over HTTP. How do you access J2EE over messaging?

Note that MDBs have little in common with entity EJBs and session EJBs except for executing in the same J2EE container. The MDB is invoked by the overall J2EE infrastructure and does not have any external home or local interfaces.

Experience J2EE using WAS 6.1, SG24-7297, page 357 [376/472]


Amunt! Top Amunt!
SAG Application

VM (Rosa) : Lola(8.137.164.13)+F:\r_dias_win2k\

Objectiu : tenir un MDB que faci "eco" a un RFH2 amb "ADP_ECO_WAS" o cridi un EJB que faci eco a un "EJB_ECO" dins un RFH2.

General objectives are :

Gain an understanding of J2EE fundamentals by


ADP_ECO_WAS : MDBsvrBean

StrEntDst = (String) properties.get("COD_ENT_DST"); StrCodSvr = (String) properties.get("COD_SERVEI"); if (StrCodSvr.equals("ADP_ECO_WAS")) { rspmq.exec_snd ( StrEntDst, StrEntOrg, StrTypMsg, "C", DatUsr, "Eco mdb j2ee " + DtaMsg ) ; } else { if ( StrTypSrv.equals("EJB") ) { EJBHome EJBIntf =(javax.ejb.EJBHome) javax.rmi.PortableRemoteObject.narrow(ctx.lookup(PathUrlSrv), EJBHome.class); EJBMetaData md = EJBIntf.getEJBMetaData(); Class homeClass = md.getHomeInterfaceClass(); Class remoteClass = md.getRemoteInterfaceClass(); EJBObject EJBIntfRemote = (EJBObject) invoke(homeClass,EJBIntf,"create"); String DtaRsp = (String) invokeProc ( remoteClass, EJBIntfRemote, "MessageBrokerProcess", DtaMsg ) ; } else { if ( StrTypSrv.equals("WS") ) { String StrRsp = callWebService ( PathUrlSrv, DtaMsg, null ) ;

EJB_ECO : EcoBrokerEJBBean

Oracle :

"EJB_ECO","ejb/es.bcn.idj.test.ejb.broker.EcoBrokerEJBHome","EJB" "WS_ECO", "http://rweb201/APPS/idjtest/services/DummyMessageBroker?wsdl///operation=eco","WS"

WAS admin console

The server is managed like this:

call C:\IBM\WebSphere\AppServer\profiles\DevAppSrv01\bin\serverStatus.bat server1 C:\IBM\WebSphere\AppServer\profiles\DevAppSrv01\logs\server1\serverStatus.log C:\IBM\WebSphere\AppServer\profiles\DevAppSrv01\bin>startServer.bat server1 C:\IBM\WebSphere\AppServer\profiles\DevAppSrv01\logs\server1\startServer.log https://99.137.164.57:9043/ibm/console/ (u/p : admin/admin)
Install

CM & PS (portal)

Amunt!   Top of page

SSO - Curs Admin Lotus Dec'2009

url.

WAS LPTA key export

Enable "Web inbound security attribute propagation" and Disable "Interoperability mode".

url

Federated

Ejecutar la tarea wp-change-portal-admin-user, pero esta vez añadiendo a los que ya pusimos también el parámetro -DnewAdminGroupId= El valor es el DN completo del grupo cn=wpsadmins,o=LDAP ...

Clean users
./xmlaccess.sh -user wpadmin -password wpaadminpwd -url portalv8.bar.es.hal.com:10039/wps/config -in ../doc/xml-samples/CleanupUsers.xml -out /home/eli/cleanusersEli.xml

[portalwiki], cmd line tool

Fitxers de configuracio interessants
wimconfig.xml wklpc.properties

Curs Admin Portal Dec'2009

Portal wiki -> (best doc) Master Table of Contents for wiki - Building a website using WCM 6.1.

JCP.

Creix sens limit : C:\IBM\WebSphere\wp_profile\PortalServer\deployed

Portal (multiplatform) Information Center
WS Portal for Multiplatforms 5.1.x docu
Notes.net = developerWorks site
Portal base url
Portal update installer

Unpack "7.822.085 PortalUpdateInstaller.zip" into {wp_root}\update.
Interim fixes can be downloaded to the {wp_root}\fixes directory.
Fix packs can be downloaded to the {wp_root}\fixpacks directory.

Comandos interesantes
SetupCmdLine.bat E:\WebSphere\AppServer\bin estableix el entorn de la JVM.
versionInfo.bat E:\WebSphere\AppServer\bin mostra la versió del WAS.
WPVersionInfo.bat E:\WebSphere\PortalServer\bin mostra la versió del Portal, etc etc
WPHistoryInfo.bat E:\WebSphere\PortalServer\bin mostra el historial de parches del Portal
./WPVersionInfo.sh SuSE 9 + /opt/WebSphere/PortalServer/bin/ mostra la versió del Portal, Web Content Management, etc en Linux
type VersionInfo.log C:\IBM\WebSphere\wp_profile\PortalServer\log\ mostra la versió del Portal que s'ha engegat
Run stopNode for all nodes
Place fixes in /update/fixes/ and run updateWizard from /update/ directory
Display applied fixes :
updateSilent -fix -installDir "d:\WebSphere\AppServer" -fixDir "d:\WebSphere\AppServer\update\fixes"

Mind {wp_home}/version/history/event.history

Must Gather info : url or url
wsadmin command prompt :

RedBook WAS for developers v7

C:\IBM\WebSphere\AppServer\bin> wsadmin.bat
Thread Analyzer tool - url
[T400:\Java\ThreadAnalyzer]
How to enable verboseGC - url
Logs CM (content manager) : d:\WebSphere\PortalServer\wcm\connect\log
Export / import users

c:\Archivos de programa\WebSphere\PortalServer\doc\xml-samples\ExportAllUsers.xml

* Export users from source server: xmlaccess.bat -in ExportAllUsers.xml -user wpsadmin -password wpsadmin -url http://source_portal_server:port/wps/config -out Export_Users_Results.xml * Import into target server: xmlaccess.bat -in Export_Users_Results.xml -user wpsadmin -password wpsadmin -url http://target_portal_server:port/wps/config -out Import_Users_Results.xml
Export / Import more than 200 users

Try increasing the value in {wp_home}/wmm/wmm.xml: maximumSearchResults="200"

Problem: XML import might fail with out-of-memory error An XML import of portal resources might fail with an OutOfMemoryError. Cause: This error results from a limited heap size. Solution: Proceed by the following steps: 1. Start server1 and log in; url = http://localhost:9090/admin/ 2. Navigate to Servers > Application Servers > WebSphere_Portal > Process Definition > Java Virtual Machine 3. Determine the configured maximum heap size; for example, this might be 512 MB. 4. Increase the maximum heap size, for example to 1024 MB. 5. Restart your portal. 6. Run the XML import script again. The OutOfMemoryError should disappear.

Portal, v 5.1.x url "out-of-memory error"

Creating a new portal : (1) and (2)
Installing an empty portal - url

In some situations it is possible that you might want to install an empty portal, where WebSphere Portal is installed normally but no portlets are installed or deployed and no pages are created. This can be useful if you want to transfer an entire portal configuration from one portal to another. For example, you might want to transfer a portal from your test environment to a production environment.

To install an empty portal with the WebSphere Portal installation program, enter the following command from the root directory of the setup CD :

* UNIX: ./install.sh -W installPortletsSequence.active="false" * Windows: install.bat -W installPortletsSequence.active="false"

Before continuing, be sure to have all of your necessary files in place. That is, if you are installing a theme, place the folder containing the theme on the PortalServer in the correct location. The same goes for skins, portlet WARs, etc.

Theme folders go into:
C:\WebSphere\AppServer\installedApps\<nodename>\wps.ear\wps.war\themes\html\

Skin folders go into:
C:\WebSphere\AppServer\installedApps\<nodename>\wps.ear\wps.war\skins\html\

By default, portlet WAR files need to be placed in:
C:\WebSphere\PortalServer\installableApps\

Com "buidar" un portal ? XML para desinstalar todos los portlets.
Portlets that can be removed.
Portal virtual
Move the Portal configuration from a test server to production server

(3 times the same)

* Export configuration from source server: xmlaccess.bat -in ExportRelease.xml -user wpsadmin -password wpsadmin -url http://soure_portal_server.com:port/wps/config -out Source_Server_Cfg.xml * Import into target server: xmlaccess.bat -in Source_Server_Cfg.xml -user wpsadmin -password wpsadmin -url http://destination_portal_server.com:port/wps/config -out Import_Cfg_Results.xml

Nice (and complete) articles : 1, 2

Import errors
XmlAccess import ends with : due to delayed cleanup

Read fix

To solve the immediate problem, use XMLAccess to import the file <wps_home>/doc/xml-samples/Task.xml. This should start the cleanup task immediately and it will run only once. Then try the XMLAccess import again. You can edit Task.xml and import it again to reconfigure the delayed cleanup process. By default, the delete will run on Saturday evening. You may consider disabling delayed cleanup so that Portal pages are removed immediately but be aware that this can have a performance penalty.

Read about delayed cleanup

All samples description
-xmx1024m Java flag
VMware image (WP5101.zip + 01 + 02 = 3,6 GB)
Otra url (WPS: Portal Standalone = 11 GB)
Fixes

Interim FTP
url

Portal 5.1 cumulative fix 2 - upgrade document

Document transfer
  1. create "{wp_root}\update\fixes\" directory.
  2. put DTT.jar/PK18903.jar into this directory
  3. shutdown Portal
  4. install Portal Update Installer : url - unzip into "{wp_root}\update\" directory.
  5. install fix using Portal Update Installer :
    call updatePortal -fix -installdir "c:\IBM\PortalServer" -fixDir "{wp_root}\update\fixes" -install -fixes PK18903
  6. restart Portal - "startserver Server1"
  7. install {wp_root}\jcr\installableApps\icmjcr.ear to the Portal Server using WAS admin console
  8. update 174.923 icmdtt.jar in {wp_root}\jcr\lib directory ! [fix 20-04-2006]
  9. restart Portal
  10. edit {wp_root}\jcr\admin\export.properties to include
    jcr.export.maxFileLength=20 jcr.exportToFile=false jcr.export.path=C:/Exportar_Documentos/ROOTWORKSPACE
  11. run "ant -f export.xml" :
    java -jar C:\IBM\AppServer\lib\ant.jar -f C:/IBM/PortalServer/jcr/admin/export.xml
    This creates a directory tree at "C:\Exportar_Documentos\rootworkspace\".
  12. on the destination machine, edit {wps_home}\jcr\admin\import.properties
  13. run "ant -f import.xml" :
    java -jar C:\IBM\AppServer\lib\ant.jar -f C:/IBM/PortalServer/jcr/admin/import.xml

updatePortal syntax :

For EFix Processing:

updatePortal <propertiesFile> ( -installDir <product install root> [ -fix ] [ -fixDir <ifix repository root> ] [ -install | -uninstall | -uninstallAll ] [ -fixes <space delimited list of ifixes> ] [ -fixJars <space delimited list of ifix jars> ] [ -fixDetails ] [ -wpcpOnly ( -wpcpInstallDir <Content Publisher install root> ) | -skipWPCP ] [ -configProperties propertiesFile ] [ -prereqOverride ] ) | ( -help | -? | /help | /? | -usage )

For FixPack Processing:

updatePortal <propertiesFile> ( -installDir <product install root> [ -fixpack ] [ ( -install | -uninstall -fixpackDir <fixpack repository root> ] -fixpackID <FixPack ID> ] [ -wpcpOnly ( -wpcpInstallDir <Content Publisher install root> ) | -skipWPCP ] [ -includeOptional <space delimited list of components> ] [ -configProperties propertiesFile ] [ -fixpackDetails ] ) | ( -help | -? | /help | /? | -usage )
Enable PDM tracing
  1. Stop the Portal Server
  2. Backup and clear out the log files in {wp_root}\log
  3. Go to the file {wp_root}\shared\app\config\log.properties and append the following line to it:
    traceString=com.ibm.wps.pdm.*=all=enabled:com.ibm.dm.*=all=enabled: com.ibm.icm.*=all=enabled:com.ibm.wps.services.puma.*=all=enabled: com.ibm.wps.puma.*=all=enabled
  4. Start the Portal Server
  5. When the Portal comes back up, reproduce the problem and please provide us with the time on the Portal Server machine when the error occurs.
  6. After reproducing the problem, zip up all the files from the {wp_root}\log directory.

Another way

Enable tracing in the PortalServer\shared\app\config\log.properties file: com.ibm.icm.*=all=enabled: com.ibm.wps.services.puma.*=all=enabled: com.ibm.wps.puma.*=all=enabled
Few configuration files
{wp_root}\config\wpconfig.properties
{wp_root}\wmm\wmm.xml
Upgrade Portal de 5.1.0.1 a 5.1.0.2 (to use nested groups)
url
(1) WAS 5.1.1.8 WAS511_CF8_win.zip 83.261.514 (2) BI 5.1.1.3 WBISF511_CF3_win.zip 210.539.626 (3) WPS 5.1.0.2 + Fix_Pack_22155 WP_PTF_5102.zip 450.635.656
Derby

Portal uses a "derby" database that you better backup once in a while. Read here.

Default ubication : c:\IBM\WebSphere\wp_profile\PortalServer\derby\wpsdb

URLs
URL portal - WebSphere_Portal http://localhost:9081/wps/portal
URL consola administrativa - server1 http://localhost:9090/admin

Amunt! Top Amunt!
Portal hostname change

Perform the following steps to localize a new virtual machine instance:

  1. stop the WebSphere_Portal server running on the virtual machine.
    /opt/IBM/WebSphere/wp_profile/bin/stopServer.sh WebSphere_Portal –user wpadmin –password claudepas

  2. verify that the server1 server is running on the virtual machine. If it is not running, start the server.
    /opt/IBM/WebSphere/wp_profile/bin/startServer.sh server1

  3. update the host name for the virtual machine instance per the instructions of the operating system.
    $

  4. to update the WebSphere Portal host name in the WAS configuration, run the command
    wsadmin.sh -c "\$AdminTask changeHostName {-nodeName node_name -hostName new_host_name}"
    from the wp_profile_root\bin directory. node_name is the node name of the current configuration and new_host_name is the TCP/IP host name of the new virtual machine instance.

  5. optional: Perform the following steps to update the node name in the WAS configuration:
    1. run the command
      wsadmin.sh -c "\$AdminTask renameNode {-nodeName old_node_name -newNodeName new_node_name}"
      to update the node name in the WAS configuration. old_node_name is the original node name of the current configuration and new_node_name is the new node name you will use for this instance.
      Remember: This step is necessary to create a unique node name if you will be federating and clustering this node.
    2. edit the ./setupCmdLine.sh file, located in the wp_profile_root\bin directory and modify the SET WAS_NODE=node_name entry to specify the updated node name.
    3. from the wp_profile_root/ConfigEngine directory, run the command
      ./ConfigEngine.sh rename-node-in-cell-registry -DWasPassword=password -DpreviousNodeName=oldNodeName
      where oldNodeName is the prior value of the node name.

  6. from the wp_profile_root/ConfigEngine directory, run the command
    ./ConfigEngine.sh localize-clone -DWasPassword=password
    to update WebSphere Portal with the information from the WAS configuration.

  7. run the command
    ./ConfigEngine.sh action-clean-scheduled-tasks -DWasPassword=password
    to clear any scheduled tasks. Existing scheduled tasks might reference the old hostname.

  8. restart the server1 server and start the WebSphere_Portal server on the virtual machine.

WebSphere Portal is now ready to be used in this virtual machine instance.

url

Problem we locally have :

[5/22/12 8:58:13:354 EDT] 00000000 LdapRegistryI A SECJ0418I: Cannot connect to the LDAP server ldap://portal.demos.hal.com:389.

Solution [disable security] :

vi /opt/IBM/WebSphere/wp_profile/config/cells/portal/security.xml 2-nd line ... <security:Security xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" ... enabled="false">

And we can start Admin Console to change LDAP settings ...
Security + Global security + General Properties + *Host
"Test Connection" : The test connection operation for LDAP host portalv7.demos.hal.com on port 389 was successful.

But Portal does not start properly :

Error 404: javax.servlet.UnavailableException: Initialization of one or more services failed. [5/22/12 9:47:29:691 EDT] 00000016 SchedulerImpl E SCHD0124E: Unable to initialize wps/Scheduler due to error: com.ibm.ws.extensionhelper.exception.UnableToInitializeException: com.ibm.websphere.ce.cm.StaleConnectionException: [jcc][t4][10380][11951][4.8.87] Required property "portal.demos.hal.com" is unknown host. ERRORCODE=-4222, SQLSTATE=08001DSRA0010E: SQL State = 08001, Error Code = -4,222

There are issues connecting to the database server.

Un altre error similar (/opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemErr.log):

[6/11/12 5:36:35:224 EDT] 00000040 SystemErr R com.ibm.websphere.ce.cm.StaleConnectionException: [jcc][t4][2043][11550][4.8.87] Exception java.net.ConnectException: Error opening socket to server portal.demos.ibm.com/127.0.0.1 on port 50,000 with message: Connection refused. ERRORCODE=-4499, SQLSTATE=08001DSRA0010E: SQL State = 08001, Error Code = -4,499

Verify 2 points : have a line in /etc/services file:

db2c_db2inst1 50000/tcp
and
[root@portal /home]$ su - db2inst1 -bash-3.2$ -bash-3.2/home/db2inst1$ db2 get dbm cfg | grep SVCENAME TCP/IP Service name (SVCENAME) = db2c_db2inst1 -bash-3.2/home/db2inst1$ db2set -all [i] DB2COMM=tcpip [i] DB2AUTOSTART=YES [g] DB2SYSTEM=portal.demos.hal.com [g] DB2INSTDEF=db2inst1 [g] DB2ADMINSERVER=db2admin -bash-3.2$

Amunt! Top Amunt!
JMS Topologies

When developing and testing JMS applications in WebSphere Studio V5, you have several JMS provider options:

url

For monitoring and checking the status of resources, {WAS base with Embedded Messaging} such as queue depths, there are a couple of options. The preferred option is to use the JMX Mbeans provided with Application Serve for monitoring: JMSBasicFunction, JMSAdministration, and EmbeddedJMSAdministration.

V5 - use runmqsc and dspmq. Everything changes in WAS 6 and 7, unless you configure those to use normal MQ *instead of* the embedded SIBus messaging engine.

JMS providers
The JMS functionality that WebSphere v6 provides includes support for three types of JMS providers:

url

"embedded" versus "MQ" JMS providers

The embedded JMS provider provides a robust implementation for WAS V6.1 to WAS V6.1 interaction, but it is not capable of supporting other environments, such as non-Java or non-JMS applications. For those environments, a product called WebSphere MQ is provided, which provides both a JMS and non-JMS messaging infrastructure for a wide variety of clients and platforms.

Experience J2EE using WAS 6.1, SG24-7297, page 389, [407/472]

WAS 6 Service integration

The service integration functionality within WebSphere Application Server V6 supports supports both message-oriented and service-oriented applications. The primary component of this functionality is the service integration bus, which provides the support for messaging and Web services applications. One or more application servers or clusters join a bus to become bus members. The service integration bus becomes a component of the Enterprise Service Bus (ESB).
The service integration functionality provides:

WAS V6 System Management and Configuration Handbook, SG24-6451-00, page 17 [41/1040]


Amunt! Top Amunt!
WAS and MQ

In WAS V6 the WebSphere MQ Client came with WAS as part of the lib directory structure and was referenced with the use the WebSphere environment variable MQ_INSTALL_ROOT.

In WAS V7, the client has been replaced with the WebSphere MQ V7 JCA 1.5 RA and is installed as a resource adapter. The MQ_INSTALL_ROOT variable is no longer used. Instead the native library path for the RA is used to identify the location of the required native libraries.

MQ Configuration

Connection Factory : {gestor de cues}

Custom Properties :

Queue Destinations :

CCDT
String ccdtPath = "http://ccdtsrver/ccdts/qmgrp.tab"; String qmgrName = "*QMGRP"; // ok for MQCONNX, not for a MQOPEN/MQPUT1 ; MQQueueConnectionFactory factory = new MQQueueConnectionFactory(); factory.setCCDTURL(new URL(ccdtPath)); factory.setQueueManager(qmgrName); factory.setTemporaryModel("JMS.TEMPQ.MODEL"); conn = factory.createQueueConnection(); conn.start(); session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); TemporaryQueue tempQ = session.createTemporaryQueue();
.bindings

Creating a .bindings file for UNIX, for InfoSphere Master Data Management Collaboration Server, Version 10.0.0

Issue <MQ_INSTALL_DIR>\Java\bin\JMSAdmin.bat, then this sequence:

  1. InitCtx> def q(INBOUND_QUEUE_NAME)
  2. InitCtx> def q(OUTBOUND_QUEUE_NAME)
  3. InitCtx> def qcf(QUEUE_CONNECTION_FACTORY_NAME) transport(CLIENT) channel(java.channel) host(WMQ_SERVER_IP)
  4. port(WMQ_SERVER_DEFINED_PORT) qmgr(QUEUE_MANAGER_NAME)
  5. InitCtx> end

[publib]

How to test it

Pointer to Samples : [1] 0505_woolf & [2] 0504_barcia.

JMSAdmin.bat

Used to manage JMS objects.

MQ error logs

If Embedded Messaging is used, then AMQERR01.LOG file contents is written into :
SystemOut.log and SystemErr.log, located at <WAS_INSTALL>/profiles/profilename/logs/server1

WAS and MQ links

Amunt! Top Amunt!
WAS PID files

Can be found at :

/opt/IBM/WebSphere/wp_profile/logs/WbSphere_Portal/WebSphere_Portal.pid

Amunt! Top Amunt!
WAS log files
LOG ubication

Logs can be found under install_root/profiles/profile_name/logs/server_name. The default profile name is AppSrv01 and the default server name is server1.

Example: /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1. SystemOut.log is the file containing everything that was logged to standard out.

Logs can also be viewed from the admin console by navigating to Troubleshooting/Logging and Tracing/server_name/Runtime.

dislay LOG
C:\cmds> type tail_logs.bat @echo off SET CDM_WAS_HOME=c:\was C:\eines\tail -f %CDM_WAS_HOME%\profiles\AppSrv01\logs\server1\Systemout.log

WAS errors
server.xml not found
C:\IBM\WebSphere\AppServer\profiles\st852-sunSTMSPNProfile1\config\cells\st852-sunSTMSCell1\nodes\st852-sunSTMSNode1\servers\nodeagent\server.xml
service-specific error

If we find in Event Log viewer ... WAS service terminated with service-specific error 134218516 (0x8000314) ... all we have to do is delete server1.pid file at c:\Program Files\IBM\WebSphere\AppServer\profiles\CDM572\logs\server1\ !!!

service-specific error

If we find in Event Log viewer ... Could not determine the process id of the java process. ... all we have to do is


WAS v 8.5

Tom Alcott what's new ; Michael Cheng new admin features, Felix Wong centralized installation manager.


Commerce Bus Review - MQ integration

There are three different ways to integrate Commerce with WebSphere MQ:

Interoperation with WebSphere MQ: comparison of architectures

The third approach seems the simplest way to integrate MQ and Commerce. With this solution applications can continue to send messages (store and forward) even if the MQ network is not available (and vice versa). Using MQ links require a bus to be defined in WCS. Messages in the Service Integration Bus can be stored in a database or a file system (shared and highly available), but the former option is preferred. MQ Link facilitates the interactions between applications since WCS messaging engine sees MQ queue manager as a foreign bus and MQ network sees messaging engine as a MQ queue manager. MQ Link transforms message formats from MQ to SIBus and vice versa. WebSphere MQ Link also provides high availability in WebSphere Commerce thanks to the HA Manager services. There will be multiple MQ Links that will connect to different queue managers (active/active) that will later consolidate these messages into a common queue. MQ Link cannot directly connect to cluster channel, it must connect to a gateway queue manager.

infocenter

Message exchange through a WebSphere MQ link

How service integration converts messages to and from WebSphere MQ format

Sequencia completa :
Configuring WebSphere MQ for use with WebSphere Commerce, Commerce se conectaría a través de un WebSphere MQ messaging provider queue connection factory al queue manager de MQ Creating a WebSphere MQ messaging provider queue connection factory.
Y habría una correspondencia directa entre las WebSphere MQ messaging provider queue destinations y las colas creadas en MQ Creating WebSphere MQ messaging provider queue destinations

Hasta aquí no hay ningún SIBus por medio.

Siguiendo la configuración aconsejada en el infocenter no se va a utilizar el SIBus; se define la comunicación con la infraestructura MQ. Sobre esta configuración que solo establece la comunicación general entre Commerce y MQ, vienen las posibles opciones que ofrece el conector JCA que viene con Commerce.

Primero la posibilidad de procesar los mensajes inbound de manera paralela o serializados (o las dos cosas) Inbound messages over WebSphere MQ
Pero también es posible activar más de un listener FAQ on custom configurations of WebSphere Commerce with WebSphere MQ
o conectar más de un MQ queue manager.

En general la mayoría de estos cambios de configuración se manejan simplemente modificando el fichero de instancia de Commerce (wc-server.xml). Pero siempre es posible personalizar los conectores JCA: aquí viene un ejemplo de como modificar los de salida (outbound) Customizing the outbound JCA HTTP web service adapter in WebSphere Commerce V7.0

error : eCommerce has no DDBB but gets a MQ msg

Asumiendo que Commerce está recibiendo los mensajes inbound a través de un listener para Websphere MQ ( inbound messages over WebSphere MQ ), en el caso que la petición inbound genere un error la documentación es muy generica ( Working with the Listener for WebSphere MQ ) : "If an error with the inbound request occurs, the message generating the error is placed on the error queue"

Colas


Amunt! Top Amunt!
Quins productes son la competència de WAS ?

Key areas :

Choosing between WAS version 8.5 - Liberty Profile and Apache Tomcat 7 as an application serving environment.


Dubtes

Amunt!   Top of page


Links

Amunt!   Top of page


Valid HTML 4.01!   Valid CSS! Site under construction. Escriu-me !
Updated 20150428 (a)  
Uf !