cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure and run ADF?

wktham
Confirmed Champ
Confirmed Champ

Hi, I am trying to install and configure ADF. Managed to get the login in screen, at http://localhost:3000 but when I try to loging using admin@app-activiti.com, I got this error

"Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc."

I am following this tutorial:

ADF 101 - Getting Started with Alfresco Application Development Framework

and

ADF CORS solving strategies

Tried option 1, 2 and 4 without success.

Any help?

Thanks.

1 ACCEPTED ANSWER

wktham
Confirmed Champ
Confirmed Champ

Hi Eugenio & Francesco,

With Content Services set to 'off', I guess,  with user ID and password, I am able to login and get the Demo Application screen.

I think we can close/mark this as resolved.

View answer in original post

11 REPLIES 11

fcorti
Elite Collaborator
Elite Collaborator

Hi Tham,

I'm pretty sure it's a CORS related problem and you are following the right documents.

Can you please check (and provide, if not clear to you) a bigger portion of the log file?

I hope this will help you.

wktham
Confirmed Champ
Confirmed Champ

Hi Francesco,

I try to search around and can't find and log file related to this.

Do you know which log file/s and where is this file located?

Thanks.

fcorti
Elite Collaborator
Elite Collaborator

Yes, you right Tham, I used log file but the evidence of the issue is in the log of the browser.

Can you please check (and share if you'd want) the complete error message you can see in the console of the browser.
In case of CORS, you should find a detailed description of it.

wktham
Confirmed Champ
Confirmed Champ

Hi Francesco,

I am not sure if this print screen give any indicate of the error. Seems some authentication related error.

fcorti
Elite Collaborator
Elite Collaborator

Is your Alfresco Process Services running at localhost at port 8080?

wktham
Confirmed Champ
Confirmed Champ

Yes, my APS is running in port 8080.

This is my url. Able to login and do all the usual APS stuff.

http://localhost:8080/activiti-app/#/login 

wktham
Confirmed Champ
Confirmed Champ

Hi, see my comment below.

eugenio_romano
Elite Collaborator
Elite Collaborator

Hi Tham Wai Kok‌ do you have both content service and business services (APS) running ? If yes which are they address?

Hi Eugenio,

I only have APS install and using port 8080.

When I am running this command:

yo ng2-alfresco-app
For Alfresco platform server URL, I am using 9999. (anyway I don't have this install)
And for Activiti platform server URL, I use 8080.
I guess, I am using the correct port.