I fixed a similar issue in Payara plugin, I will check make the PR for GlassFish modules too.
https://github.com/payara/ecosystem-netbeans-plugin/pull/17/files Thanks and kind regards, Gaurav Gupta On Sun, Mar 3, 2019 at 8:17 AM Josh Juneau <juneau...@gmail.com> wrote: > Nice work Pete! Thanks for confirming and digging into the code looking > for the fix. > > Let me know if you need me to try and help with anything. > > Best > > Josh Juneau > juneau...@gmail.com > http://jj-blogger.blogspot.com > https://www.apress.com/index.php/author/author/view/id/1866 > > > On Mar 2, 2019, at 8:36 PM, Pete Whelpton <peedee...@gmail.com> wrote: > > > > I was able to replicate - but in my case, after starting GF from withing > > NB, running netstat -tnlp at the console showed the GlassFish had started > > listening on 8080 (and navigating to http://localhost:8080 proved it), > but > > NB wasn't opening the GF log window, or recognizing that it had started. > > > > Had a dig around in glassfish.common.LogViewMgr, and found that it is > > calling ResourceBundle.getBundle() for > "sun.util.logging.resources.logging" > > so that it can get translations for WARNING and SEVERE messages in the > > user's local language and monitor the log for these problems. > > > > But in JDK9+ java.logging module doesn't export > sun.util.logging.resources, > > so this will fall over. I think that's at least one of the issues > starting > > GF when running NB on > JDK9 > > > > > > HTH > > > > P > > > >> On Sat, Mar 2, 2019 at 10:24 PM Josh Juneau <juneau...@gmail.com> > wrote: > >> > >> Sure thing Geertjan, I think your solution is perfect for this release. > >> Essentially, if you are developing Java EE applications then run > NetBeans > >> under the same version of the JDK that you are using to run the > server. At > >> this point it is JDK 8. Hopefully within the year we will see some > servers > >> running on JDK 11. Come to think of it...OpenLiberty may already run on > >> JDK 11...I'll have to test that out at some point. > >> > >> In any case, I will perform some tests with a fresh user dir, and fresh > >> everything, this weekend. I'll let you know how it goes. > >> > >> Josh Juneau > >> juneau...@gmail.com > >> http://jj-blogger.blogspot.com > >> https://www.apress.com/index.php/author/author/view/id/1866 > >> > >>> On Mar 2, 2019, at 2:11 PM, Geertjan Wielenga > >> <geertjan.wiele...@googlemail.com.invalid> wrote: > >>> > >>> Also, a simple solution may be to explicitly tell users to run Apache > >>> NetBeans 11 on JDK 8 if they want to make use of GlassFish, since > >> GlassFish > >>> itself runs on JDK 8 only and that if, as has been pointed out, code > that > >>> is explicit to JDK 9 or later is run on GlassFish, it will fail. So > best > >> to > >>> use JDK 8 for both NetBeans and GlassFish. > >>> > >>> How does that sound? > >>> > >>> Gj > >>> > >>> > >>> On Sat, Mar 2, 2019 at 9:05 PM Geertjan Wielenga < > >>> geertjan.wiele...@googlemail.com> wrote: > >>> > >>>> Again, please, do this: fresh user dir, fresh everything, start > >> GlassFish > >>>> from inside NetBeans, close NetBeans, restart NetBeans, refresh the > >>>> GlassFish node. > >>>> > >>>> Just confirm the above works so that we can go from there -- i.e., > don't > >>>> start GlassFish anywhere other than in NetBeans, then restart, then > >> refresh > >>>> the GlassFish node. Yes, not ideal, not what we want, but please can > you > >>>> confirm the above works so that we're all on the same page. > >>>> > >>>> Gj > >>>> > >>>>> On Sat, Mar 2, 2019 at 8:54 PM Josh Juneau <juneau...@gmail.com> > >> wrote: > >>>>> > >>>>> I've confirmed that the same issue occurs under vc1, unfortunately. > I > >>>>> had not fully tested vc1 under JDK 9/10/11/12, only used running > under > >> JDK > >>>>> 8. > >>>>> > >>>>> Running NetBeans 11 vc1/vc2 Under JDK 9/10/11/12: If you start up > >>>>> GlassFish and then open up the IDE, the controls for > starting/stopping > >> the > >>>>> GlassFish instance are grayed out. If I attempt to open the > GlassFish > >>>>> domain log within the IDE, nothing happens. There is NO green arrow > >> icon > >>>>> to indicate that the GlassFish instance is running. > >>>>> > >>>>> Running NetBeans 11 vc1/vc2 Under JDK 8: GlassFish can be > controlled, > >> as > >>>>> expected. If I start GlassFish and then open the IDE, a green arrow > >> icon > >>>>> is displayed on the GlassFish server icon...indicating that it is > >> already > >>>>> running. I am able to open the GlassFish domain log within the IDE > and > >>>>> interact with the server, as expected. > >>>>> > >>>>> Again, this is confirmed under OSX 10.13.x using JDK 8u171. > >>>>> > >>>>> Hope this helps. > >>>>> > >>>>> Josh Juneau > >>>>> juneau...@gmail.com > >>>>> http://jj-blogger.blogspot.com > >>>>> https://www.apress.com/index.php/author/author/view/id/1866 > >>>>> > >>>>>> On Mar 2, 2019, at 12:50 PM, Geertjan Wielenga > >>>>> <geertjan.wiele...@googlemail.com.invalid> wrote: > >>>>>> > >>>>>> Try to start it, close the IDE, then refresh the node after restart. > >>>>>> > >>>>>> Yes, not ideal, but please try to see if that works so we can figure > >> it > >>>>> out > >>>>>> further from there and so we can confirm that it actually can start, > >>>>> though > >>>>>> after the above steps. > >>>>>> > >>>>>> Gj > >>>>>> > >>>>>>> On Sat, Mar 2, 2019 at 7:46 PM Jose Ch <pepnes...@gmail.com> > wrote: > >>>>>>> > >>>>>>> To be clear I used JDK 8 for the Platform option for Glassfish and > >>>>> Payara > >>>>>>> and JDK 11/12/13 for Netbeans and never successfully started them. > I > >>>>> will > >>>>>>> try many combinations with different vendors (but always use JDK 8 > >> for > >>>>> the > >>>>>>> app servers) as soon as I get the chance this weekend. > >>>>>>> > >>>>>>> José. > >>>>>>> > >>>>>>> On Sat, Mar 2, 2019, 12:34 Geertjan Wielenga > >>>>>>> <geertjan.wiele...@googlemail.com.invalid> wrote: > >>>>>>> > >>>>>>>> GlassFish does not support anything beyond JDK 8. > >>>>>>>> > >>>>>>>> Gj > >>>>>>>> > >>>>>>>>> On Saturday, March 2, 2019, Jose Ch <pepnes...@gmail.com> wrote: > >>>>>>>>> > >>>>>>>>> The same happens to me in Fedora 29, but I never tried with JDK 8 > >>>>>>> always > >>>>>>>>> with JDK 11/12/13 and never successfully start payara or > glassfish > >>>>>>> within > >>>>>>>>> the IDE. > >>>>>>>>> > >>>>>>>>> On Sat, Mar 2, 2019, 10:04 Geertjan Wielenga > >>>>>>>>> <geertjan.wiele...@googlemail.com.invalid> wrote: > >>>>>>>>> > >>>>>>>>>> I’ve started GlassFish v5 and v5.1 from the Servers node with > >> Apache > >>>>>>>>>> NetBeans 11 vc1 without a problem several times. To check > whether > >>>>>>> this > >>>>>>>> is > >>>>>>>>>> specific to vc2 or specific to you, can you try with vc1 > (instead > >> of > >>>>>>>>> vc2)? > >>>>>>>>>> > >>>>>>>>>> Gj > >>>>>>>>>> > >>>>>>>>>>> On Saturday, March 2, 2019, Josh Juneau <juneau...@gmail.com> > >>>>> wrote: > >>>>>>>>>>> > >>>>>>>>>>> Thanks Pete, I will put something in the JIRA. Just wanted to > >>>>>>>> confirm > >>>>>>>>>> that > >>>>>>>>>>> someone else was seeing the same issue first. I'm running on > Mac > >>>>>>> OS > >>>>>>>> X > >>>>>>>>>>> 10.13.6. > >>>>>>>>>>> > >>>>>>>>>>> On Sat, Mar 2, 2019 at 9:46 AM Pete Whelpton < > >> peedee...@gmail.com> > >>>>>>>>>> wrote: > >>>>>>>>>>> > >>>>>>>>>>>> Doh! I did notice whilst I was poking around in the GlassFish > >>>>>>> code > >>>>>>>>> that > >>>>>>>>>>> the > >>>>>>>>>>>> base64 package that is removed from JDK10 onwards was being > used > >>>>>>>>>>> somewhere > >>>>>>>>>>>> in authentication, so hopefully it is something as simple as > >>>>>>> that. > >>>>>>>>>>>> > >>>>>>>>>>>> If not, it might be beyond my abilities, but if you create an > >>>>>>> issue > >>>>>>>>> in > >>>>>>>>>>> the > >>>>>>>>>>>> Jira, hopefully somebody more talented than I can take a look > >> and > >>>>>>>>>> figure > >>>>>>>>>>> it > >>>>>>>>>>>> out. > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> P > >>>>>>>>>>>> > >>>>>>>>>>>> On Sat, 2 Mar 2019, 15:41 Josh Juneau, <juneau...@gmail.com> > >>>>>>>> wrote: > >>>>>>>>>>>> > >>>>>>>>>>>>> Hi Pete, > >>>>>>>>>>>>> > >>>>>>>>>>>>> Thanks for the write-up. I have verified, and I already have > >>>>>>>> JDK8 > >>>>>>>>>>>>> registered as an available platform. When I right-click on > >>>>>>>>> GlassFish > >>>>>>>>>>> -> > >>>>>>>>>>>>> Properties, the JDK 8 platform is already selected under the > >>>>>>> Java > >>>>>>>>>> tab. > >>>>>>>>>>>>> > >>>>>>>>>>>>> I've verified on vc2 that JDK 10, JDK 11, and JDK 12 seem to > be > >>>>>>>>>>>> exhibiting > >>>>>>>>>>>>> the same behavior for GlassFish server. I have had success > >>>>>>>>> starting > >>>>>>>>>>> the > >>>>>>>>>>>>> server from within the IDE, but I am unable to open up the > >>>>>>> server > >>>>>>>>>>> domain > >>>>>>>>>>>>> log or perform restart, stop, or terminate from within the > IDE. > >>>>>>>>>>>>> > >>>>>>>>>>>>> Thanks again > >>>>>>>>>>>>> > >>>>>>>>>>>>> On Sat, Mar 2, 2019 at 9:22 AM Pete Whelpton < > >>>>>>>> peedee...@gmail.com> > >>>>>>>>>>>> wrote: > >>>>>>>>>>>>> > >>>>>>>>>>>>>> Hi Josh, > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> Apologies if this is stating the obvious and you have > already > >>>>>>>>> tried > >>>>>>>>>>> it > >>>>>>>>>>>> - > >>>>>>>>>>>>>> away from computer at the moment and can't test myself, but > >>>>>>>> have > >>>>>>>>>> you > >>>>>>>>>>>>> tried: > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> * Launching NB under JDK11 > >>>>>>>>>>>>>> * Right click GlassFish instance -> Properties > >>>>>>>>>>>>>> * Java tab -> Manage platforms button > >>>>>>>>>>>>>> * Add JDK8 > >>>>>>>>>>>>>> * Select JDK8 in dropdown > >>>>>>>>>>>>>> * Close dialog and try starting GlassFish > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> ? > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> Hope that works! > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> P > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> On Sat, Mar 2, 2019 at 3:08 PM Josh Juneau < > >>>>>>>> juneau...@gmail.com> > >>>>>>>>>>>> wrote: > >>>>>>>>>>>>>> > >>>>>>>>>>>>>>> I have noticed that using vc2, and running NetBeans on JDK > >>>>>>> 11 > >>>>>>>>> or > >>>>>>>>>>> 12, > >>>>>>>>>>>> my > >>>>>>>>>>>>>>> registered GlassFish server will not start from within the > >>>>>>>> IDE. > >>>>>>>>>> I > >>>>>>>>>>> am > >>>>>>>>>>>>>>> unable to manage GlassFish (or Payara) from within the IDE > >>>>>>>>>> unless I > >>>>>>>>>>>>> start > >>>>>>>>>>>>>>> NetBeans under JDK 8. If I start up NetBeans under JDK 8 > >>>>>>>>> things > >>>>>>>>>>> seem > >>>>>>>>>>>>> to > >>>>>>>>>>>>>>> work without issue. > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> Has anyone else experienced this same behavior? > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> Thanks > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> Josh Juneau > >>>>>>>>>>>>>>> juneau...@gmail.com > >>>>>>>>>>>>>>> http://jj-blogger.blogspot.com > >>>>>>>>>>>>>>> > >>>>>>> https://www.apress.com/index.php/author/author/view/id/1866 > >>>>>>>>>>>>>> > >>>>>>>>>>>>> -- > >>>>>>>>>>>>> Josh Juneau > >>>>>>>>>>>>> juneau...@gmail.com > >>>>>>>>>>>>> http://jj-blogger.blogspot.com > >>>>>>>>>>>>> https://www.apress.com/index.php/author/author/view/id/1866 > >>>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>> -- > >>>>>>>>>>> Josh Juneau > >>>>>>>>>>> juneau...@gmail.com > >>>>>>>>>>> http://jj-blogger.blogspot.com > >>>>>>>>>>> https://www.apress.com/index.php/author/author/view/id/1866 > >>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> > >>>>>>>> > >>>>>>> > >>>>> > >>>> > >> >