Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Some exist demo apps do not work using docker #8

@rogerwalt

Description

@rogerwalt

Demo Apps do not work in Docker Image

E.g. the XForms examples.

Steps to reproduce

  • Run the docker image, tag exist-db:eXist-3.6.1 using the command as documented in the readme docker run -it -p 9080:8080 -p 9443:8443 evolvedbinary/exist-db:eXist-3.6.1
  • Log in as admin (use the login to monitoring, login on dashboard does not work in exist when run natively either)
    image
  • Go to Package Manager
  • Install DemoApps
    image
  • Open the Demo Apps and navigate to XForms and RestXQ
  • First error: There is no example data shown here. In the container:
    image as opposed to when installed natively:
    image
    Also one can not add a new address (similar error).

Analysis

The error can be found when looking at the network requests. The request to http://localhost:9080/exist/Flux/call/plaincall/Flux.init.dwr contains an error:

        contextInfo: {
            targetName: "submission",
            targetId: "load",
            "response-body": "",
            "resource-uri": "http://localhost:9080/exist/restxq/address",
            "response-reason-phrase": "java.net.ConnectException: Connection refused (Connection refused)",
            "location-path": "/",
            "error-type": "resource-error",
            "response-status-code": NaN
        },

Dump

throw 'allowScriptTagRemoting is false.';
(function(){
var r=window.dwr._[0];
//#DWR-INSERT
//#DWR-REPLY
r.handleCallback("1","0",[{bubbles:true,cancelable:false,contextInfo:{defaultinfo:null,targetName:"model",targetId:"C1"},currentTarget:null,eventPhase:1,propertyNames:["defaultinfo","targetName","targetId"],target:null,timeStamp:1517300468711,type:"xforms-model-construct"},{bubbles:true,cancelable:false,contextInfo:{defaultinfo:null,targetName:"model",targetId:"C1"},currentTarget:null,eventPhase:1,propertyNames:["defaultinfo","targetName","targetId"],target:null,timeStamp:1517300468724,type:"xforms-model-construct-done"},{bubbles:true,cancelable:false,contextInfo:{defaultinfo:null,targetName:"model",targetId:"C1"},currentTarget:null,eventPhase:1,propertyNames:["defaultinfo","targetName","targetId"],target:null,timeStamp:1517300468733,type:"xforms-ready"},{bubbles:true,cancelable:false,contextInfo:{targetName:"submission",targetId:"load","response-body":"","resource-uri":"http://localhost:9080/exist/restxq/address","response-reason-phrase":"java.net.ConnectException: Connection refused (Connection refused)","location-path":"/","error-type":"resource-error","response-status-code":NaN},currentTarget:null,eventPhase:1,propertyNames:["targetName","targetId","response-body","resource-uri","response-reason-phrase","location-path","error-type","response-status-code"],target:null,timeStamp:1517300468772,type:"xforms-submit-error"}]);
})();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions