1/10/2011

OldServiceComponentException: Build namespace ...

I just ran across the following Exception :

Caused by: com.liferay.portal.OldServiceComponentException: Build namespace Chat [...].




By doing a little research I found out that this only happens when you (fool ;) ) try to deploy a ServiceBuilder generated portlet into an environment that already has this portlet in a newer version.


If this happens you can be pretty sure that either your sources are too old or you are deploying to the wrong server (this was what I did ...). 


How do you resolve it ?


Open up the file service.properties which you will find in your src directory. Change the entry for build.number to a newer version that the one the Exception just told you ;)


That´s all - your portlet now should be deployable. But beware ... make sure, that you are deploying the right sources to the right server before doing so.



If you liked this tutorial it would be very nice, if you could click on some of the google ads you see on the right side. It helps me run this block and motivates me ;)

If you have any questions, feel free to leave a comment.