<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-131355531753305153</id><updated>2011-07-28T03:49:59.565-07:00</updated><category term='configure'/><category term='fails'/><category term='qatest'/><category term='opensso'/><title type='text'>Bits n pieces of OpenSSO</title><subtitle type='html'>I have had quite a journey as I started using/working with OpenSSO. So many learnings, so many adventures, so many mistakes and so many awesomed feelings.. All these and more tricks, to help you get unstuck</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-6096356808092819078</id><published>2009-12-03T11:37:00.000-08:00</published><updated>2009-12-03T11:42:56.430-08:00</updated><title type='text'>Version of the embedded opends config store</title><content type='html'>Opensso comes with its very own bundles opends inside, which acts as config store, and can also double as user store for POCs.&lt;br /&gt;NOTE: Using the embedded opends as user store in production environment is not supported&lt;br /&gt;&lt;br /&gt;Today , I ran into a requirement where I had to find the version of the opends in one of the installs&lt;br /&gt;This can be achieved using ldapsearch.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ldapsearch -h abc.abc.com -p 53389 -D"cn=directory manager"  -w ****** -b "cn=Version,cn=monitor" -s base "" &lt;br /&gt;version: 1&lt;br /&gt;dn: cn=Version,cn=monitor&lt;br /&gt;objectClass: extensibleObject&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: ds-monitor-entry&lt;br /&gt;revisionNumber: 5097&lt;br /&gt;shortName: OpenDS&lt;br /&gt;compactVersion: OpenDS-1.0.2-build002&lt;br /&gt;pointVersion: 2&lt;br /&gt;cn: Version&lt;br /&gt;buildID: 20090317124610Z&lt;br /&gt;majorVersion: 1&lt;br /&gt;productName: OpenDS Directory Server&lt;br /&gt;minorVersion: 0&lt;br /&gt;fullVersion: OpenDS Directory Server 1.0.2-build002&lt;br /&gt;buildNumber: 2&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;ldapsearch -h abc.abc.com -p 53389 -D"cn=directory manager"  -w ****** -b "" -s base "" vendorVersion&lt;br /&gt;version: 1&lt;br /&gt;dn:&lt;br /&gt;vendorVersion: OpenDS Directory Server 1.0.2-build002&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-6096356808092819078?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/6096356808092819078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/12/version-of-embedded-opends-config-store.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/6096356808092819078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/6096356808092819078'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/12/version-of-embedded-opends-config-store.html' title='Version of the embedded opends config store'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-3558636574038095349</id><published>2009-11-13T11:38:00.000-08:00</published><updated>2009-11-13T11:43:24.430-08:00</updated><title type='text'>Incorrect AVA format</title><content type='html'>Got this error when trying to create a keystore.&lt;br /&gt;&lt;br /&gt;c:\3960\glassfish\domains\domain1\config&gt;keytool -genkey -keyalg RSA -keystore a&lt;br /&gt;mkeystore.jks -validity 365 -alias "fam8" -dname "amqa-x2100-01.red.iplanet.com,&lt;br /&gt;ou=identity,o=sun.com,L=santa clara, ST=CA, C=US"&lt;br /&gt;Enter keystore password:&lt;br /&gt;Re-enter new password:&lt;br /&gt;keytool error: java.io.IOException: Incorrect AVA format&lt;br /&gt;&lt;br /&gt;Which was because, i had incorrect dname&lt;br /&gt;Should be "&lt;span style="color: rgb(153, 0, 0);"&gt;cn=&lt;/span&gt;amqa-x2100-01.red.iplanet.co...........&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-3558636574038095349?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/3558636574038095349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/11/incorrect-ava-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/3558636574038095349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/3558636574038095349'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/11/incorrect-ava-format.html' title='Incorrect AVA format'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-3059515975609825248</id><published>2009-11-04T09:49:00.000-08:00</published><updated>2009-11-04T09:55:08.426-08:00</updated><title type='text'>Some not-so-coomon ssoadm examples</title><content type='html'>ssoadm command line utility that comes with OpenSSO is indeed a very handy little piece of tool&lt;br /&gt;Here are few examples for some not so common usages of ssoadm, which I learnt and want to share&lt;br /&gt;&lt;br /&gt;1) Here was a request to the users alias "does someone know the ssoadm command to change signature algorithm for saml2 assertion ( typically to choose RSA-SHA256 ) ? ( corresponding to the gui for the admin console in Configuration/Global/federation/Signature ) "&lt;br /&gt;&lt;br /&gt;You should be able to use "ssoadm set-attr-defs" to set the signature algorithm and "ssoadm get-attr-defs" to see the updated value.&lt;br /&gt;&lt;br /&gt;./ssoadm set-attr-defs -s sunFAMFederationCommon -t Global -u amadmin -f /usr/tmp/pass -a "SignatureAlgorithm=http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"&lt;br /&gt;bash-3.00# ./ssoadm get-attr-defs -s sunFAMFederationCommon -t Global -u amadmin -f /usr/tmp/pass&lt;br /&gt;(Thanks Charles)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-3059515975609825248?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/3059515975609825248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/11/some-not-so-coomon-ssoadm-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/3059515975609825248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/3059515975609825248'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/11/some-not-so-coomon-ssoadm-examples.html' title='Some not-so-coomon ssoadm examples'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-3853222351551818611</id><published>2009-10-15T12:06:00.000-07:00</published><updated>2009-10-19T20:36:49.739-07:00</updated><title type='text'>del del del..unwanted mails..bites me back</title><content type='html'>There were series of mails from our IT department warning us about servers being decommissioned. But first I postponed the needed, then forgot, and then ignored the FINAL WARNING.&lt;br /&gt;What happens...&lt;br /&gt;My lack of action bit me back and my solaris box was unusable&lt;br /&gt;&lt;br /&gt;Having grown up with windows machines, unix is something I am still getting used to.&lt;br /&gt;So I was so scaared of what happens&lt;br /&gt;&lt;br /&gt;But it turns out that, the IT team had done a pretty good document which guided us step by step.&lt;br /&gt;And in course I also learnt a couple of new things&lt;br /&gt;&lt;br /&gt;- ypwhich - gives the NIS server the machine is currently using&lt;br /&gt;-- you can also try "ypwhich another-machine-on-nw"&lt;br /&gt;&lt;br /&gt;- /etc/resolv.conf - Defines which naming server to use&lt;br /&gt;Eg - nameserver 129.147.9.5, where 129.147.9.5 is the ip address of the naming server used&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-3853222351551818611?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/3853222351551818611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/10/del-del-delunwanted-mailsbites-me-back.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/3853222351551818611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/3853222351551818611'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/10/del-del-delunwanted-mailsbites-me-back.html' title='del del del..unwanted mails..bites me back'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-4138157780771987739</id><published>2009-09-24T12:52:00.000-07:00</published><updated>2009-09-24T18:29:06.804-07:00</updated><title type='text'>"No more processes" in solaris machine</title><content type='html'>Another new error&lt;br /&gt;Product deployment failed in solaris with error some jre lib exception&lt;br /&gt;Googling said I had to increase the number of processes in os level in /etc/system&lt;br /&gt;But even vi failed with "no more processes"&lt;br /&gt;So had to reboot and issue gone!!&lt;br /&gt;&lt;br /&gt;First time i saw this.. should remember&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-4138157780771987739?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/4138157780771987739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/09/no-more-processes-in-solaris-machine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/4138157780771987739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/4138157780771987739'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/09/no-more-processes-in-solaris-machine.html' title='&quot;No more processes&quot; in solaris machine'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-5783343717270990465</id><published>2009-07-24T11:55:00.000-07:00</published><updated>2009-07-24T12:01:34.928-07:00</updated><title type='text'>Opensso configuration failure - case 2 - UnsupportedClassVersionError</title><content type='html'>&lt;span style="color: rgb(0, 0, 153);font-family:verdana;" &gt;The upcoming express build, build 8 ( as well as the available nightly's) now support only jdk6 at the opensso server container.&lt;br /&gt;&lt;br /&gt;This is the exception you see when configuring with jdk5&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);font-family:verdana;" &gt;&lt;br /&gt;Symptom:&lt;br /&gt;-----------&lt;br /&gt;Opensso configuration fails&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);font-size:100%;" &gt;--&gt; Configuration fails at&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Checking configuration directory /export/isqa/SJSWS/opensso-8080....Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Installing OpenSSO configuration store...Success RSA/ECB/OAEPWithSHA1AndMGF1Padd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;ing.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Installing OpenSSO configuration store in /export/isqa/SJSWS/opensso-8080/opends&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Creating OpenSSO suffix...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Tag swapping schema files....Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Loading Schema opends_config_schema.ldif...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Loading Schema opends_user_schema.ldif...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Loading Schema opends_embinit.ldif...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Loading Schema opends_user_index.ldif...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Loading Schema opends_plugin.ldif...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;...Success.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Reinitializing system properties.AMSetupServlet.processRequest: errorcom.sun.ide&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;ntity.security.AMSecurityPropertiesException: AdminTokenAction:  FATAL ERROR: Ca&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;nnot obtain Application SSO token.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Check AMConfig.properties for the following properties&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;    com.sun.identity.agents.app.username&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;    com.iplanet.am.service.password&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;    at com.sun.identity.security.AdminTokenAction.run(AdminTokenAction.java:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;258)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;    at java.security.AccessController.doPrivileged(Native Method)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;at com.sun.identity.security.AdminTokenAction.run(AdminTokenAction.java:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;258)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;     at java.security.AccessController.doPrivileged(Native Method)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;     at com.iplanet.am.util.SystemProperties.initializeProperties(SystemPrope&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;rties.java:450)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;     at com.sun.identity.setup.AMSetupServlet.reInitConfigProperties(AMSetupS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;--&gt; {config dir}/opensso/debug/Configuration shows&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;amSMS:07/21/2009 02:20:35:953 PM PDT: Thread[service-j2ee-5,5,main]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;ERROR: SMSObjectDB: Unable to get amsdkbasedn:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Got LDAPServiceException code=19&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;     at com.iplanet.services.ldap.DSConfigMgr.getDSConfigMgr(DSConfigMgr.java&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;:162)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;     at com.sun.identity.sm.SMSObjectDB.getAMSdkBaseDN(SMSObjectDB.java:58)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;     at com.sun.identity.sm.SMSObjectDB.getRootSuffix(SMSObjectDB.java:112)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;     at com.sun.identity.sm.ldap.SMSLdapObject.initialize(SMSLdapObject.java:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;201)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;.....................&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;The lower level exception message&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;Connection to the server could not be established&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;The lower level exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;com.sun.identity.shared.ldap.LDAPException: Connection to the server could not b&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;e established (-1)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--&gt; &lt;config_dir&gt;/opends/logs dont report any exception&lt;br /&gt;&lt;br /&gt;--&gt; Container logs says "&lt;span style="color: rgb(102, 0, 0);"&gt;java.lang.UnsupportedClassVersionError: PWC1651: Class com.sun.identity.idsvcs.I&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;dentityServicesImpl has unsupported major or minor version numbers, which are gr&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;eater than those found in the Java Runtime Environment version 1.5.0_15&lt;/span&gt;&lt;br /&gt;"&lt;br /&gt;&lt;br /&gt;So this is the culprit - JDK container is using is - 1.5.0_15&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Solution:&lt;br /&gt;-----------&lt;br /&gt;Upgrade container jdk to jdk6 and reconfigure&lt;br /&gt;&lt;br /&gt;Other configuration Issues:&lt;br /&gt;&lt;a href="http://nithyastechnotes.blogspot.com/2009/07/opensso-configuration-failure-case-1.html"&gt;http://nithyastechnotes.blogspot.com/2009/07/opensso-configuration-failure-case-1.html&lt;/a&gt;&lt;br /&gt;http://nithyastechnotes.blogspot.com/2009/07/opensso-deployment-issue-in-geronimo.html&lt;br /&gt;&lt;/span&gt;&lt;/config_dir&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-5783343717270990465?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/5783343717270990465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-configuration-failure-case-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/5783343717270990465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/5783343717270990465'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-configuration-failure-case-2.html' title='Opensso configuration failure - case 2 - UnsupportedClassVersionError'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-8733596304598489221</id><published>2009-07-23T15:08:00.001-07:00</published><updated>2009-07-23T15:08:58.772-07:00</updated><title type='text'>Opensso deployment issue in geronimo 2.1.4</title><content type='html'>&lt;div class="entry-content"&gt;     &lt;p&gt;The opensso nightly builds dont deploy on geronimo 2.1.4&lt;/p&gt;   &lt;p&gt;This is due to a the way the webservices-tools.jar is bundled.&lt;/p&gt;   &lt;p&gt; rwxr-xr-x         0  26-Sep-2008  13:19:20  1.0/&lt;br /&gt;  drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/META-INF/&lt;br /&gt;  -rw-r--r--       656  28-Mar-2005  12:23:02  1.0/META-INF/MANIFEST.MF&lt;br /&gt;  drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/META-INF/services/&lt;br /&gt;  -rw-r--r--       164  28-Mar-2005  12:22:14  1.0/META-INF/services/com.sun.tools.xjc.CodeAugmenter&lt;br /&gt;  -rw-r--r--        44   2-Nov-2002  16:15:24  1.0/META-INF/services/org.relaxng.datatype.DatatypeLibraryFactory&lt;br /&gt;  drwxr-xr-x         0  28-Mar-2005  12:20:58  1.0/com/&lt;br /&gt;  drwxr-xr-x         0  26-Sep-2008  13:19:20  1.0/com/sun/&lt;br /&gt;  drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/com/sun/codemodel/&lt;br /&gt;  -rw-r--r--       287  28-Mar-2005  12:20:36  1.0/com/sun/codemodel/CodeWriter.class&lt;br /&gt;...&lt;br /&gt;  -rw-r--r--      1179  28-Feb-2008  18:49:50  com/sun/codemodel/CodeWriter.class&lt;br /&gt;&lt;br /&gt;Because of the 1.0 in the package structure.&lt;/p&gt;   &lt;p&gt;Geronimo issue opened for this is - https://issues.apache.org/jira/browse/XBEAN-126&lt;/p&gt;   &lt;p&gt; Opensso issue opened to document this is - https://opensso.dev.java.net/issues/show_bug.cgi?id=4976&lt;br /&gt;&lt;/p&gt;   &lt;p&gt;NOTE : opensso works fine on geronimo 2.1.1&lt;br /&gt;&lt;/p&gt;   &lt;p&gt;&lt;br /&gt;&lt;/p&gt;   &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-8733596304598489221?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/8733596304598489221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-deployment-issue-in-geronimo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/8733596304598489221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/8733596304598489221'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-deployment-issue-in-geronimo.html' title='Opensso deployment issue in geronimo 2.1.4'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-2235149418927269937</id><published>2009-07-21T12:49:00.000-07:00</published><updated>2009-07-22T10:43:07.726-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensso'/><category scheme='http://www.blogger.com/atom/ns#' term='qatest'/><title type='text'>Building your own OpenSSO ? Heres how you can quickly test it</title><content type='html'>I guess not many members of the OpenSSO community are aware of the testing framework inbuilt in the product. This article will help you to understand how you can use this feature to quickly validate your OpenSSO build.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Where is the framework?&lt;/span&gt;&lt;br /&gt;It is called qatest and in available under opensso, when you check out the cvs source code.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;What is the framework?&lt;/span&gt;&lt;br /&gt;It is a pure java based testing framework built using open source tools like testng,ant,jetty&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Which aspect of the framework is covered in this article?&lt;/span&gt;&lt;br /&gt;Sanity tests all the core features of OpenSSO product. Helps avoiding basic regressions.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;How to use it?&lt;/span&gt;&lt;br /&gt;What I am covering in this article, is how to quickly sanity test a opensso build.&lt;br /&gt;There is some setup required, gathering all the required jars, as this is not shipped with the product. But the results are worth this effort.&lt;br /&gt;Other than this, with minimalist changes required, you get all the key features of opensso tested.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Prerequisites&lt;/span&gt;&lt;br /&gt;1) From Opensso - opensso.war, Deploy the war on a supported container. You dont have to configure it.&lt;br /&gt;2) Ant version 1.7.1 or above&lt;br /&gt;3) Gathering the required jars. Place the following jars &lt;opensso_home&gt;&lt;opensso&gt;/qatest/lib folder.&lt;br /&gt;-- openssoclientsdk.jar,opensso-sharedlib.jar corresponding to the build you are testing&lt;br /&gt;-- testng-5.10beta-jdk15.jar,mysql-connector-java-5.0.8-bin.jar,javaee.jar,jsse.jar,saaj-api.jar,saaj-impl.jar,servlet.jar,webservices-rt.jar&lt;br /&gt;-- Create a folder &lt;/opensso&gt;&lt;/opensso_home&gt;&lt;opensso&gt;/qatest/lib/jetty and copy the jetty jars here&lt;br /&gt;-- Create a folder &lt;opensso&gt;/qatest/lib/htmlunit and copy the htmlunit1.1.4 jars here&lt;br /&gt;-- Create a folder &lt;opensso&gt;/qatest/lib/xacml and copy the jaxb-impl.jar   jaxb-libs.jar&lt;br /&gt;jars here&lt;br /&gt;Click below for a diagrammatic representation of all the lib&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bfKbHo0YSlA/SmdPDic2aeI/AAAAAAAAGLE/E9No8z9uwRE/s1600-h/qatestLib.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 155px; height: 200px;" src="http://2.bp.blogspot.com/_bfKbHo0YSlA/SmdPDic2aeI/AAAAAAAAGLE/E9No8z9uwRE/s200/qatestLib.jpg" alt="" id="BLOGGER_PHOTO_ID_5361340803613878754" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;4) Go to &lt;/opensso&gt;&lt;/opensso&gt;&lt;opensso&gt;/qatest/resources&lt;br /&gt;5) Copy the file Configurator-server_name.properties.template, and create a &lt;server-name&gt;.properties file.&lt;br /&gt;Eg: myserver.properties&lt;br /&gt;6) Edit the file for details matching the setup you planned.&lt;br /&gt;Eg:&lt;span style="font-style: italic;"&gt;Below is my file,stripped of comments, which I used to run the sanity tests in my laptop.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;com.iplanet.am.naming.url=http://localhost:8080/opensso/namingservice&lt;br /&gt;cookiedomain=&lt;br /&gt;amadmin_password=secret12&lt;br /&gt;com.iplanet.am.service.password=secret123&lt;br /&gt;config_dir=/Users/nithyasrinivasan/opensso-localhost&lt;br /&gt;directory_server=localhost&lt;br /&gt;directory_port=50389&lt;br /&gt;config_root_suffix=dc=opensso,dc=java,dc=net&lt;br /&gt;ds_dirmgrpasswd=secret12&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;Now what?&lt;br /&gt;You are done.&lt;br /&gt;Goto &lt;/span&gt;&lt;/span&gt;&lt;opensso&gt;/qatest, fire the tests.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;ant -lib lib/ant-contrib-1.0b3.jar -DSERVER_NAME1=myserver run&lt;br /&gt;&lt;br /&gt;If the tests have been executed successfully, the run should finish the following output&lt;br /&gt;[echo] The Automation reports are at &lt;&lt;/span&gt;&lt;/span&gt;opensso home dir&gt;/qatest/&lt;server-name&gt;/ldapv3/sanity&lt;timestamp&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;You can see the reports at this location.&lt;br /&gt;&lt;br /&gt;Sample reports -&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/timestamp&gt;&lt;/server-name&gt;&lt;/opensso&gt;&lt;/server-name&gt;&lt;/opensso&gt;&lt;/opensso&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bfKbHo0YSlA/SmdPViAsmXI/AAAAAAAAGLM/V6gZ5WTnU54/s1600-h/sanity_results.jpeg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 88px;" src="http://4.bp.blogspot.com/_bfKbHo0YSlA/SmdPViAsmXI/AAAAAAAAGLM/V6gZ5WTnU54/s200/sanity_results.jpeg" alt="" id="BLOGGER_PHOTO_ID_5361341112733440370" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bfKbHo0YSlA/SmdPnA9Y44I/AAAAAAAAGLU/TMXYmpJqRkM/s1600-h/sanity-authentication-results.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 28px;" src="http://2.bp.blogspot.com/_bfKbHo0YSlA/SmdPnA9Y44I/AAAAAAAAGLU/TMXYmpJqRkM/s200/sanity-authentication-results.jpg" alt="" id="BLOGGER_PHOTO_ID_5361341413098840962" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-2235149418927269937?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/2235149418927269937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/building-your-own-opensso-heres-how-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/2235149418927269937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/2235149418927269937'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/building-your-own-opensso-heres-how-you.html' title='Building your own OpenSSO ? Heres how you can quickly test it'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_bfKbHo0YSlA/SmdPDic2aeI/AAAAAAAAGLE/E9No8z9uwRE/s72-c/qatestLib.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-4831326721096644199</id><published>2009-07-20T22:44:00.000-07:00</published><updated>2009-07-21T09:34:12.618-07:00</updated><title type='text'>Opensso - Using in memory notification for Config store</title><content type='html'>If your opensso instance uses a remote config store, you can improve the performance using the alternative in-memory notification for Config Store.&lt;br /&gt;If this property com.sun.identity.sm.enableDataStoreNotification=true&lt;br /&gt;then Opensso makes use of a persistent ldap connection to listen to the event notifications.&lt;br /&gt;Disabling Datastore notification&lt;br /&gt;-------------------------&lt;br /&gt;Step 1) Go the page &lt;br /&gt;Configuration -&gt; Servers &amp; Sites -&gt; Server Instancce -&gt; SDK&lt;br /&gt;Set&lt;br /&gt;com.sun.identity.sm.enableDataStoreNotification=false&lt;br /&gt;com.sun.am.event.connection.disable.list=aci,um,sm&lt;br /&gt;&lt;br /&gt;Step 2) Restart the container&lt;br /&gt;&lt;br /&gt;Step 3) Check the sun one directory server logs/opensso debug logs.(Assuming that the debug level is set to message)&lt;br /&gt;Sample messages are pasted below&lt;br /&gt;&lt;br /&gt;1) This is from DS access logs&lt;br /&gt;No psearch after disabling the datastore notification&lt;br /&gt;&lt;br /&gt;[20/Jul/2009:14:40:26 -0700] conn=0 op=1 msgId=191 - SRCH base="dc=opensso,dc=java,dc=net" scope=2 filter="(|(objectClass=sunService)(objectClass=sunServiceComponent))" attrs="objectClass" options=persistent&lt;br /&gt;[20/Jul/2009:14:40:37 -0700] conn=5 op=1 msgId=252 - SRCH base="dc=opensso,dc=java,dc=net" scope=2 filter="(objectClass=*)" attrs="objectClass" options=persistent&lt;br /&gt;[20/Jul/2009:15:14:18 -0700] conn=16 op=1 msgId=210 - SRCH base="dc=opensso,dc=java,dc=net" scope=2 filter="(|(objectClass=sunService)(objectClass=sunServiceComponent))" attrs="objectClass" options=persistent&lt;br /&gt;[20/Jul/2009:15:14:54 -0700] conn=22 op=1 msgId=19 - SRCH base="dc=opensso,dc=java,dc=net" scope=2 filter="(|(objectClass=sunService)(objectClass=sunServiceComponent))" attrs="objectClass" options=persistent&lt;br /&gt;&lt;br /&gt;NOTE:  Server was resatrted at amSMS:07/20/2009 03:16:34:931 PM PDT: Thread[main,5,main]&lt;br /&gt;**********************************************&lt;br /&gt;&lt;br /&gt;2) Configuration debug file&lt;br /&gt;&lt;br /&gt;amEventService:07/20/2009 03:15:20:717 PM PDT: Thread[smIdmThreadPool,5,main]&lt;br /&gt;EventService.getListenerList(): In realm mode or config time, SMS listener is set to datastore notification flag: false&lt;br /&gt;amEventService:07/20/2009 03:15:20:718 PM PDT: Thread[smIdmThreadPool,5,main]&lt;br /&gt;EventService.getListenerList() - all listeners are disabled, EventService won't start&lt;br /&gt;amEventService:07/20/2009 03:15:20:718 PM PDT: Thread[smIdmThreadPool,5,main]&lt;br /&gt;EventService.resetAllSearches(): All psearches have been disabled&lt;br /&gt;amEventService:07/20/2009 03:15:20:718 PM PDT: Thread[smIdmThreadPool,5,main]&lt;br /&gt;EventService.removeListener(): Removing listener requestID: 19 Listener: com.sun.identity.sm.ldap.LDAPEventManager@160c21a&lt;br /&gt;amEventService:07/20/2009 03:15:21:221 PM PDT: Thread[smIdmThreadPool,5,main]&lt;br /&gt;EventService.resetAllSearches(): Psearch disabled: com.sun.identity.sm.ldap.LDAPEventManager&lt;br /&gt;amSMSEvent:07/20/2009 03:15:21:221 PM PDT: Thread[smIdmThreadPool,5,main]&lt;br /&gt;SMSNotificationManager.init deregistering for notification with: com.sun.identity.sm.ldap.SMSLdapObject&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-4831326721096644199?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/4831326721096644199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-using-in-memory-notification.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/4831326721096644199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/4831326721096644199'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-using-in-memory-notification.html' title='Opensso - Using in memory notification for Config store'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-60371519298096077</id><published>2009-07-17T21:16:00.000-07:00</published><updated>2009-07-22T10:47:17.587-07:00</updated><title type='text'>Opensso/cli ssoadm - The version of your server instance is: null</title><content type='html'>Symptom:&lt;br /&gt;--------&lt;br /&gt;Cli ssoadm setup ends with exception&lt;br /&gt;Eg&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-bash-3.00$ ./setup&lt;br /&gt;Path to config files of OpenSSO server (example: /opensso):/home/etggfish/opensso&lt;br /&gt;Debug Directory:/home/etggfish/opensso/opensso/debug&lt;br /&gt;Log Directory:/home/etggfish/opensso/opensso/log&lt;br /&gt;The scripts are properly setup under directory: /local/0/sw/openssotools/opensso&lt;br /&gt;Debug directory is /home/etggfish/opensso/opensso/debug.&lt;br /&gt;Log directory is /home/etggfish/opensso/opensso/log.&lt;br /&gt;The version of this tools.zip is: Enterprise 8.0 Build 6(2008-October-31 09:07)&lt;br /&gt;The version of your server instance is: null&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;---------&lt;br /&gt;1) Check the com.iplanet.am.version in the server.&lt;br /&gt;Thanks to Gang for the following script to set the property to the right value&lt;br /&gt;You can run this script to fix null version&lt;br /&gt;&lt;br /&gt; $SSOADM_PATH/ssoadm update-server-cfg -s default -a 'com.iplanet.am.version=&lt;version_expected&gt;' -u amadmin -f $PWF -O&lt;br /&gt; SERVER=`$SSOADM_PATH/ssoadm list-servers -u amadmin -f $PWF -O`&lt;br /&gt; for SVR in $SERVER&lt;br /&gt; do&lt;br /&gt;   $SSOADM_PATH/ssoadm remove-server-cfg -s $SVR -a 'com.iplanet.am.version' -u amadmin -f $PWF -O&lt;br /&gt; done&lt;br /&gt;&lt;br /&gt;2) Also check if the attribute is present &lt;/version_expected&gt;com.iplanet.am.version in the Config DS.&lt;br /&gt;Else you can add it using Configuration -&gt; Servers &amp;amp; Sites -&gt; Default Server Instance -&gt; com.iplanet.am.version attribute&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-60371519298096077?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/60371519298096077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/openssocli-ssoadm-version-of-your.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/60371519298096077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/60371519298096077'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/openssocli-ssoadm-version-of-your.html' title='Opensso/cli ssoadm - The version of your server instance is: null'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-7596282502200987119</id><published>2009-07-17T14:01:00.001-07:00</published><updated>2009-07-17T14:10:21.284-07:00</updated><title type='text'>Mysterious cron failures</title><content type='html'>One of the constant challenges that I face daily is why a particular cron didnt run.&lt;div&gt;Though I have the script spitting all the output to a output file, sometimes even that doesnt happen / or not enough&lt;/div&gt;&lt;div&gt;And given that we have a matrix of machines spanning over a breadth of the different OS's, I break my head often.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So this should come handy &lt;/div&gt;&lt;div&gt;--&gt; The most common thing is to associate a email account to the user running the cron so that you can monitor the email. But sometimes it is not possible, so in that case just type "mail" and the last(hopefully, though sometimes it the last mail you had read) mail is displayed which should help you.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;--&gt; Look at /var/cron/log or /var/adm/messages - (This hasnt helped me much, though)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;--&gt; Check if all the files the script uses has fully qualified domain names in case the files are in a central nfs location&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;--&gt; One stupid problem once I faced was that the dir where I echo the script didnt have write permissions for the user running the cron and hence failed..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 28px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-7596282502200987119?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/7596282502200987119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/mysterious-cron-failures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/7596282502200987119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/7596282502200987119'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/mysterious-cron-failures.html' title='Mysterious cron failures'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-5528779069364840343</id><published>2009-07-15T10:21:00.000-07:00</published><updated>2009-07-22T14:48:58.516-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensso'/><category scheme='http://www.blogger.com/atom/ns#' term='configure'/><category scheme='http://www.blogger.com/atom/ns#' term='fails'/><title type='text'>Opensso configuration failure - Not enough space on opends logs</title><content type='html'>Symptom:&lt;br /&gt;------------&lt;br /&gt;Checking configuration directory /export/qatest/TOMCAT/opensso-18080....Success.&lt;br /&gt;Installing OpenSSO configuration store...Success RSA/ECB/OAEPWithSHA1AndMGF1Padding.&lt;br /&gt;Configuration failed!&lt;br /&gt;&lt;config-dir&gt;/opends/logs/errors &lt;span style="font-style: italic; color: rgb(0, 0, 153);font-size:85%;" &gt;&lt;br /&gt;[16/Jul/2009:13:30:46 -0700] category=JEB severity=NOTICE msgID=8847402 msg=The database backend userRoot containing 0 entries has started&lt;br /&gt;[16/Jul/2009:13:30:50 -0700] category=CONFIG severity=SEVERE_ERROR msgID=3407988 msg=An error occurred while trying to initialize a backend loaded from class org.opends.server.backends.TrustStoreBackend with the information in configuration entry ds-cfg-backend-id=ads-truststore,cn=Backends,cn=config: Error while attempting to generate a self-signed certificate ads-certificate in the trust store file config/ads-truststore: KeyStoreException(Cannot run program "/usr/dist/share/java,v1.6.0_05/5.x-i86pc/jre/bin/keytool": error=12, Not enough space) (TrustStoreBackend.java:1897 TrustStoreBackend.java:359 BackendConfigManager.java:1298 BackendConfigManager.java:279 DirectoryServer.java:2555 DirectoryServer.java:1358 EmbeddedUtils.java:89 EmbeddedOpenDS.java:264 EmbeddedOpenDS.java:199 AMSetupServlet.java:559 AMSetupServlet.java:615 AMSetupServlet.java:691 AMSetupServlet.java:398 AMSetupServlet.java:342 HttpServlet.java:637 HttpServlet.java:717 ApplicationFilterChain.java:290 ApplicationFilterChain.java:206 AMSetupFilter.java:99 ApplicationFilterChain.java:235 ApplicationFilterChain.java:206 ...). This backend will be disabled&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;-------------&lt;br /&gt;--&gt;Check /tmp and swap space&lt;br /&gt;--&gt; Also use a local java so that the tmp dir is set to local /tmp&lt;br /&gt;--&gt; Check if there are any hanging processed for the containers. In one instance, since the servers are configured using scripts, there were few orphan processes consuming all the memory&lt;br /&gt;&lt;br /&gt;&lt;/config-dir&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-5528779069364840343?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/5528779069364840343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-configuration-failure-case-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/5528779069364840343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/5528779069364840343'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/opensso-configuration-failure-case-1.html' title='Opensso configuration failure - Not enough space on opends logs'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-131355531753305153.post-8797163440876234697</id><published>2009-07-15T10:16:00.000-07:00</published><updated>2009-07-15T10:19:11.798-07:00</updated><title type='text'>Why This Blog</title><content type='html'>Every day there is a new challenge..&lt;br /&gt;But on many days there is a known challenge..&lt;br /&gt;I know I have dealt with it before.. But what exactly I did, that sample code snippet eludes and I spend valuable minutes searching throught endless emails and documents finding what I need&lt;br /&gt;&lt;br /&gt;So trying to minimise this humangous waste of efforsts, I am creating this blog....&lt;br /&gt;May be some one else might also find it useful......&lt;br /&gt;&lt;br /&gt;Good luck to me...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/131355531753305153-8797163440876234697?l=nithyastechnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nithyastechnotes.blogspot.com/feeds/8797163440876234697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/why-this-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/8797163440876234697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/131355531753305153/posts/default/8797163440876234697'/><link rel='alternate' type='text/html' href='http://nithyastechnotes.blogspot.com/2009/07/why-this-blog.html' title='Why This Blog'/><author><name>Nithya</name><uri>http://www.blogger.com/profile/16826478131090276041</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
