cancel
Showing results for 
Search instead for 
Did you mean: 

I can't log into the generated application

jackarnd
Star Contributor
Star Contributor

I've done all the tutorial forCreating your first application with ADF  but I'm stuck in theRunning and using the application I've created and genereated the application but I can't log on.

I've tested admin/admin (which I use to log on all Alfresco ECM), admin@app.activiti.com/admin (which I use to log on Process Services)

I can log on all the Alfresco services, such as share, api-explorer, activiti etc 


Moreover when I generate an app from the github repository demos like the datatable for instance,Files from the ng2-component datatable demo

It doesn't give me anything when I start it just a blank page at localhost:63621

I sincerely hope that anyone can help to resolve those issues which I believe may be linked.

P.S : besides that, everything works properly, the Share webapp works perfectly(I can log in with the users I created in it), even BPM (Activiti) that i wanted to try.

17 REPLIES 17

Ok, well nothing happens in the network section when I try to login (I just have the console errors shown before). However when I reload the page I get all of this (if it can help) : 



Hi Jack,

you should login and search for :

alfresco/api/-default-/public/authentication/versions/1/tickets 

 

Ok so I get this :

{"error":{"errorKey":"framework.exception.UnsupportedResourceOperation","statusCode":405,"briefSummary"
:"03190008 L'opération n'est pas prise en charge","stackTrace":"Pour des raisons de sécurité, 
le traçage de la pile n'est plus affiché, mais la propriété est conservée dans les versions 
précédente.","descriptionURL":"https://api-explorer.alfresco.com"}}


Saying that the "The operation is not supported" and "For safety reasons, the stack tracing is no longer displayed, but the property is retained in the former versions."

There we go this is the error it says 405 probably could be a CORS problem because your FE and BE are not on the same domain.Try to follow the procedure in this link : 

alfresco-ng2-components/ALFRESCOCORS.md at master · Alfresco/alfresco-ng2-components · GitHub 

I actually did that from the very beginning but after many researches I thought it was the cors that I didn't set up well so I did follow this tutorial and allow them with the .jar and manually but, unfortunately, it didn't change anything...

Besides, when I go there : http://localhost:8080/alfresco/api/-default-/ I get a 404 error : 

{"error":{"errorKey":"framework.exception.EntityNotFound","statusCode":404,"briefSummary":"03190003 The entity associated with the id :  is not found","stackTrace":"For safety reasons, the stack tracing is no longer displayed, but the property is retained in the former versions.","descriptionURL":"https://api-explorer.alfresco.com"}}


At localhost:8080/alfresco/api/ I get :

{"list":{"pagination":{"count":1,"hasMoreItems":false,"totalItems":1,"skipCount":0,"maxItems":100},"entries":[{"entry":{"quotas":[],"isEnabled":true,"id":"-default-"}}]}}



When I try to log on the ADF I still get these errors about polyfills :
Failed to execute 'open' on 'XMLHttpRequest': Invalid URL at eval (eval at <anonymous> (http://localhost:3000/polyfills.js:2649:2), <anonymous>:1395:27) at XMLHttpRequest.open

eugenio_romano
Elite Collaborator
Elite Collaborator

 I see that you probably have more than one error could you join to the gitter channel in order to do a more rapid debug  Alfresco/alfresco-ng2-components - Gitter  thanks

Ok, again, thank you for your help !

In the end we figure out that the setting for CORS and Process service and Content service URL were wrong.

The http prefix was missing in order to avoid this kind of problem inthe feature a validation in the settings will be added. [ADF-498] URL validation for ADF settings - Alfresco JIRA 

Thanks ‌ for the feedback