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.
When setting multiple values from the Platform tab, all values are not passed to startWebLogic.cmd Setting Java VM passes envrionment variable JAVA_VENDOR, but does not pass in JAVA_OPTIONS if set. Setting VM Memory Options passes environment variable USER_MEM_ARGS, but does not pass JAVA_OPTIONS if set and does not pass JAVA_VENDOR if set. I started using Weblogic with Netbeans version 7.0 and have been seeing this issue since then. I am currently running 7.2Beta. Running Weblogic 10.3.
I think this is the issue protected ExternalProcessBuilder initBuilder(ExternalProcessBuilder builder) { ExternalProcessBuilder result = builder; result = setJavaOptionsEnv( result ); String vendor = dm.getInstanceProperties().getProperty(WLPluginProperties.VENDOR); if (vendor != null && vendor.trim().length() >0) { result = builder.addEnvironmentVariable(JAVA_VENDOR_VARIABLE, vendor.trim()); } String memoryOptions = dm.getInstanceProperties().getProperty( WLPluginProperties.MEM_OPTS); if (memoryOptions != null && memoryOptions.trim().length() >0) { result = builder.addEnvironmentVariable(MEMORY_OPTIONS_VARIABLE, memoryOptions.trim()); } return result; } That should probably be protected ExternalProcessBuilder initBuilder(ExternalProcessBuilder builder) { ExternalProcessBuilder result = builder; result = setJavaOptionsEnv( result ); String vendor = dm.getInstanceProperties().getProperty(WLPluginProperties.VENDOR); if (vendor != null && vendor.trim().length() >0) { result = result.addEnvironmentVariable(JAVA_VENDOR_VARIABLE, vendor.trim()); } String memoryOptions = dm.getInstanceProperties().getProperty( WLPluginProperties.MEM_OPTS); if (memoryOptions != null && memoryOptions.trim().length() >0) { result = result.addEnvironmentVariable(MEMORY_OPTIONS_VARIABLE, memoryOptions.trim()); } return result; } Seems the builder returned from addEnvironmentVariable is not being referenced and result is being overwritten with the last variable set.
Nice catch. Fixed in web-main 6e54f40f3088.
Integrated into 'main-golden', will be available in build *201206090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6e54f40f3088 User: Petr Hejl <phejl@netbeans.org> Log: #213570 - Cannot set multiple options on Platform tab