Cannot start GlassFish 4.1 from within Netbeans 8.0.1 Service area

前端 未结 10 772
离开以前
离开以前 2020-12-28 18:07

On Windows 7 I downloaded the \'netbeans-8.0.1-javaee-windows.exe\' installer from this site https://netbeans.org/downloads/. The installer installs GlassFish 4.1, Java 1.8.

相关标签:
10条回答
  • 2020-12-28 18:48

    I also had this problem, it is because there is an application LISTENING to 8080 port. To solve this problem I followed the below steps:

    1. Open cmd.exe then type

      netstat -aon | find ":8080" | find "LISTENING"

    2. You will see like this result

      TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1464

    3. Copy PID "1464".

    4. Open Task Manager (Ctrl+Alt+del), go to the details tag, then find the program or service via PID that is listening to the port 8080 then STOP it or End process.

    0 讨论(0)
  • 2020-12-28 18:52

    you can easily resolve this problem by changing the port number of glassfish.

    Go to glassfich configuration File domain.xml which is located under GlassFish_Server\glassfish\domains\domain1\config.

    Open this file, then change the following line:

    <network-listener port="8080" protocol="http-listener-1" transport="tcp" 
    name="http-listener-1" thread-pool="http-thread-pool"></network-listener>  
    

    replace 8080 by 9090 for example, then save file and run glassfish again. it should nicely work.

    0 讨论(0)
  • 2020-12-28 18:52

    I have the same problem. Mine is caused by a vmware installation. It is vmware worstation v8 on windows 7 and was a default installation.

    Running netstat -aon | find ":80" | find "LISTENING" from cmd showed PID of the service causing the problem, this related to vmware. Going to services, I manually stopped all of the running vmware services (did not change their start up type, just a manual stop - I want them to work again after the next reboot) I could immediately test my webservice, glassfish 4 started as it should.

    Hope it helps

    0 讨论(0)
  • 2020-12-28 18:55

    Following are the steps that will definitely work:

    1. Open CMD : Press Windows+R from keyboard or just type "cmd" in windows search
    2. Type Following in cmd : netstat -aon | find ":8080" | find "LISTENING"
    3. See the last column : There will be some number like 2816 or similar.(It will differ from this)
    4. Now open Task Manager (Keyboard shortcut : Ctrl+Shift+Esc)
    5. In that, go to Details Tab and under PID Column, search for the number you found in step 3
    6. Right Click on it and select end process
    7. Now happily go to Netbeans and Run your program

    NOTE : If you are running your program for the first time in Netbeans, it takes some time. So don't worry if it takes time.

    0 讨论(0)
提交回复
热议问题