Monday, 9 April 2012

More on adding and extending file systems using Red Hat Enterprise Linux and LVM

This follows on from an earlier blog post: -


Create a new file system for the newly added disk - set as type 8e

$ fdisk /dev/sdb

Dump out the file system listing

$ fdisk -l

Create a new physical volume for the newly added disk - /dev/sdb1

$ pvcreate /dev/sdb1

Show the existing volume groups

vgscan

Extend the existing volume group - vg00 - to include the newly added disk - /dev/sdb1

$ vgextend vg00 /dev/sdb1

Show the existing mounted file systems

$ mount

Show the updated volume group - vg00

$ vgscan

Create a new logical volume

$ lvcreate -L 20G -n ibmVol vg00

Format the new logical volume as ext3

$ mkfs.ext3 /dev/vg00/ibmVol

Update the file system table - /etc/fstab

$ vi /etc/fstab

Mount all available file systems

$ mount -a

List mounted file systems

$ mount

IBM Rational Application Developer and IBM WebSphere Portal - Problems with File Transfer Servlet

I saw this problem on Thursday, and wanted to share the solution.

So, whilst trying to deploy my portlet from Rational Application Developer 8.0.4 IF1 to WebSphere Portal 7.0.0.2 CF12, we saw: -

WKSP0012E "Caller is not in the required role to access restricted document(s)"

in the logs for the portal server ( /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut.og ).

Looking at this old WebSphere Portal Express v6 document for inspiration


we concluded that the problem may be security-related.

The document describes how to use a JACL script - redeployFileTransfer.jacl - to correctly configure security for the File Transfer Servlet.

Having checked that we still had the script with WP7: -

$ cd /opt/IBM/WebSphere/AppServer/bin
$ ls -al redeployFileTransfer.jacl

-rwxr-xr-x 1 root root 3918 Apr  5 08:07 redeployFileTransfer.jacl

and made a note of the cell, node and server/instance names: -

Cellname GBEDFTSERH301
Nodename GBEDFTSERH301
Servername WebSphere_Portal

we ran the following wsadmin command to execute the JACL script: -

cd /opt/IBM/WebSphere/AppServer/bin
$ ./wsadmin.sh -conntype NONE -lang jacl -profile redeployFileTransfer.jacl -c "fileTransferAuthenticationOn GBEDFTSERH301 GBEDFTSERH301 WebSphere_Portal"

WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
Uninstall filetransfer -cell GBEDFTSERH301 -node GBEDFTSERH301 -server WebSphere_Portal
ADMA5017I: Uninstallation of filetransfer started.
ADMA5005I: The application filetransfer is configured in the WebSphere Application Server repository.
ADMA5011I: The cleanup of the temp directory for application filetransfer is complete.
ADMA5106I: Application filetransfer uninstalled successfully.
Install /opt/IBM/WebSphere/AppServer/systemApps/filetransferSecured.ear -cell GBEDFTSERH301 -node GBEDFTSERH301 -server WebSphere_Portal -appname filetransfer -usedefaultbindings -nocreateMBeansForResources
ADMA5016I: Installation of filetransfer started.
ADMA5005I: The application filetransfer is configured in the WebSphere Application Server repository.
ADMA5011I: The cleanup of the temp directory for application filetransfer is complete.
ADMA5013I: Application filetransfer installed successfully.


Having undertaken this, we restarted WebSphere Portal: -

$ ~/stopPortal.sh
$ ~/deleteLogs.sh
$ ~/startPortal.sh


and the RAD to Portal deployment worked like a treat.

For the record, here's the WebSphere 7 version of the same document: -




Wednesday, 4 April 2012

IBM Connections not indexing your files ? Check this out ....

Copy Search conversion tools to local nodes to enable full indexing of data.

The Search conversion tools make it possible to index Files and Wiki attachments. However, the conversion tools are initially deployed on a network share so you must copy them to each node in the Search cluster.

If you are performing this task after you have added a node to an existing cluster, as described in the Adding a node to a cluster topic, you need to complete the steps in this task only if the new node is a member of the Search cluster.

Useful as an aide-memoire, when things ain't working :-(

Verify Java SDK version shipped with IBM WebSphere Application Server fix packs

I'm updating my WebSphere <-> Active Directory / SPNEGO slide deck: -



as it's an evolving repository of the knowledge that my team and I have acquired.

Whilst doing so ( and following WebSphere Support on Twitter ), I saw this pop up yesterday: -


Am adding it into my deck, along with a few other goodies :-)

Monday, 2 April 2012

SRVE0209E: Writer already obtained seen using XMLAccess against WebSphere Portal v7 when SPNEGO is configured

When running: -

$ cd /opt/IBM/WebSphere/wp_profile/PortalServer/bin 
 ./xmlaccess.sh -in /opt/IBM/WebSphere/PortalServer/doc/xml\-samples/Export.xml -out /tmp/snafu.xml -url http://portal.uk.ibm.com:10039/wps/config -user WPSAdmin -password Passw0rd

returns: -

SRVE0209E: Writer already obtained

in /tmp/snafu.xml.

This Technote, amongst others, provides a circumvention / solution to this: -

PK64013; 6.1.0.19: provide way to turn off tai authentication
Create a new security Custom Property 

com.ibm.websphere.security.performTAIForUnprotectedURI

set to false ( the default is true ) via Security -> Global security > Custom properties.

Once we did this, and restarted WebSphere Portal, the job was done :-)

Polling and Surveying Widgets in IBM Connections

I saw this referenced on the IBM Connections Community Chat: -

  • CRM contacts. Based on our own CRM product, this widget targets the need to quickly access contact information, regardless of the platform one is currently using. Using type ahead functions, this widget allows fast and effective searching of the CRM database. This widget is available for WebSphere Portal, Lotus Notes and Lotus Connections. And due to the service oriented setup of this widget, it can be easily enhanced to connect to another CRM provider.

  • Profiles Calendar. Tightly tied in the Profiles functionality of Lotus Connections, this widget shows a calendar and all meetings that day of a person next to his or her profile

  • Poll. This widget allows organizations to quickly put up a poll to ask its employees for their opinion

  • Bulletin Board. This widget allows organizations to inform its employees throughout all platforms used by it

  • Quickr Places. This widget shows an overview of all Quickr places which can be navigated, providing links to the documents in Quickr itself

  • Holidays. Based on the holiday application Eniac uses internally as part of a HRM application, this allows employees to see an overview of the amount of days they took off this year, the amount still left and also provides functionality to request a new holiday

The Collaboration Factory

Thanks to Jon M for drawing my attention to this...

Sunday, 1 April 2012

Note to self - Firefox and local connections

 Whilst trying to hit my NAS from Firefox on my Mac, I kept seeing errors such as:- Unable to connect Firefox can’t establish a connection t...