This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Make The Version Checks More Lenient | ||
---|---|---|---|
Product: | serverplugins | Reporter: | abien <abien> |
Component: | GlassFish | Assignee: | Petr Hejl <phejl> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | geertjan |
Priority: | P2 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
abien
2015-02-02 16:15:20 UTC
Prioritizing to investigate this. Related discussion: https://github.com/payara/Payara/issues/186 Also applies to nightly builds of GlassFish 4.1 where the jar is called console-core-4.2-SNAPSHOT.jar Interestingly enough I ran into the same issue while trying to run a local private build from GlassFish trunk. Mine also winds up being named console-core-4.2-SNAPSHOT.jar. Would be nice to get this fixed. This looks like some old piece of code was missed somewhere. There is a new org.netbeans.modules.glassfish.tooling.utils.ServerUtils#getServerVersion(String) method that reads version from com.sun.appserv.server.util.Version class stored in common-util.jar. If this fails, Manifest Bundle-Version value is used. Usage of console-core-* and other similar things is wrong and shall be replaced with this new code. Problem can be with snapshot builds where com.sun.appserv.server.util.Version version numbers are not set properly and in this case Manifest Bundle-Version is checked. As far as I remember, it was returning GlassFishVersion.GF_DEVEL for such a build and used highest known version to configure such a server. I did not check payara because it was not here when I was revritting this piece of code. Anyway, there are few things to check: * Why there is a check based on console-core-*.jar? It should be replaced with org.netbeans.modules.glassfish.tooling.utils.ServerUtils#getServerVersion(String) which is based on real version numbers stored in promoted GlassFich builds. * Check org.netbeans.modules.glassfish.tooling.utils.ServerUtils#getServerVersion(String) with payara to see if it works and eventually extend check to cover this fork too. This was already resolved in dev build. *** This bug has been marked as a duplicate of bug 253008 *** |