views:

2571

answers:

1

Glassfish had already been into Netbeans. But i forgot the password and username. (it wasn't admin, adminadmin) So i reinstall to desktop. I followed glassfish configuration After that i tried to associate Netbeans and glassfish. first i create Netbeans 6.7.1 Tools/ servers / add Server / glassfish v2.1
server location is choosen where i download and configured the glassfish file. register local domain was choosen. And clicked next.

Domain folder was choosen c:\Sun\AppSer\Domains\domain1 and then clicked next. Admin:admin password:adminadmin and clicked finish.

But it doesn't work. When i run a project, it gives exceptions

Domain domain1 failed to startup. Please check the server log for more details.

 Caused by: java.lang.RuntimeException: java.rmi.server.ExportException: Port already in use: 8686; nested exception is: 
Caused by: java.rmi.server.ExportException: Port already in use: 8686; nested exception is: 
Caused by: java.net.BindException: Address already in use: JVM_Bind
CORE5061: Exception : 
com.sun.appserv.server.ServerLifecycleException: WEB0106: An error occurred while   stopping the web container
Caused by: LifecycleException:  WEB0103: This web container has not yet been started
        at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:912)
        at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:815)
        ... 10 more
CORE5051: Shutting down all J2EE applications ...
CORE5068 :  Stopping all J2EE Connector 1.5 Compliant resource adapters ...
CORE 5061 : Resource adapters Stop() Complete
CORE5052: Application shutdown complete.
CORE5061: Exception : 
java.lang.NullPointerException

How can i get rid of exceptions?

+1  A: 
Caused by: java.lang.RuntimeException: java.rmi.server.ExportException: Port already in use: 8686;

The server tries to listen on a port that is already in use. This happens if another server is already running or did not correctly release its ressources.

If another server runs on the same host, either stop the other server or configure another port.

If the port is blocked because of incorrect cleanup, try to kill all java processes and restart NetBeans/Glassfish. If this does not help, restart your computer.

wierob