GlassFish 4.1 deploy is failing on eclipse Luna with JDK 8

前端 未结 2 994
梦毁少年i
梦毁少年i 2021-01-14 12:34

Cannot deploy Glassfish.jsp on eclipse Luna, with JDK 8, glassfish 4.1.

Exception Stack Trace:

    org.glassfish.tools.ide.admin.CommandException: Ca         


        
相关标签:
2条回答
  • 2021-01-14 13:06

    When you add your Glassfish server in Eclipse, there is an option to "Preserve sessions across redeployment". There is a bug in the Glassfish tools plugin (as of January 22, 2015 at least). The offending code is in oracle.eclipse.tools.glassfish.AbstractGlassfishServer in the computePreserveSessions() method. If you UNCHECK the option, the method returns null, that key is inserted into a Map further down the call stack, and someone else checks for null keys, and boom: "Cannot initialize Runner class".

    Basically, check "Preserve sessions across redeployment", undeploy any previously failed deployments, and redeploy.

    Works for me.

    0 讨论(0)
  • 2021-01-14 13:09

    Yes, it seems Glassfish for Eclipse Luna is broken. see: https://github.com/spring-projects/spring-boot/issues/1355

    Workaround: 1) export as a WAR file via eclipse. 2) use

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

    to deploy via the "Applications" tab.

    0 讨论(0)
提交回复
热议问题