Glassfish 已经安装到 Netbeans 中。但是我忘记了密码和用户名。(不是admin
,adminadmin
)所以我重新安装到桌面。我遵循glassfish 配置之后,我尝试将 Netbeans 和 glassfish 关联起来。首先,我创建了 Netbeans 6.7.1 Tools/servers/add Server/glassfish v2.1
服务器位置,我下载并配置了 glassfish 文件。选择注册本地域。然后我点击下一步。
选择域文件夹 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
我怎样才能摆脱这些异常?