【问题标题】:GlassFish 4.1 deploy is failing on eclipse Luna with JDK 8GlassFish 4.1 部署在使用 JDK 8 的 Eclipse Luna 上失败
【发布时间】:2014-11-06 17:55:45
【问题描述】:

无法在 Eclipse Luna 上使用 JDK 8、glassfish 4.1 部署 Glassfish.jsp。

异常堆栈跟踪:

    org.glassfish.tools.ide.admin.CommandException: Cannot initialize Runner class
        at org.glassfish.tools.ide.admin.AdminFactory.newRunner(AdminFactory.java:180)
        at org.glassfish.tools.ide.admin.AdminFactoryHttp.getRunner(AdminFactoryHttp.java:110)
        at org.glassfish.tools.ide.admin.ServerAdmin.exec(ServerAdmin.java:75)
        at oracle.eclipse.tools.glassfish.GlassfishServerBehaviourDelegate.publishDeployedDirectory(GlassfishServerBehaviourDelegate.java:608)
        at oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModuleForGlassFishV3(GlassfishV4ServerBehavior.java:96)
        at oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModule(GlassfishV4ServerBehavior.java:56)
        at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091)
        at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183)
        at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987)
        at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
        at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3157)
        at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

会话数据:

eclipse.buildId=4.4.1.M20140925-0400
java.version=1.8.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=es_MX
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

【问题讨论】:

  • 我也面临同样的问题。 Eclipse Luna 的 Glassfish 工具中有什么东西坏了吗?

标签: java eclipse glassfish


【解决方案1】:

当您在 Eclipse 中添加 Glassfish 服务器时,有一个“跨重新部署保留会话”选项。 Glassfish 工具插件中有一个错误(至少截至 2015 年 1 月 22 日)。违规代码在computePreserveSessions() 方法中的oracle.eclipse.tools.glassfish.AbstractGlassfishServer 中。如果您取消选中该选项,则该方法返回 null,该键被插入到调用堆栈的更下方的 Map 中,并且其他人检查 null 键,然后繁荣:“无法初始化 Runner 类”。

基本上,选中“在重新部署期间保留会话”,取消部署任何以前失败的部署,然后重新部署。

为我工作。

【讨论】:

    【解决方案2】:

    是的,Eclipse Luna 的 Glassfish 似乎坏了。 见:https://github.com/spring-projects/spring-boot/issues/1355

    解决方法: 1)通过eclipse导出为WAR文件。 2)使用

    http://localhost:4848/common/index.jsf

    通过“应用程序”选项卡进行部署。

    【讨论】:

    • 我希望这个问题得到解决。我不知道如何使用解决方法来使用 eclipse 调试器。
    猜你喜欢
    • 2023-03-21
    • 1970-01-01
    • 2015-05-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-08
    • 1970-01-01
    相关资源
    最近更新 更多