Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans 7.1.2 - Unable to add glassfish server 3.1.2

I downloaded glassfish server from http://glassfish.java.net/downloads/3.1.2.2-final.html and installed in separately.

Now I am trying to add this in Netbeans. But it does not work. I did the below steps

  1. Open Netbeans as administrator
  2. Open Tools -> Servers
  3. Click "Add Server" button
  4. Choose GlassFish Server 3+
  5. Specify a name as "GlassFish"
  6. Choose the installation folder location - C:\glassfish3

Now it displays the error "Not a valid Glassfish server Installation".

I am new to Netbeans & Glassfish & now don't know how to continue. My glassfish server is running successfully at localhost:8181

Can someone please help?

like image 814
Uma Ilango Avatar asked Jan 14 '23 19:01

Uma Ilango


2 Answers

I had this same issue and was able to fix it by following what was done in the video found here: http://happilyblogging.wordpress.com/2012/10/04/not-a-valid-glassfish-server-installation-netbeans/

Essentially, you must stop the gf3 server and rename the console-core-X.X.X.jar located in \glassfish3\glassfish\lib\install\applications__admingui\WEB-INF\lib to console-core-3.1.2.jar

like image 132
Pawn Avatar answered Feb 16 '23 06:02

Pawn


There is one simpler workaround. Just change the name of the jar in glassfish installation (c:\glassfish3\glassfish\lib\install\applications__admingui\WEB-INF\lib\console-core-3.1.2.jar) Then our server 3.1.2.x will be recognized by the netbeans as version 3.1.2 ;-) Works fine.

like image 36
Jitesh Avatar answered Feb 16 '23 06:02

Jitesh