Monday, April 26, 2010

JSF and Error Messages

I was working on JSF and I tried to display an error message. It never worked. The reason is
I was using redirect tag in faces-config.xml. Please dont use the redirect tag (< redirect/>) in faces-config.xml the error messages are request scope. So these messages will be lost when you do a redirect.

ORA-12154: TNS:could not resolve the connect identifier specified and windows 64 bit machines

I Installed oracle 10.2.0.1 on my windows xp 64 bit machine. I was able to log on on to Sql plus.The problem was Toad was not able to connect and websphere message broker too. I received ORA-12154: TNS:could not resolve the connect identifier when i tried to connect from Toad or WMB tool kit. After 2 days of research I found that there is a bug in oracle client on 64 bit machines because on 64 bit machines oracle installs in to program files x86 folder part of apllication . To resolve this issue download patch from oracle but this will require metalink.oracle.com access (the simplest way is to ask the DBA generally they have access to oracle support). I applied oracle 10.20.0.4 patch (patch no: p6810189_10204_Win32) and now it is working fine. Happy coding.