Saturday, March 3, 2012

Saint Pattinathar was a Saivaite and a Spiritual leader who lived in TamilNadu 500 years ago.He was born to Sivanesa chetty and Gnanakalai. His father was a trader in Tiruvidaimarudur, Thanjavur district. His birth name was Swetharanyar after as epithet of Lord Siva of Swetharanyeswarar Temple. He was also called as Thiruvenkadar by the people. When he was five years old, he lost his father. Like his father he spent money on Siva devotees, and fed them daily. He was a trader and had enough wealth. At sixteen years, he was married to Sivakalai, daughter of another trader by the name of Sivasithamparam Chettiyar and his wife Sivakamy. Even after fifteen years of marriage they had no children. Meantime there was a very poor Saivaite by the name of Sivasarumar who spent all his wealth in feeding the Siva devotees. When all his wealth was spent he sold his wife's nuptial chain (thali) and fed the devotees of Lord Siva. Once in his dream, Lord Siva appeared and told him, he would find him (Siva) as a baby at a certain spot. "Hand over the baby boy to Thiruvenkadar. He would give gold equal to the weight of the baby. The Saivaite devotees found the baby and took him to Pattinathar. He adopted the child and gave the couple, gold and more wealth.


The divine child grew up and followed in his father's footsteps. Once the father sent him on a ship with a good lot of merchandise and when he came he brought back sacks full of paddy husks. The father was angry and locked him up in a room and going to the harbor, threw the husks out. What was his surprise to see they were all gold; Every dried piece of the husk turned out to be gold and precious gems. He hurried home to see his son. He was not in the room. His wife gave him a small box the son had given before he disappeared. In it was an Palm-leaf manuscript and a needle without an eyelet. On the script were the following words (in English for understanding):

"Not even an eyeless needle will accompany you in the final journey of life."

Pattinathar(Thiruvenkadar) realized the philosophy and wisdom of the words, and renounced everything - his wife, his wealth, his kith and kin and all other mundane attachments. With only a loin cloth he left. He sang many a philosophical song to enlighten people on the blissful state of renunciation. He sang about the human life and its complex dimensions, made his lyrics more appealing to the common man. He urged repeatedly not to be attached to the body and its pleasures, for the body which perishes and becomes food for animals and worms. Think of God and surrender at God's feet.

Pattinathar worshiped Shiva at the Srikalahasti temple, which has inspired great poetic and musical works. The samadhi [attained salvation in this place] of Pattinathar is a historic landmark located on the Ennore Expressway in Tiruvottiyur.

Inside the Nandrudayan Vinayaga temple in Devadhanam, Tiruchirappalli, idol for Pattinathar is found.

Thursday, March 1, 2012

Working with RAD - Common errors & fixes

I am documenting some of the common issues that we face while setting up your project workspace with an IDE like RSA/RAD. Basically all the Java development IDEs(like JBoss Developer Studio, Weblogic Workshop) are developed with Eclipse as their base. So most the problems and solutions are similar.


Please post your comments on how you liked this posting.


1) Deployment descriptor cannot be loaded :
“The deployment descriptor of the module yourAppplication.war cannot be loaded”

Soln: You would have to refresh the workspace and do a clean build. If that doesnt work, you should remove the WAR entry thats causing problem in the application.xml(deployment descriptor of EAR project) and then try adding the web module back to the EAR. This should solve the issue.




2) While running the server, if you get an error saying some file not found exception or EAR not found error and if you are sure that you dont need any EAR of that name, you can remove the EAR from the WAS profile folder that you are working on.


Eg path: 
C:\IBMSDP70\runtimes\base_v61\profiles\ThisProfile\config\cells\<>\applications


If you still keep getting the errors on server startup , you can ignore them as they wont cause any issue. If you would like to get rid of them anyhow, remove the lines that reference it from the serverindex.xml. The tags to look for is .
This file can be found under
C:\IBMSDP70\runtimes\base_v61\profiles\ThisProfile\config\cells\<>\nodes\<>





3) Class not found exceptions java.lang.ClassNotFoundException
    Could not instantiate class XXX


Soln: 
a)Try to see if you are able to find that class in the workspace using "Open Resource" option(Ctrl+Shift+R). If it is expected to be within a jar, then try finding the class using "Open Resource" option(Ctrl+Shift+T), you will surely find it (if the source code ins SCM is integral/complete). Once you find the class, identify the jar that owns it and try to put it in the buildpath of the project.


b) If the above solution doesnt work, then place those jar files under C:\IBMSDP70\runtimes\base_v61\lib\ext. The path may vary depending on your RAD & app server version. This solution makes the jar files available for all the EARs, all the profiles that would be deployed to the application server(if put inside WAS6 , it will not be available for WAS6.1 version profiles) 




4) If you get any error like ,Error loading deployment.xml for URApplicationEAR: com.ibm.ws.exception.ConfigurationWarning , then chances are that the application, URApplicationEAR is missing in the deployment folder for RAD, but mentioned in serverindex.xml. Remove that entry from that file and re-run the server


File location: C:\IBMSDP70\runtimes\base_v61\profiles\ThisProfile\config\cells\UrPCNameNode01Cell\nodes\UrPCNameNode01


5) Some times you get an error, ERROR IWAE0053E "explaining" that an internal error occured. Sometimes you also get a pointer that an validation error occured with your EAR or WAR. 


---com.ibm.etools.validation.ValidationException: CHKJ3008E: Missing or invalid WAR file.


If you have taken the code fresh from SCM repository (SVN/CVS/VSS etc) and it is a valid code, then the problem just lies in our workspace. To fix this issue, just refresh the projects in your project explorer. If that doesnt work, do a clean & build. 


In one of my projects, the error went away when I manually removed all the WAR and EJB references in the EAR project application.xml and then adding them back. But in another project of mine, I couldnt find the EJB reference after removing it from EAR. So clean build worked here.