Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Deploying Rest Route on ESB-SE Runtime Error "Could not start Jetty server on port 8,040: Address already in use: bind"

I'm trying to deploy a REST based route, and I'm getting the error

 

 "Could not start Jetty server on port 8,040: Address already in use: bind"

 

The endpoint is defined as "http://127.0.0.1:8040/status" which is the same port being used by Jetty for the ActiveMQ web client etc.

 

If I change the rest end point to port 8041 it works fine.

 

If I deploy multiple rest based routes, do they need to have their own port for each route, or can they share a port, using the identifier after the / to differentiate? If they can share, how do they need to be deployed so they don't give a bind error?

 

Labels (3)
4 Replies
Anonymous
Not applicable
Author

Port numbers should not have a comma

Use a port number once

Anonymous
Not applicable
Author

Also  make sure port 8040 is not used by any other application  ie skype

Anonymous
Not applicable
Author

Hi! Thanks for this, but it doesn't answer my key question.

 

If I have numerous routes that provide a REST service, can I have different endpoints in each route, but using the same Jetty instance, and the same port...

 

So for example, I want to be able to have

 

http://localhost:8041/routeA

with a number of commands beneath it, and then a separate route, sharing the Jetty instance

http://localhost:8041/routeB

also with a number of commands beneath it.

Are you really saying that if I deploy multiple routes with rest services they each have to have their own Jetty instance and port?

Anonymous
Not applicable
Author

I know from coding when you declare the jetty instance it is declared as new(port#)

this will cause it to clash

others may have other ideas.