mswiderski / itorders-app

Complete application for IT orders to showcase case management in jBPM 7
Apache License 2.0
13 stars 14 forks source link

Address already in use #2

Open paulyiu opened 7 years ago

paulyiu commented 7 years ago

my jbpm-console run under localhost:8080 if I run itorders-app with below command I got Address already in use: java -Dorg.kie.server.location=http://localhost:8080/rest/server -jar target/itorders-web-1.0.0-swarm.jar

If I add -Dswarm.http.port=8081 then I got CORS issue when login

mswiderski commented 7 years ago

where is the CORS issue? these are two separate apps that do not having to do with each other - meaning console and it orders app...

paulyiu commented 7 years ago

capturechrome

mswiderski commented 7 years ago

updated location of the server via configuration.js file here https://github.com/mswiderski/itorders-app/blob/master/itorders-web/src/main/webapp/scripts/configuration.js#L10

paulyiu commented 7 years ago

I update the kieserver_url to: http://localhost:8080/kie-server/services/rest/server

same error because itorder-app host on localhost:8081

I can make it work if I zip the webapps into .war and deploy to localhost:8080

mswiderski commented 7 years ago

you need to change the port number since you run it on another port with wildly swarm so it must match the port in the configuration.js file