Hi,
I have been testing multi tenant on ofbiz 10.04 release branch. I could setup the demo data using run-install-multitenant. Though I have a few questions & observation which I would like to share with the community - Question first, 1. Significance of datasource name localderbytenant ? 2. Whats the purpose of the configuration described here in https://cwiki.apache.org/OFBIZ/multitenancy-support.html#Multitenancysupport-Datasourcereferenceondelegator, as the tenant information would be stored in entity "TenantDataSource" ? Observation - 1. Tried login into webtools with tenant DEMO1, user bizadmin, rightly this user was not allowed to login indicated by the message "You cannot login to this application". 2. Next, tried login into webtools tenant DEMO2, user admin. Login was denied with message "Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.NullPointerException (null)" With error messages in the log - 2010-12-21 18:05:03,008 (http-0.0.0.0-8443-4) [DelegatorFactoryImpl.java:30 :INFO ] Creating new delegator [default#DEMO1#DEMO2] (http-0.0.0.0-8443-4) 2010-12-21 18:05:03,069 (http-0.0.0.0-8443-4) [DelegatorFactoryImpl.java:35 :ERROR] ---- exception report ---------------------------------------------------------- Error creating delegator Exception: org.ofbiz.entity.GenericEntityException Message: No Tenant record found for delegator [default#DEMO1#DEMO2] with tenantId [DEMO1#DEMO2] This seems session is not being cleared in case of #1. -- Regards, Varun Bhansaly |
Note - If cookies are cleared after #1, theres #2 does not occur.
On Tue, Dec 21, 2010 at 7:33 PM, varun bhansaly <[hidden email]> wrote: > Hi, > > I have been testing multi tenant on ofbiz 10.04 release branch. I could > setup the demo data using run-install-multitenant. > > Though I have a few questions & observation which I would like to share > with the community - > Question first, > 1. Significance of datasource name localderbytenant ? > 2. Whats the purpose of the configuration described here in > https://cwiki.apache.org/OFBIZ/multitenancy-support.html#Multitenancysupport-Datasourcereferenceondelegator, > as the tenant information would be stored in entity "TenantDataSource" ? > > Observation - > 1. Tried login into webtools with tenant DEMO1, user bizadmin, rightly this > user was not allowed to login indicated by the message "You cannot login to > this application". > 2. Next, tried login into webtools tenant DEMO2, user admin. Login was > denied with message > "Error calling event: org.ofbiz.webapp.event.EventHandlerException: > Problems processing event: java.lang.NullPointerException (null)" > > With error messages in the log - > > 2010-12-21 18:05:03,008 (http-0.0.0.0-8443-4) [DelegatorFactoryImpl.java:30 > :INFO ] Creating new delegator [default#DEMO1#DEMO2] (http-0.0.0.0-8443-4) > 2010-12-21 18:05:03,069 (http-0.0.0.0-8443-4) [DelegatorFactoryImpl.java:35 > :ERROR] > ---- exception report > ---------------------------------------------------------- > Error creating delegator > Exception: org.ofbiz.entity.GenericEntityException > Message: No Tenant record found for delegator [default#DEMO1#DEMO2] with > tenantId [DEMO1#DEMO2] > > This seems session is not being cleared in case of #1. > > -- > Regards, > Varun Bhansaly > -- Regards, Varun Bhansaly |
#1)the original configuration uses the localderbytenant to load
/framework/entity/data/TenantDemoData.xml #2)there is a email thread about this. search the archives. thanks to point this out. if you want to contribute a patch please do. practically, only and admin would do this and run into this problem. ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man varun bhansaly sent the following on 12/21/2010 6:50 AM: > Note - If cookies are cleared after #1, theres #2 does not occur. > > On Tue, Dec 21, 2010 at 7:33 PM, varun bhansaly<[hidden email]> wrote: > >> Hi, >> >> I have been testing multi tenant on ofbiz 10.04 release branch. I could >> setup the demo data using run-install-multitenant. >> >> Though I have a few questions& observation which I would like to share >> with the community - >> Question first, >> 1. Significance of datasource name localderbytenant ? >> 2. Whats the purpose of the configuration described here in >> https://cwiki.apache.org/OFBIZ/multitenancy-support.html#Multitenancysupport-Datasourcereferenceondelegator, >> as the tenant information would be stored in entity "TenantDataSource" ? >> >> Observation - >> 1. Tried login into webtools with tenant DEMO1, user bizadmin, rightly this >> user was not allowed to login indicated by the message "You cannot login to >> this application". >> 2. Next, tried login into webtools tenant DEMO2, user admin. Login was >> denied with message >> "Error calling event: org.ofbiz.webapp.event.EventHandlerException: >> Problems processing event: java.lang.NullPointerException (null)" >> >> With error messages in the log - >> >> 2010-12-21 18:05:03,008 (http-0.0.0.0-8443-4) [DelegatorFactoryImpl.java:30 >> :INFO ] Creating new delegator [default#DEMO1#DEMO2] (http-0.0.0.0-8443-4) >> 2010-12-21 18:05:03,069 (http-0.0.0.0-8443-4) [DelegatorFactoryImpl.java:35 >> :ERROR] >> ---- exception report >> ---------------------------------------------------------- >> Error creating delegator >> Exception: org.ofbiz.entity.GenericEntityException >> Message: No Tenant record found for delegator [default#DEMO1#DEMO2] with >> tenantId [DEMO1#DEMO2] >> >> This seems session is not being cleared in case of #1. >> >> -- >> Regards, >> Varun Bhansaly >> > > > |
Free forum by Nabble | Edit this page |