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.
Steps to reproduce: 1. Install JDK 7u40 on OSX 10.8.4 2. Install NB 7.3 3. Install all updates 4. Register a glassfish 3.1.2 (just unzipped in a directory under "/Applications") 5. Try to start the instance (all is fine) 6. Open a editor and edit the domain.xml in glassfish 3.1.2 directory and change the following JVM options (do it on two places in the domain.xml): - Change "-Xmx512m" to "-Xmx3072m" - Change "-client" to "-server" - Change/Add "-Xms3072m" 7. Restart Netbeans 8. Try to start the GF instance -> Error message that an invalid JVM options is specified 9. Try to start the gf instance from command line -> all is working fine 10. Undo all changes in domain.xml -> Error in netbeans starting the GF instance persists
This is not show stopper. Startup task works with domain.xml that has not been modified manually and we can't guarantee that modified domain.xml is OK. First of all, please, use GlassFish admin console to modify JVM OPtions: Configurations :: server-config / default-config :: JVM Settings Click on JVM Options tab I did all those changes in GlassFish 3.1.2.2 domain.xml using supported way: <configs> <config name="server-config"> ... <java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" system-classpath="" classpath-suffix=""> ... <jvm-options>-Xms3072m</jvm-options> <jvm-options>-Xmx3072m</jvm-options> <jvm-options>-server</jvm-options> ... <config name="default-config"> <java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${JAVA_DEBUGGER_PORT}" system-classpath="" classpath-suffix=""> ... <jvm-options>-Xms3072m</jvm-options> <jvm-options>-Xmx3072m</jvm-options> <jvm-options>-server</jvm-options> ... And start of GF server from netbeans works fine for me in 7.4 development build. It should work in 7.3.1 too. Closing this bug. Also Glassfish 3.1.2 is known to have serious bug in web services and you should better to use 3.1.2.2. NetBeans should warn you when you are trying to register it. If you ignore warning, it's on your own risc.