Reputation: 10058
I'm new to web application development using java ee, netbeans and mac. I initially decided to use glassfish as my server, but later I have changed my mind and decided to use tomcat instead.
When I created a web application project that include a tomcat server and tried to run it, I got error "Deployment error:Starting of Tomcat failed, the server port 8080 is already in use". I think it is due to the fact that my previous Glassfish server is using the port. How to stop the Glassfish server?
Upvotes: 1
Views: 1914
Reputation: 1030
Incase asadmin stop-domain or stopping through Netbeans is not successful, try to kill the process. In some cases, java out of memory exception occurs and port wouldn't get released.
killall -9 glassfish
or
killall -9 java
Upvotes: 1
Reputation: 158
asadmin is the command for controlling glassfish. Specifically, you want to stop the currently running domain.
To get a list of domains, try:
asadmin list-domains
To stop a given domain, try:
asadmin stop-domain <yourdomain>
Upvotes: 3