afro-Nija afro-Nija - 1 year ago 197
Java Question

PermissionChecker not initialized Liferay Exception when trying to create or access user object via soap web service

I am struggling with this problem for a long time now and each time it resurfaced i keep doing one thing i.e. changing the entire tomcat and database some times which i feel very awkward about.

I have tried to research the problem but all leading to no where.

always giving ERROR [http-bio-8080-exec-11][UserServiceSoap:858] PermissionChecker not initialized PermissionChecker not initialized

I have tried this solution which leads to this actually reading this article but all to no headway.

I have changed a lot in the portal-ext properties file of the liferay tomcat and nothing seems to be happening.

I used to be able to create users and manipulate users via web service using soap and without any change in the source this problem always starts up by it self.

Kindly assist in putting me in the right direction for a positive solution.

Answer Source

After a serious session checking all possible problems and comparing other tomcat instance of liferay in house a discovery is found that was set to false which by default is suppose to be true for soap authentication to be successful.

Which on the instances that is giving problem it was set to false on the portal-ext file this line actually fixed the problem or just comment it out.

However make sure the axis.servlet.hosts.allowed is set to have the calling url IP otherwise you will get a 403 http status code denying your access to the instance in this case:


And that is all you need to get over this problem.

Thanks and I hope this helps anyone with similar problem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download