Glassfish3 提示Remote server does not listen for requests on [localhost:4848]. Is the server up......

Glassfish3 执行asadmin ** 命令时提示:

Remote server does not listen for requests on [localhost:4848]. Is the server up?
No such local command, enable-secure-admin. To run remote commands, start the application server (e.g. 'asadmin start-domain').
Command enable-secure-admin failed.

原因: You changed the port in the domain.xml, but the domain.xml file controls the port on which the server listens, not the port to which the asadmin client connects.

解决:To change the asadmin connect port the same as server port, use the --port option.

For example:

$ asadmin --port 17902
Use "exit" to exit and "help" for online help.
asadmin> enable-secure-admin

注意此时使用asadmin命令就直接给命令参数。

posted on 2015-03-24 19:10  小林子的烂笔头  阅读(1796)  评论(0编辑  收藏  举报

导航