Click here to Skip to main content
15,886,578 members

GlassFish - I can't deployed because the port is occupied

DemeCarv asked:

Open original thread
I am following the JEE6 Tutorial. I installed SDK with GlassFish and after NetBeans. While installed GlassFish from SDK I wasn't able to use port 8080 because it was used by OracleXE. Then I chose 8081. Now when I am trying to deployed a simple project to GlassFish I couldn't. It is strange to me because I could open the mycomputer:8081/ and mycomputer:4848/ on my Chrome. After some search by Google, I attempted solve this issue by kill the process using 8080, re-seted the GlassFish to 8080 but I still unable to deployed the project and received the message that the port is occupied. It's strange because I now can open mycomputer:8080 and on port 8080 is java.exe started when I started GlassFish manually.

C:\Users\demecarv>netstat -aon | find ":80" | find "LISTENING" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1852 TCP 0.0.0.0:8081 0.0.0.0:0 LISTENING 384 TCP 0.0.0.0:8094 0.0.0.0:0 LISTENING 372 TCP 0.0.0.0:8096 0.0.0.0:0 LISTENING 472 TCP [::]:80 [::]:0 LISTENING 4 TCP [::]:8080 [::]:0 LISTENING 1852


I folowed:
http://stackoverflow.com/questions/2366043/glassfish-v3-domain-server-cannot-start-port-is-occupied[^]
Tags: Ports, Deployment

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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