You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2013/12/27 13:37:50 UTC

[jira] [Created] (OFBIZ-5447) .LoginWorker#logout leads to error in tenant specific ecommerce component

Pierre Smits created OFBIZ-5447:
-----------------------------------

             Summary: .LoginWorker#logout leads to error in tenant specific ecommerce component
                 Key: OFBIZ-5447
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5447
             Project: OFBiz
          Issue Type: Bug
          Components: specialpurpose/ecommerce
            Reporter: Pierre Smits
            Priority: Critical


In a tenant specific ecommerce application I have set following:
in the ofbiz-component.xml

    <webapp name="mytenant-ecommerce"
        title="mytenant-ecommerce"
        server="default-server"
        location="webapp/ecommerce"
        mount-point="/mytenant-ecommerce"
        app-bar-display="false"
    />
    
In the accompanying web.xml I have defined:

<context-param>
        <param-name>webSiteId</param-name>
        <param-value>mytenant-WebStore</param-value>
        <description>A unique ID used to look up the WebSite entity</description>
    </context-param>
    <context-param>
        <param-name>localDispatcherName</param-name>
        <param-value>mytenant-ecommerce</param-value>
        <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
    </context-param>
    <context-param>
        <param-name>entityDelegatorName</param-name>
        <param-value>default#mytenant</param-value>
        <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
    </context-param>

Everything works fine. All tenant specific aspects (data and screen)s as it should. Including registering and login. But when I log out, the redirect (to main) doesn't return to the main screen of the (tenant-specific) ecommerce application. In stead it shows the message that the webstore hasn't been set up (A Product Store has not been defined for this ecommerce site. A Product Store can be created using the ofbizsetup wizard.)

When looking thru the logs I see - prior to the logout event - that the delegator and dispatcher are as defined in the web.xml file for the component, being 'default#mytenant' and 'mytenant-ecommere' (see above exerpt of the web.xml) 
During the logout event, I see the destruction of the existing session and the creation of a new event.  See exerpt of log below.


     [java] 2013-12-27 13:15:57,107 (http-bio-0.0.0.0-8443-exec-155) [ControlEventListener.java:107:INFO ] Destroying session: 7AE24FD4BB7547E7463A0C9762ABA2FC.jvm1
     [java] 2013-12-27 13:15:57,108 (http-bio-0.0.0.0-8443-exec-155) [ControlEventListener.java:65 :INFO ] Creating session: AB4989D49CFA17454B62CA75523410B4.jvm1

Subsequently I see that the delegator has changed to 'default'
And following appears in the log:
     [java] 2013-12-27 13:15:57,827 (http-bio-0.0.0.0-8080-exec-98) [     RequestHandler.java:349:INFO ] This is the first request in this visit. sessionId=AB4989D49CFA17454B62CA75523410B4.jvm1
     [java] 2013-12-27 13:15:57,828 (http-bio-0.0.0.0-8080-exec-98) [ ProductStoreWorker.java:107:ERROR] No product store found in request, cannot set locale!
     [java] 2013-12-27 13:15:57,828 (http-bio-0.0.0.0-8080-exec-98) [ ProductStoreWorker.java:96 :ERROR] No product store found in request, cannot set CurrencyUomId!





--
This message was sent by Atlassian JIRA
(v6.1.5#6160)