[eluser]M Moeen uddin[/eluser]
I resolved that by looking at this same post. Actually i have added the url lib but in the wrong (autoload file) array ie i defined it in the core array but url lib is a helper class.
Even with this, the lib was getting loaded with apperently no errors. but when the redirect is used it gives fatal error: undefined redirect.
I assign the lib to the array used for helper classes.
Everything is fine now.
Thanks for the reply.