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.

Bug 235553 - Glassfish 3.1.2 startup failed
Summary: Glassfish 3.1.2 startup failed
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-05 13:02 UTC by lanthale
Modified: 2013-09-05 14:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lanthale 2013-09-05 13:02:33 UTC
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
Comment 1 TomasKraus 2013-09-05 14:43:44 UTC
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.