This repository was archived by the owner on Mar 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Copy link
Copy link
Open
Description
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.1using the command as documented in the readmedocker 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)

- Go to Package Manager
- Install DemoApps

- Open the Demo Apps and navigate to XForms and RestXQ
- First error: There is no example data shown here. In the container:
as opposed to when installed natively:

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
Labels
No labels