ofbiz deploy error in Jboss and Tomcat
Hi I have tried to deploy ofbiz in Jboss and Tomcat as some document, but failed to deploy on the two application server. Can you guide me how to deploy? Or any new deployment document? Thanks in advance. Best Regards Zong-ming The information contained in this email may contain confidential or legally privileged information. If you are not the intended recipient any disclosure, copying, distribution or taking any action on the contents of this information may be unlawful. If you have received this email in error, please delete it from your system and notify us immediately. Any views expressed in this message are those of the individual sender, except where the message states otherwise. IDBS takes no responsibility for any computer virus which might be transferred by way of this email and recommends that you subject any incoming E-mail to your own virus checking procedures. We may monitor all E-mail communication through our networks. If you contact us by E-mail, we may store your name and address to facilitate communication.
Re: ofbiz deploy error in Jboss and Tomcat
The reference is https://cwiki.apache.org/confluence/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers If it does not work maybe you use a newer version and there are new problems to solve... Jacques Zongming Guo wrote: Hi I have tried to deploy ofbiz in Jboss and Tomcat as some document, but failed to deploy on the two application server. Can you guide me how to deploy? Or any new deployment document? Thanks in advance. Best Regards Zong-ming The information contained in this email may contain confidential or legally privileged information. If you are not the intended recipient any disclosure, copying, distribution or taking any action on the contents of this information may be unlawful. If you have received this email in error, please delete it from your system and notify us immediately. Any views expressed in this message are those of the individual sender, except where the message states otherwise. IDBS takes no responsibility for any computer virus which might be transferred by way of this email and recommends that you subject any incoming E-mail to your own virus checking procedures. We may monitor all E-mail communication through our networks. If you contact us by E-mail, we may store your name and address to facilitate communication.
Re: Protecting Project Screen from parties not listed as a resource
Adrian, I think there's a service already that does that. However, I am not sure I am using it or understand it properly. The service is in "specialpurpose/projectmgr/script/org/ofbiz/project/ProjectPermissionServices.xml" I am calling it from projectmgr/widget/ProjectScreens.xml. I just added the part The issue now is not user have access to any project. What am I missing ? Thank you in advance. On Thu Jul 28,2011 11:34 pm, Adrian Crum wrote: > Look in Party Manager. There are permission services that check to see > if the logged-in user is connected to another party in some way before > granting permission to do something. > > -Adrian > > On 7/28/2011 11:18 PM, Mansour Al Akeel wrote: > > Adrian, > > What would be the correct permission to use to protect projects the user > > is not part of ? > > I am using "PROJECTMGR_ROLE_VIEW", based on my understanding but not > > sure if this is correct. > > > > Can you please kindly, explain (give a link) about the difference in > > creating a separate service to check the permission, and specific > > permission check in the screen the way I am doing it ? I understand > > examples exist in another components, but examples for checking the > > permission in a screen are used widely in the same file I am editing. > > > > > > Thank you. > > > > > > On Thu Jul 28,2011 06:51 pm, Adrian Crum wrote: > >> Create a permission service, then use that in your screens instead of > >> specific permission checks. You can find examples of this in the Party > >> Manager. > >> > >> -Adrian > >> > >> > >> On 7/28/2011 6:49 PM, Mansour Al Akeel wrote: > >>> On my local system, any user with PROJECTMGR_VIEW can access projects > >>> even if they are not listed as a resource. I wanted to limit this > >>> permission so, I edited the ProjectScreens.xml to check for permissions. > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>>>>> value="ProjectMgrProjectSummary"/> > >>> > >>>>>> default-value="${parameters.workEffortId}"/> > >>> > >>>>>> from-field="projectId"/> > >>> > >>> > >>> > >>> > >>>>>> location="${parameters.mainDecoratorLocation}"> > >>> > >>> > >>>>>> title="${uiLabelMap.PageTitleProjectInformation}"> > >>>>>> location="component://projectmgr/widget/forms/ProjectForms.xml"/> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> However, a user with PROJECTMGR_ROLE_VIEW can still view any project > >>> regardless if she is a member of that project or not, by navigating to: > >>> > >>> https://localhost:8443/projectmgr/control/projectView?projectId=9100 > >>> > >>> If I understand thing correctely, PROJECTMGR_ROLE_VIEW allows access to > >>> entities owned by party, or if she is listed as a resource. > >>> > >>> Any advice ? > >>> > >>>
Re: Protecting Project Screen from parties not listed as a resource
You have your code set up correctly. You just need to examine the permission service to see what conditions it is looking for to grant permission, then set up your user with those conditions. -Adrian On 7/29/2011 7:35 PM, Mansour Al Akeel wrote: Adrian, I think there's a service already that does that. However, I am not sure I am using it or understand it properly. The service is in "specialpurpose/projectmgr/script/org/ofbiz/project/ProjectPermissionServices.xml" I am calling it from projectmgr/widget/ProjectScreens.xml. I just added the part The issue now is not user have access to any project. What am I missing ? Thank you in advance. On Thu Jul 28,2011 11:34 pm, Adrian Crum wrote: Look in Party Manager. There are permission services that check to see if the logged-in user is connected to another party in some way before granting permission to do something. -Adrian On 7/28/2011 11:18 PM, Mansour Al Akeel wrote: Adrian, What would be the correct permission to use to protect projects the user is not part of ? I am using "PROJECTMGR_ROLE_VIEW", based on my understanding but not sure if this is correct. Can you please kindly, explain (give a link) about the difference in creating a separate service to check the permission, and specific permission check in the screen the way I am doing it ? I understand examples exist in another components, but examples for checking the permission in a screen are used widely in the same file I am editing. Thank you. On Thu Jul 28,2011 06:51 pm, Adrian Crum wrote: Create a permission service, then use that in your screens instead of specific permission checks. You can find examples of this in the Party Manager. -Adrian On 7/28/2011 6:49 PM, Mansour Al Akeel wrote: On my local system, any user with PROJECTMGR_VIEW can access projects even if they are not listed as a resource. I wanted to limit this permission so, I edited the ProjectScreens.xml to check for permissions. However, a user with PROJECTMGR_ROLE_VIEW can still view any project regardless if she is a member of that project or not, by navigating to: https://localhost:8443/projectmgr/control/projectView?projectId=9100 If I understand thing correctely, PROJECTMGR_ROLE_VIEW allows access to entities owned by party, or if she is listed as a resource. Any advice ?
Re: Protecting Project Screen from parties not listed as a resource
Adrian, first of all, thank you for the fast response. The issue is even admin can not login. I feel there's something wrong with the parameters. Here's the declaration of the service in: specialpurpose/projectmgr/servicedef/services.xml None of these attributes I see them being set anywhere. Am I missing something ? On Fri Jul 29,2011 08:53 pm, Adrian Crum wrote: > You have your code set up correctly. You just need to examine the > permission service to see what conditions it is looking for to grant > permission, then set up your user with those conditions. > > -Adrian > > > > On 7/29/2011 7:35 PM, Mansour Al Akeel wrote: > > Adrian, > > I think there's a service already that does that. However, I am not sure > > I am using it or understand it properly. > > > > The service is in > > "specialpurpose/projectmgr/script/org/ofbiz/project/ProjectPermissionServices.xml" > > > > > short-description="general service to check access to the project > > component"> > > > > > > > > > > > > > > > operator="contains"> > > > > > > > value="TimeEntry" operator="contains"> > > > > > > > value="Task" operator="contains"> > > > > > > I am calling it from projectmgr/widget/ProjectScreens.xml. I just added > > the part > > > > > > > > > > > main-action="VIEW"/> > > > > > > > > > > > default-value="${parameters.workEffortId}"/> > > > > > > > > > > The issue now is not user have access to any project. > > What am I missing ? > > > > Thank you in advance. > > > > On Thu Jul 28,2011 11:34 pm, Adrian Crum wrote: > >> Look in Party Manager. There are permission services that check to see > >> if the logged-in user is connected to another party in some way before > >> granting permission to do something. > >> > >> -Adrian > >> > >> On 7/28/2011 11:18 PM, Mansour Al Akeel wrote: > >>> Adrian, > >>> What would be the correct permission to use to protect projects the user > >>> is not part of ? > >>> I am using "PROJECTMGR_ROLE_VIEW", based on my understanding but not > >>> sure if this is correct. > >>> > >>> Can you please kindly, explain (give a link) about the difference in > >>> creating a separate service to check the permission, and specific > >>> permission check in the screen the way I am doing it ? I understand > >>> examples exist in another components, but examples for checking the > >>> permission in a screen are used widely in the same file I am editing. > >>> > >>> > >>> Thank you. > >>> > >>> > >>> On Thu Jul 28,2011 06:51 pm, Adrian Crum wrote: > Create a permission service, then use that in your screens instead of > specific permission checks. You can find examples of this in the Party > Manager. > > -Adrian > > > On 7/28/2011 6:49 PM, Mansour Al Akeel wrote: > > On my local system, any user with PROJECTMGR_VIEW can access projects > > even if they are not listed as a resource. I wanted to limit this > > permission so, I edited the ProjectScreens.xml to check for permissions. > > > > > > > > > > > > > > > permission="PROJECTMGR_ROLE_VIEW"/> > > > > > > > > > value="ProjectMgrProjectSummary"/> > > > > > default-value="${parameters.workEffortId}"/> > > > > > from-field="projectId"/> > > > > > > > > > > > location="${parameters.mainDecoratorLocation}"> > > > > > > > title="${uiLabelMap.PageTitleProjectInformation}"> > > > location="component://projectmgr/widget/forms/ProjectForms.xml"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > However, a user with PROJECTMGR_ROLE_VIEW can still view any project > > regardless if she is a member of that project or not, by navigating to: > > > > https://localhost:8443/projectmgr/control/projectView?projectId=9100 >