Cannot deploy Glassfish.jsp on eclipse Luna, with JDK 8, glassfish 4.1.
Exception Stack Trace:
org.glassfish.tools.ide.admin.CommandException: Ca
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.
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.