掲示板

Required Deployment Context Issue

thumbnail
10年前 に Gnaniyar Zubair によって更新されました。

Required Deployment Context Issue

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
To use the dependency service jar file from my hook, i added this property

"required-deployment-contexts=common-services-portlet"
in my hook plugin's
liferay-plugin-package.properties.


But whenever i deploy , hook is not deployed because it shows
"Queueing My-hook for deploy because it is missing common-services-portlet""
.

I have tried all the way restarted the server and clean deploy , etc... But no luck it is not deploying properly.

After continuous deployment and cleaning temp folder it works fine some time.

Everytime we are facing this issue which kills our development time. Has Anybody faced this situation in Liferay 6.1 CE.?
thumbnail
10年前 に David H Nebinger によって更新されました。

RE: Required Deployment Context Issue

Liferay Legend 投稿: 14914 参加年月日: 06/09/02 最新の投稿
Hooks have no context of their own, they are used to hook the Liferay (ROOT) application. You cannot add a required deployment context to a hook.
thumbnail
10年前 に Gnaniyar Zubair によって更新されました。

RE: Required Deployment Context Issue

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
//Hooks have no context of their own, they are used to hook the Liferay (ROOT) application. You cannot add a required deployment context to a hook. //


No. I have tried adding required deployment contexts with many hooks. It works fine. It just copies dependent jar file when deploying.

I am facing this issue even for portlet plugins also. Thanks for your quick reply.
thumbnail
10年前 に vaseem bari によって更新されました。

RE: Required Deployment Context Issue

Junior Member 投稿: 86 参加年月日: 08/03/26 最新の投稿
Hello,

I am also facing dependency issue. changed the tomcat bundle also, no success. Any help !!!!!


Vaseem bari
thumbnail
9年前 に Gnaniyar Zubair によって更新されました。

RE: Required Deployment Context Issue

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
Once we declared required-deployment-contexts for any plugin, it should copy that jar file. But why we are getting "<plugin1> is still in queue and missing <plugin2>"....

Any solution from Liferay?
9年前 に Kevin Rosso によって更新されました。

RE: Required Deployment Context Issue

New Member 投稿: 4 参加年月日: 13/06/28 最新の投稿
Have you been able to solve this issue? I am also trying to add a portlet within a hook using required-deployment-contexts and am also receiving the message:
19:17:46,532 INFO [localhost-startStop-4][HotDeployEvent:109] Plugin my-hook requires my-remote-services-portlet-branch-3.0
19:17:46,809 INFO [localhost-startStop-4][HotDeployImpl:233] Queueing my-hook for deploy because it is missing my-remote-services-portlet-branch-3.0

Please let me know if you made any progress on this. If it is not possible as was mentioned above, what direction did you take?
thumbnail
9年前 に Andew Jardine によって更新されました。

RE: Required Deployment Context Issue

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
Kevin,

If that portlet is a service builder portlet, then you can move the jar file that contains the services stuff to the TOMCAT_HOME/lib/ext and remove the plugin dependency.
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Required Deployment Context Issue

Liferay Legend 投稿: 14914 参加年月日: 06/09/02 最新の投稿
If that portlet is a service builder portlet, then you can move the jar file that contains the services stuff to the TOMCAT_HOME/lib/ext and remove the plugin dependency.


Note, however, this has some bad side effects:

1) there should not be any other copy of the service jar in the webapps folder, so when deploying an update you need to then shut down tomcat to move the service jar to lib/ext overwriting the old one.
2) you cannot overwrite a jar from lib/ext while tomcat is running. This forces an app container restart on you at every deployment.
9年前 に Kevin Rosso によって更新されました。

RE: Required Deployment Context Issue

New Member 投稿: 4 参加年月日: 13/06/28 最新の投稿
Andrew,
When I move the .jar that contains the services, the hook deploys...but then when attempting to use the service code, I receive this error:
13:44:27,691 ERROR [http-bio-8080-exec-6][PortletBeanLocatorUtil:38] BeanLocator is null for servlet context my-remote-services-portlet-branch-3.0
13:44:27,698 ERROR [http-bio-8080-exec-6][render_portlet_jsp:154] com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context my-remote-services-portlet-branch-3.0

Any ideas?
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Required Deployment Context Issue

Liferay Legend 投稿: 14914 参加年月日: 06/09/02 最新の投稿
This happens if you are trying to use the service jar before the plugin providing the service has loaded.

Can also happen if the service jar is deployed but the plugin providing the service is not deployed or not starting.
9年前 に Kevin Rosso によって更新されました。

RE: Required Deployment Context Issue

New Member 投稿: 4 参加年月日: 13/06/28 最新の投稿
My SB code is contained in a portlet that is deployed and I've also copied the .jar that it produces to the lib/ext folder within Tomcat. I call the service code from a hook and the same error happens every time. Do I need to try removing something? Adding something?
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Required Deployment Context Issue

Liferay Legend 投稿: 14914 参加年月日: 06/09/02 最新の投稿
Are you trying to invoke the service before it's available? I.e. some startup action or something?
9年前 に Kevin Rosso によって更新されました。

RE: Required Deployment Context Issue

New Member 投稿: 4 参加年月日: 13/06/28 最新の投稿
No. The service code is not called upon until a user selects to 'Edit' another user via the control panel