问题
This is my first attempt at creating a Websphere Local run configuration in Intellij and obviously I need some help.
First question: is Websphere supposed to be running when I run the configuration?
Second question: when I run the configuration and Webshpere is not running Intellij will say 'cannot ping localhost:8880', so probably Websphere should be running. When I start Websphere and then start the Intellij run config it says "address localhost:8880 is already in use" and then "Unable to open debugger port (127.0.0.1:62019): java.net.SocketException: 'socket closed'".
Here is my setup:
Third question: from the Websphere admin console I got that port 8880 is configured as the SOAP_CONNECTOR_ADDRESS. Is Intellij supposed to use that?
Thanks!
回答1:
The following worked for me:
- Go to run/debug configuration and click on +
- Choose Remote (and not Websphere Server)
- Change port to the port you want to use(I choose 7777)
回答2:
To answer your question: no, if you want to start the server from IntelliJ, you should first check the server is stopped.
For solving the problem: Have you checked if WebSphere is running as a service automatically?
For doing it on Windows:
- Open a "File Explorer" window
- Right click on "My Computer"
- Click on "Manage"
- Click on "Services and Applications"
- Click on "Services"
- Look for "IBM WebSphere Application Server"
- Check if it's running and stop it, change it to manual if you want to start server from IntelliJ without repeating this whole process everytime you log in Windows.
来源:https://stackoverflow.com/questions/33437404/intellij-websphere-run-config-says-address-localhost8880-is-already-in-use