从命令行升级glassfish

时间:2013-03-19 23:54:55

标签: java-ee glassfish java-ee-6 java-ee-5

我试图在日食中启动我的glashfish,但我得到了错误:S erver GlassFish Server Open Source Edition 3 (Java EE 6) at localhost failed to start.

并建议:

The configuration data for this domain must be upgraded to run with this
version of the software. To upgrade the data, run:
    asadmin start-domain --upgrade
Then start the domain normally.
Command start-domain failed.

我的问题是如何从命令行升级它?

在我的glasfish文件夹中,我有bin文件夹,bin里面包含一个名为asadmin的文件..当我cd到bin,并运行asadmin start-domain --upgrade时,它抱怨asadmin命令不是一个命令.. 任何人都知道如何从命令行运行glassfish?

1 个答案:

答案 0 :(得分:0)

它应该按照你描述的方式工作。如果你在Linux上,你可以尝试

./asadmin start-domain --upgrade

如果当前目录不在您的搜索路径中。