I've developed an ADF application and I'm trying to deploy it on a Tomcat Server (7.0.72 or 7.0.82) under port 3000.
These are the steps what I'm doing:
Generate the application which will be deployed typing the command line "npm run build" which executes the defined script "build": "ng build --base-href /w/" declared in "package.json". After this execution, a folder called "w" has been generated.
Open and check that the file "index.html" under "w" folder has the line <base href="/w/">
Move the file "app.config.json" from "/w/assets/" to "/w/"
Edit the file "app.config.json" setting the "ecmHost" value to "http://localhost:8080" (server where ACS is running)
Copy the "w" folder to the Tomcat server. Concretely, to the folder "webapps"
Add to the file "web.xml" (placed in "conf" folder in the Tomcat Server) the following filters:
Start the server and the application is deployed. The problem is when I'm logging I'm getting the next 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."
However, when I start the angular cli server on my IDE by "npm start" (which start is "start": "ng serve --proxy-config proxy.conf.json") the application works fine.