Thanks Cameron, i was actually facing problems with this earlier. I could create a simple portlet service and use it in my portlet application. The portlet service, when run independently with the spring injection ran fine. But when i tried running it as a service(in the sense, use it in my portlet application), it used to cause me problems saying, the spring-beans.xml was not found. If the give the absolute path of the xml in the application, it would work fine, but the relative paths were causing problems. It's ok now. i could solve it with some changes in my code.