Reputation: 20253
I'm using NetBeans 8.1 (I can't upgrade to 8.2) and have been using Payara 4.1.2.172 without problems. I want to start using Payara 4.1.2.173. As always I've simply downloaded the Payara zip, unzipped it, and tried to add it to NetBeans as a GlassFish server. But when I select the folder where I've unzipped Payara 4.1.2.173, NetBeans tells me it is "Not a valid GlassFish Server installation".
Should I change anything within the Payara 4.1.2.173 folder structure in order to allow NetBeans to recognize it as a GlassFish server?
Upvotes: 2
Views: 1401
Reputation: 4963
There are 2 ways:
The problem here is down to the way that NetBeans detects what version of GlassFish you are trying to add. There is a particular JAR file which contains the version number of GlassFish/Payara Server. The Payara fix for this has been to rename the file as part of the build process, but you can manually rename this yourself to resolve the issue.
In the folder:
./glassfish/lib/install/applications/__admingui/WEB-INF/lib/
you will find a file with the following name:
console-core-4.1.2.173.jar
This should be renamed to:
console-core-4.1.1.jar
There are now native plugins in NetBeans for Payara Server. There are 4 available, but all are required. They can be added via NetBeans by using Tools
-> Plugins
and searching for Payara.
More detailed instructions are available in the Payara Server documentation.
Upvotes: 2