Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Worklight server is not running it gives following error:

Port 8080 required by HTTP Preview at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
Posted

1 solution

I have resolved issue by myself.

When you start Eclipse with Worklight Studio, an embedded application server is started automatically to host a Worklight Server instance for your adapters and apps.

This internal server uses port 8080 by default.

If port 8080 is occupied by another application running on your development computer, you may need to configure Worklight Studio’s internal server to use a different port. To do so, follow these instructions:

Step 1: In the Eclipse home folder, open the eclipse.ini file. This file is located in the same folder with the Eclipse executable.

Step 2: After the -vmargs line, add: -Dworklight.port=8085 (or any other port number of your choice)

Step 3: Restart Eclipse

If you develop Facebook apps or mobile web apps, you should also make sure that you set this port also as the value of the configuration
publicWorkLightPort in the file <projectname>
/server/conf/worklight.properties, of each of your Worklight projects. This ensures that Worklight Console’s features Get URL for Facebook and Embed in Web Page work correctly.

You can find it on page 7. Here is the link to the PDF.

http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/docs/wl_5_0_dev_env_install.pdf

Thanks & Regards,

Muhammad Omer Khan
Software Engineer
United Bank Limited
Pakistan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900