<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tork Wrench &#187; websphere</title>
	<atom:link href="http://www.torkwrench.com/tag/websphere/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.torkwrench.com</link>
	<description>Things I learnt today, working on IBM Lotus Web Content Management.</description>
	<lastBuildDate>Tue, 17 Aug 2010 06:50:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>DB2 and ConfigEngine : Security mechanism not supported</title>
		<link>http://www.torkwrench.com/2009/06/28/db2-and-configengine-security-mechanism-not-supported/</link>
		<comments>http://www.torkwrench.com/2009/06/28/db2-and-configengine-security-mechanism-not-supported/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 04:19:58 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[websphere]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=112</guid>
		<description><![CDATA[How to fix the error "Connection authorization failure occurred.  Reason: Security mechanism not supported." when using DB2's DATA_ENCRYPT setting and WebSphere Portal's ConfigEngine. <a href="http://www.torkwrench.com/2009/06/28/db2-and-configengine-security-mechanism-not-supported/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I try to post really random solutions here, and this one&#8217;s a doozy ! I was updating a production machine from Portal 6.1.0 to 6.1.0.2. I always run the ConfigEngine tasks validate-standalone-ldap and validate-database-connection before I run any Portal update to make sure that the update won&#8217;t fail from something silly like a missing password. I&#8217;d highly recommend this practice on your Portal systems.<br />
This time when running validate-database-connection, I ran into this error:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">action-validate-database:<br />
&nbsp; &nbsp; &nbsp;[echo] domain &nbsp; &nbsp; &nbsp; 'jcr'<br />
&nbsp; &nbsp; &nbsp;[echo] DbtDbDriver &nbsp;'com.ibm.db2.jcc.DB2Driver'<br />
&nbsp; &nbsp; &nbsp;[echo] DbtDbLibrary '/home/db2inst1/sqllib/java/db2jcc.jar:/home/db2inst1/sqllib/java/db2jcc_license_cu.jar'<br />
&nbsp; &nbsp; &nbsp;[echo] DbtDbUser &nbsp; &nbsp;'db2inst1'<br />
&nbsp; &nbsp; &nbsp;[echo] DbtDbUrl &nbsp; &nbsp; 'jdbc:db2://localhost:50000/WPS6TCP'<br />
&nbsp; &nbsp; &nbsp;[echo] DbtDbName &nbsp; &nbsp;'WPS6TCP'<br />
&nbsp; &nbsp; &nbsp;[java] [06/28/09 13:47:09.620 EST] Attempting to make connection using: jdbc:db2://localhost:50000/WPS6TCP :: db2inst1 :: PASSWORD_REMOVED<br />
&nbsp; &nbsp; &nbsp;[java] [06/28/09 13:47:09.875 EST] ERROR: Error obtaining connecting for jdbc:db2://localhost:50000/WPS6TCP<br />
&nbsp; &nbsp; &nbsp;[java] com.ibm.db2.jcc.b.SqlException: [ibm][db2][jcc][t4][201][11237] Connection authorization failure occurred. &nbsp;Reason: Security mechanism not supported.<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.m(b.java:1981)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.a(b.java:1565)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.bb.b(bb.java:3386)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.bb.a(bb.java:332)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.bb.a(bb.java:112)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.j(b.java:1259)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.b(b.java:1132)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.b(b.java:715)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.a(b.java:701)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.a(b.java:378)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.a.b.&lt;init&gt;(b.java:316)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:166)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:572)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:165)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.wps.config.db.Database.init(Database.java:139)<br />
&nbsp; &nbsp; &nbsp;[java] &nbsp; &nbsp; at com.ibm.wps.config.db.validation.ValidationDriver.main(ValidationDriver.java:209)</div></div>
<p>It looked like the problem I&#8217;d seen on Ubuntu, where the database password was hashed with an unsupported scheme, but it couldn&#8217;t be, because this was on a plain old RHEL system. The difference was that I&#8217;d recently changed DB2&#8242;s database manager settings from AUTHENTICATION = SERVER to AUTHENTICATION = DATA_ENCRYPT . DATA_ENCRYPT is good because it will send your sql data <em>and</em> your authentication details encrypted across the wire. </p>
<p>Anyway, to make the validation work on a system where you have enabled the DATA_ENCRYPT parameter, just add securityMechanism=13; to the end of the database url. So mine becomes:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jcr.DbUrl=jdbc:db2://localhost:50000/WP6TCP:securityMechanism=13;</div></div>
<p>So how would the system work in any case, if the database url was wrong?!? The answer is clear after delving into the WebSphere admin console a little bit. I&#8217;d configured the custom properties of each Portal datasource post database transfer to work with DATA_ENCRYPT, but not the database urls in wkplc_comp.properties. Here&#8217;s where you would set it.</p>
<p><img src="http://www.torkwrench.com/wp-content/uploads/2009/06/data_encrypt.png" alt="data_encrypt" title="data_encrypt" width="626" height="399" class="aligncenter size-full wp-image-113" /></p>
<p>It is important to emphasize that the wkplc*.properties file in ConfigEngine are templates only, and don&#8217;t affect the running of the system, until you run a ConfigEngine task against them. Only then do their values get copied to the actual Portal server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/06/28/db2-and-configengine-security-mechanism-not-supported/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking the version of the Oracle JDBC driver jar</title>
		<link>http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/</link>
		<comments>http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 08:38:47 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[websphere]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=22</guid>
		<description><![CDATA[How to check if you have the right version of the Oracle driver installed to use with WebSphere Portal. Two methods of checking this are discussed. <a href="http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a problem now where we need to use the Oracle 10g driver against a 9i database.<a href="http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/topic/com.ibm.wp.ent.doc/wpf/inst_req60.html?resultof=%22%6f%72%61%63%6c%65%22%20%22%6f%72%61%63%6c%22%20%22%31%30%22%20%22%64%72%69%76%65%72%22%20"> There&#8217;s a note in the infocenter about it</a> .But how to do you check which version of the driver you are using ? The filename of the driver is the same between each version of Oracle (ojdbc14.jar), so that&#8217;s not going to do it.</p>
<p>To check it out, unzip the driver and read the META-INF/MANIFEST.MF file. Here&#8217;s mine:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Manifest-Version: 1.0<br />
Specification-Title:    Oracle JDBC driver classes for use with JDK14<br />
Sealed: true<br />
Created-By: 1.4.2_08 (Sun Microsystems Inc.)<br />
Implementation-Title:   ojdbc14.jar<br />
Specification-Vendor:   Oracle Corporation<br />
Specification-Version:  Oracle JDBC Driver version - &quot;10.2.0.3.0&quot;<br />
Implementation-Version: Oracle JDBC Driver version - &quot;10.2.0.3.0&quot;<br />
Implementation-Vendor:  Oracle Corporation<br />
Implementation-Time:    Fri Sep 29 09:43:24 2006</div></div>
<p>Also Portal (and regular ol&#8217; Appserver) will tell you as they initialize in the SystemOut.log, just try this trusty command :</p>
<p><strong>cat SystemOut.log | grep -A 2 &#8220;Oracle JDBC&#8221;</strong></p>
<p>and you get back something like :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[3/20/09 2:44:21:570 EDT] 0000001f InternalOracl I   DSRA8205I: JDBC driver name  : Oracle JDBC driver<br />
[3/20/09 2:44:21:572 EDT] 0000001f InternalOracl I   DSRA8206I: JDBC driver version  : 9.2.0.8.0<br />
[3/20/09 2:44:21:575 EDT] 0000001f InternalOracl I   DSRA8212I: DataStoreHelper name is: com.ibm.websphere.rsadapter.OracleDataStoreHelper@39136937.</div></div>
<p>What! 9.2.0.8! Looks like I&#8217;ve got the wrong one on there. <img src='http://www.torkwrench.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
