Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans can't start Glassfish 4 server

I am using Netbeans 7.4 and Glassfish 4.0. I can start glassfish 4.0 manually from command line but when i click the run the project button from netbeans it says "Starting GlassFish Server". It became more than 10 minutes but nothing happens. It was running fine yesterday, i didn't change anything but today it can't start the server.

What may be the problem?

enter image description here

like image 482
Salih Erikci Avatar asked Jan 24 '14 09:01

Salih Erikci


People also ask

How do I resolve GlassFish error in NetBeans?

you can easily resolve this problem by changing the port number of glassfish. Go to glassfich configuration File domain. xml which is located under GlassFish_Server\glassfish\domains\domain1\config . replace 8080 by 9090 for example, then save file and run glassfish again.

What is GlassFish server Open Source Edition 4.1 1?

GlassFish is an open-source Jakarta EE platform application server project started by Sun Microsystems, then sponsored by Oracle Corporation, and now living at the Eclipse Foundation and supported by Payara, Oracle and Red Hat.


1 Answers

This problem stems in your locale settings but the solution is pretty simple:

In Netbeans installation directory find netbeans/etc/netbeans.conf file. Open & Edit the file using a text editor. Locate *"netbeans_default_options="* in the file and add --locale en to the end of options. For example mine looks like:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true --locale en"

Now restart Netbeans. If you are still having the same problem, delete and recreate your glassfish domain and it will work.

like image 111
salihcenap Avatar answered Oct 13 '22 20:10

salihcenap