Glassfish已经安装到Netbeans中。但我忘记了密码和用户名。 (这不是admin
,adminadmin
)所以我重新安装到桌面。我跟着glassfish configuration之后我试图联合Netbeans和glassfish。首先我创建了Netbeans 6.7.1工具/服务器/添加服务器/ glassfish v2.1
服务器位置选择在我下载并配置glassfish文件的位置。注册本地域被选中。然后我点击下一步。如何将glassfish安装到netbeans中
选择域文件夹c:\ Sun \ AppSer \ Domains \ domain1,然后单击下一步。管理员:admin
密码:adminadmin
并点击完成。
但它不起作用。当我运行一个项目时,它会给出例外
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
我该如何摆脱这些异常?