掲示板

Configure Jar Gobally

6年前 に deep pep によって更新されました。

Configure Jar Gobally

New Member 投稿: 10 参加年月日: 13/10/10 最新の投稿
Hi,
I am using Liferay 7 with wildfly 10.0.I have a jar where i am using for authentication in the same jar i am having singleton class where i am initializing few properties for authentication and need to share few properties with other portlets once login.I need to point all my portlets to this jar.
But when i am placing the jar in wildfly modules authentication is working but my portlet applications are unable to find the jar due to that i am getting classnotfound exception while run time.Kindly help on this i am using spring mvc portlet
Regards,
Dileep M
thumbnail
6年前 に David H Nebinger によって更新されました。

RE: Configure Jar Gobally

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Classes from the application container are not automagically exposed within the OSGi container.

Liferay purposefully constructs the OSGi container to limit pollution from the app container.

First it sounds like your implementation is sloppy. Configuration should stand on its own, so I'd implement this as a standard OSGi configuration admin interface. This way any dependent classes could access the settings via the configuration support in Liferay, including the authentication mechanism.

Second, the custom authentication thing should be implemented as standard Liferay authentication mechanisms and also deployed as an OSGi component service directly into the container. By following Liferay authentication patterns, custom auth mechanisms can be easily integrated into the existing authentication chain.










Come meet me at Devcon 2017 or 2017 LSNA!