tomcat7 - How can I get Liferay user ID from a external servlet -


i have problem. want liferay user id in servlet runs in tomcat, not in tomcat on liferay runs. if both runs in same tomcat, no problem, liferay api works perfectly. in case, when use 'userlocalserviceutil.decryptuserid' in order decrypt user id present in cookie, 'beanlocator null' exception.

what can do? has solution?

you can consume liferay's web services user details liferay servlet. can choose soap webservices or json webservices.

my recommendation in scenario use json webservice - get-user-by-email-address method (like this: http://<host>:<port>/api/jsonws?signature=/user/get-user-by-email-address-2-companyid-emailaddress) user object, , userid it.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -