奇怪的错误阻止在GlassFish上运行的应用程序找到domain.xml

时间:2014-06-14 16:53:54

标签: java eclipse glassfish

我无法在Eclipse上的GlassFish服务器上运行应用程序:

Eclipse上的错误消息:

  

由于以下问题无法启动服务器:   java.io.FileNotFoundException:$ {sunappserver.rootdirectory} \ domains \ domain1 \ config \ domain.xml(系统找不到指定的路径)

完整堆栈跟踪:

java.lang.IllegalStateException: java.io.FileNotFoundException: ${sunappserver.rootdirectory}\domains\domain1\config\domain.xml (The system cannot find the path specified)
    at org.glassfish.tools.ide.server.parser.TreeParser.readXml(TreeParser.java:110)
    at org.glassfish.tools.ide.server.ServerTasks.startServer(ServerTasks.java:164)
    at oracle.eclipse.tools.glassfish.GlassfishGenericServerBehaviour$StartJob.call(GlassfishGenericServerBehaviour.java:671)
    at oracle.eclipse.tools.glassfish.GlassfishGenericServerBehaviour$StartJob.call(GlassfishGenericServerBehaviour.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: ${sunappserver.rootdirectory}\domains\domain1\config\domain.xml (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at org.glassfish.tools.ide.server.parser.TreeParser.readXml(TreeParser.java:102)
    ... 7 more

domain.xml DOES存在于指定的位置。此外,如果我通过asadmin启动GlassFish服务器。

我使用GlassFish工具和GlassFish 4服务器运行Eclipse Kepler(SR2)。

如何解决这个问题?

0 个答案:

没有答案