When I do migration from liferay version 6.0 to version 6.1. In one jsp, it uses BBCodeUtil.getHTML(MBMessage message). When I deploy the project, it gives me an error that "only a type can be imported". See my another blog about this error. It means we miss jars. But BBCodeUtil should be in root lib. Why does liferay can't recognize? The reason is in Liferay version 6.1, there's no class called BBCodeUtil. It's merged to BBCodeTranslatorUtil.
Another thing is in BBCodeTranslatorUtil, methods are changed. It only provides API BBCodeTranslatorUtil.getHTML(String bbcode). So how can we get bbcode from MBMessage. We can do like this:
BBCodeTranslatorUtil.getHTML(message.getBody()) ===== BBCodeUtil.getHTML(message);
It works well. Try it..
For more info, see these:
http://www.liferay.com/community/forums/-/message_boards/message/12228500