You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Philip Durbin <ph...@gmail.com> on 2019/01/07 11:48:14 UTC

trouble with NetBeans/GlassFish integration on Mac

Hello! I've been using the combination of NetBeans and GlassFish on
Mac everyday at work for over 6 years and it has worked great
(including deploy on save and the NetBeans/Chrome extension) until I
upgraded to OS X Mojave (10.14).

Now, when I try to start GlassFish from NetBeans, I get a "start
failed" error like this:

"GlassFish Server start failed.
Please check server admin user name and password properties.
Also please check the server log file for other possible causes."

This failure to start takes a long time (multiple minutes, I'd say)
and afterwards when I right-click GlassFish under "Servers" many menu
items such as "Start", "Stop" and "Restart" are greyed out.

Upgrading from Mojava 10.14.0 to 10.14.2 didn't help.

Upgrading from NetBeans 8.2 to NetBeans 10 didn't help.

Moving ~/.gfclient aside didn't help.

Switching to from GlassFish 4.1 to Payara 4.1.2.181 didn't help.

Each time I'm trying to use "out of the box" settings by unzipping
GlassFish 4.1 before adding it as a server. Each time I'm also moving
aside my NetBeans settings in "~/Library/Application Support". That is
to say, I'm trying to start fresh each time, ruling out any software
but NetBeans and GlassFish. Also, this means Glassfish shouldn't have
a password.

The good news is that other two other developers on my team aren't
having any trouble with Mojave but I haven't been able to figure out
the root cause of my problem.

Can you please suggest some troubleshooting steps? I have put a lot
more detail and screenshots at
https://github.com/IQSS/dataverse/issues/5431 and I'm happy to talk
about this problem here, there, or in real time channels like Slack or
IRC.

Thanks!

Phil
Software Developer, Dataverse
http://www.iq.harvard.edu/people/philip-durbin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: trouble with NetBeans/GlassFish integration on Mac

Posted by Philip Durbin <ph...@gmail.com>.
Fixed! My problem was basically
https://netbeans.org/bugzilla/show_bug.cgi?id=268076 and my going into
Netbeans and clicking "No Proxy" I was able to get Netbeans and
Glassfish talking again. This problem was incredibly frustrating so I
just warned developers on my team about this at
https://github.com/IQSS/dataverse/pull/5438 because another guy on my
team also got bit my this bug a while back. Should I open an issue in
the new Netbeans issue track about this? I burned about a day and a
half on this and it was only due to someone on our team finding
https://discussions.apple.com/thread/7680039?answerId=30715103022#30715103022
that I was able to get unblocked. It seems like a real gotcha.

Phil


On Mon, Jan 7, 2019 at 11:17 AM Andreas Ernst <ae...@ae-online.de> wrote:
>
> Am 07.01.19 um 15:39 schrieb Philip Durbin:
> > Thanks for the reply, Andreas. I hadn't tried Payara 5 yet so I just
> > did and I get the same results ("GlassFish Server start failed") and
> > thanks for the tip about "grizzly-npn-bootstrap-X.X.jar" which I did
> > have to remove.
> >
> > You asked about what I'm seeing in server.log. In all cases I'm seeing
> > something like the entries below, which are from Glassfish 4.1:
> >
> > [2019-01-04T09:15:03.983-0500] [glassfish 4.1] [INFO]
> > [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=17
> > _ThreadName=RunLevelControllerThread-1546611298103] [timeMillis:
> > 1546611303983] [levelValue: 800] [[ Grizzly Framework 2.3.15 started
> > in: 0ms - bound to [/0.0.0.0:7676]]]
> >
> > [2019-01-04T09:15:03.985-0500] [glassfish 4.1] [INFO]
> > [NCLS-BOOTSTRAP-00027] [javax.enterprise.bootstrap] [tid: _ThreadID=1
> > _ThreadName=main] [timeMillis: 1546611303985] [levelValue: 800] [[
> > Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@69d3cf7e
> > as OSGi service registration:
> > org.apache.felix.framework.ServiceRegistrationImpl@3069a360.]]
> >
> > [2019-01-04T09:15:13.955-0500] [glassfish 4.1] [INFO] [NCLS-JMX-00005]
> > [javax.enterprise.system.jmx] [tid: _ThreadID=61
> > _ThreadName=Thread-14] [timeMillis: 1546611313955] [levelValue: 800]
> > [[ JMXStartupService has started JMXConnector on JMXService URL
> > service:jmx:rmi://10.251.93.47:8686/jndi/rmi://10.251.93.47:8686/jmxrmi]]
> >
> > I should probably emphasize that that it takes a long time for the
> > "GlassFish Server start failed" error to appear. Let's say five
> > minutes or so. What is Glassfish or Netbeans doing that whole time? Is
> > there any debug output I can see? Is the state stored on disk
> > somewhere?
> >
> > A few other facts and observations:
> >
> > - Despite the "GlassFish Server start failed" error, Glassfish (or
> > Payara) are actually started. I get the usual screen at
> > http://localhost:8080
> > - Even though Glassfish is running, Netbeans doesn't seem to know it
> > started it. Right-clicking Glassfish under "Servers" shows "Start",
> > "Stop" and other menu items greyed out. If I click "Refresh" then
> > "Start" and "Stop" remain greyed out. The integration between Netbeans
> > and Glassfish isn't working.
> >
> > All I want is to go back to the working combination that I've had for
> > a long time: Netbeans 8.2 and Glassfish 4.1. (Our app, Dataverse,
> > currently requires Glassfish 4.1.) I don't know how to get there. :( I
> > only have the one laptop and I'm considering asking my help desk to
> > re-image it so I can get a truly fresh start. I didn't expect Mac
> > operating system upgrade to cause so much havoc for me. :(
> >
> > Please keep any troubleshooting suggestions coming.
>
> It seen GF is running i a timeout...
>
> So, please send me the complete logfile, attached to mail or paste it
> somewhere on a file server.
>
> If it's to big, zip it, or delete the log file and then start GF/Payara.
>
> What say:
>
> javac -version
> netstat -tlpen | grep java
>
> I think, I try to...
>
> Andy
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> ae@ae-online.de | www.ae-online.de
> www.tachyon-online.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: trouble with NetBeans/GlassFish integration on Mac

Posted by Andreas Ernst <ae...@ae-online.de>.
Am 07.01.19 um 15:39 schrieb Philip Durbin:
> Thanks for the reply, Andreas. I hadn't tried Payara 5 yet so I just
> did and I get the same results ("GlassFish Server start failed") and
> thanks for the tip about "grizzly-npn-bootstrap-X.X.jar" which I did
> have to remove.
> 
> You asked about what I'm seeing in server.log. In all cases I'm seeing
> something like the entries below, which are from Glassfish 4.1:
> 
> [2019-01-04T09:15:03.983-0500] [glassfish 4.1] [INFO]
> [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=17
> _ThreadName=RunLevelControllerThread-1546611298103] [timeMillis:
> 1546611303983] [levelValue: 800] [[ Grizzly Framework 2.3.15 started
> in: 0ms - bound to [/0.0.0.0:7676]]]
> 
> [2019-01-04T09:15:03.985-0500] [glassfish 4.1] [INFO]
> [NCLS-BOOTSTRAP-00027] [javax.enterprise.bootstrap] [tid: _ThreadID=1
> _ThreadName=main] [timeMillis: 1546611303985] [levelValue: 800] [[
> Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@69d3cf7e
> as OSGi service registration:
> org.apache.felix.framework.ServiceRegistrationImpl@3069a360.]]
> 
> [2019-01-04T09:15:13.955-0500] [glassfish 4.1] [INFO] [NCLS-JMX-00005]
> [javax.enterprise.system.jmx] [tid: _ThreadID=61
> _ThreadName=Thread-14] [timeMillis: 1546611313955] [levelValue: 800]
> [[ JMXStartupService has started JMXConnector on JMXService URL
> service:jmx:rmi://10.251.93.47:8686/jndi/rmi://10.251.93.47:8686/jmxrmi]]
> 
> I should probably emphasize that that it takes a long time for the
> "GlassFish Server start failed" error to appear. Let's say five
> minutes or so. What is Glassfish or Netbeans doing that whole time? Is
> there any debug output I can see? Is the state stored on disk
> somewhere?
> 
> A few other facts and observations:
> 
> - Despite the "GlassFish Server start failed" error, Glassfish (or
> Payara) are actually started. I get the usual screen at
> http://localhost:8080
> - Even though Glassfish is running, Netbeans doesn't seem to know it
> started it. Right-clicking Glassfish under "Servers" shows "Start",
> "Stop" and other menu items greyed out. If I click "Refresh" then
> "Start" and "Stop" remain greyed out. The integration between Netbeans
> and Glassfish isn't working.
> 
> All I want is to go back to the working combination that I've had for
> a long time: Netbeans 8.2 and Glassfish 4.1. (Our app, Dataverse,
> currently requires Glassfish 4.1.) I don't know how to get there. :( I
> only have the one laptop and I'm considering asking my help desk to
> re-image it so I can get a truly fresh start. I didn't expect Mac
> operating system upgrade to cause so much havoc for me. :(
> 
> Please keep any troubleshooting suggestions coming.

It seen GF is running i a timeout...

So, please send me the complete logfile, attached to mail or paste it 
somewhere on a file server.

If it's to big, zip it, or delete the log file and then start GF/Payara.

What say:

javac -version
netstat -tlpen | grep java

I think, I try to...

Andy
-- 
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
ae@ae-online.de | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: trouble with NetBeans/GlassFish integration on Mac

Posted by Philip Durbin <ph...@gmail.com>.
Thanks for the reply, Andreas. I hadn't tried Payara 5 yet so I just
did and I get the same results ("GlassFish Server start failed") and
thanks for the tip about "grizzly-npn-bootstrap-X.X.jar" which I did
have to remove.

You asked about what I'm seeing in server.log. In all cases I'm seeing
something like the entries below, which are from Glassfish 4.1:

[2019-01-04T09:15:03.983-0500] [glassfish 4.1] [INFO]
[NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=17
_ThreadName=RunLevelControllerThread-1546611298103] [timeMillis:
1546611303983] [levelValue: 800] [[ Grizzly Framework 2.3.15 started
in: 0ms - bound to [/0.0.0.0:7676]]]

[2019-01-04T09:15:03.985-0500] [glassfish 4.1] [INFO]
[NCLS-BOOTSTRAP-00027] [javax.enterprise.bootstrap] [tid: _ThreadID=1
_ThreadName=main] [timeMillis: 1546611303985] [levelValue: 800] [[
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@69d3cf7e
as OSGi service registration:
org.apache.felix.framework.ServiceRegistrationImpl@3069a360.]]

[2019-01-04T09:15:13.955-0500] [glassfish 4.1] [INFO] [NCLS-JMX-00005]
[javax.enterprise.system.jmx] [tid: _ThreadID=61
_ThreadName=Thread-14] [timeMillis: 1546611313955] [levelValue: 800]
[[ JMXStartupService has started JMXConnector on JMXService URL
service:jmx:rmi://10.251.93.47:8686/jndi/rmi://10.251.93.47:8686/jmxrmi]]

I should probably emphasize that that it takes a long time for the
"GlassFish Server start failed" error to appear. Let's say five
minutes or so. What is Glassfish or Netbeans doing that whole time? Is
there any debug output I can see? Is the state stored on disk
somewhere?

A few other facts and observations:

- Despite the "GlassFish Server start failed" error, Glassfish (or
Payara) are actually started. I get the usual screen at
http://localhost:8080
- Even though Glassfish is running, Netbeans doesn't seem to know it
started it. Right-clicking Glassfish under "Servers" shows "Start",
"Stop" and other menu items greyed out. If I click "Refresh" then
"Start" and "Stop" remain greyed out. The integration between Netbeans
and Glassfish isn't working.

All I want is to go back to the working combination that I've had for
a long time: Netbeans 8.2 and Glassfish 4.1. (Our app, Dataverse,
currently requires Glassfish 4.1.) I don't know how to get there. :( I
only have the one laptop and I'm considering asking my help desk to
re-image it so I can get a truly fresh start. I didn't expect Mac
operating system upgrade to cause so much havoc for me. :(

Please keep any troubleshooting suggestions coming.

Thanks,

Phil


On Mon, Jan 7, 2019 at 8:01 AM Andreas Ernst <ae...@ae-online.de> wrote:
>
> Hi Phil,
>
> Am 07.01.19 um 12:48 schrieb Philip Durbin:
> > Hello! I've been using the combination of NetBeans and GlassFish on
> > Mac everyday at work for over 6 years and it has worked great
> > (including deploy on save and the NetBeans/Chrome extension) until I
> > upgraded to OS X Mojave (10.14).
> >
> > Now, when I try to start GlassFish from NetBeans, I get a "start
> > failed" error like this:
> >
> > "GlassFish Server start failed.
> > Please check server admin user name and password properties.
> > Also please check the server log file for other possible causes."
> >
> > This failure to start takes a long time (multiple minutes, I'd say)
> > and afterwards when I right-click GlassFish under "Servers" many menu
> > items such as "Start", "Stop" and "Restart" are greyed out.
> >
> > Upgrading from Mojava 10.14.0 to 10.14.2 didn't help.
> >
> > Upgrading from NetBeans 8.2 to NetBeans 10 didn't help.
> >
> > Moving ~/.gfclient aside didn't help.
> >
> > Switching to from GlassFish 4.1 to Payara 4.1.2.181 didn't help.
> >
> > Each time I'm trying to use "out of the box" settings by unzipping
> > GlassFish 4.1 before adding it as a server. Each time I'm also moving
> > aside my NetBeans settings in "~/Library/Application Support". That is
> > to say, I'm trying to start fresh each time, ruling out any software
> > but NetBeans and GlassFish. Also, this means Glassfish shouldn't have
> > a password.
> >
> > The good news is that other two other developers on my team aren't
> > having any trouble with Mojave but I haven't been able to figure out
> > the root cause of my problem.
> >
> > Can you please suggest some troubleshooting steps? I have put a lot
> > more detail and screenshots at
> > https://github.com/IQSS/dataverse/issues/5431 and I'm happy to talk
> > about this problem here, there, or in real time channels like Slack or
> > IRC.
>
> i got NB 8.2 with Payara 5.184 on macOS 10.13 and 10.14, no issues.
>
> I do not see any exception in the log in your information, lock at the
> log file at:
>
> /path-to-gf/glassfish/domains/domain1/logs/server.log
>
> If you use Payara 5.184, take a look also here:
>
> https://stackoverflow.com/questions/50835355/starting-a-payara-5-has-encountered
>
> Edit your domain.xml, remove all entries for grizzly-npn-bootstrap-X.X.jar:
>
> <jvm-options>-Xbootclasspath/p:${com.sun.aas.installRoot}/lib/grizzly-npn-bootstrap-1.8.1.jar</jvm-options>
>
>
> HTH
> Andreas
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> ae@ae-online.de | www.ae-online.de
> www.tachyon-online.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: trouble with NetBeans/GlassFish integration on Mac

Posted by Andreas Ernst <ae...@ae-online.de>.
Hi Phil,

Am 07.01.19 um 12:48 schrieb Philip Durbin:
> Hello! I've been using the combination of NetBeans and GlassFish on
> Mac everyday at work for over 6 years and it has worked great
> (including deploy on save and the NetBeans/Chrome extension) until I
> upgraded to OS X Mojave (10.14).
> 
> Now, when I try to start GlassFish from NetBeans, I get a "start
> failed" error like this:
> 
> "GlassFish Server start failed.
> Please check server admin user name and password properties.
> Also please check the server log file for other possible causes."
> 
> This failure to start takes a long time (multiple minutes, I'd say)
> and afterwards when I right-click GlassFish under "Servers" many menu
> items such as "Start", "Stop" and "Restart" are greyed out.
> 
> Upgrading from Mojava 10.14.0 to 10.14.2 didn't help.
> 
> Upgrading from NetBeans 8.2 to NetBeans 10 didn't help.
> 
> Moving ~/.gfclient aside didn't help.
> 
> Switching to from GlassFish 4.1 to Payara 4.1.2.181 didn't help.
> 
> Each time I'm trying to use "out of the box" settings by unzipping
> GlassFish 4.1 before adding it as a server. Each time I'm also moving
> aside my NetBeans settings in "~/Library/Application Support". That is
> to say, I'm trying to start fresh each time, ruling out any software
> but NetBeans and GlassFish. Also, this means Glassfish shouldn't have
> a password.
> 
> The good news is that other two other developers on my team aren't
> having any trouble with Mojave but I haven't been able to figure out
> the root cause of my problem.
> 
> Can you please suggest some troubleshooting steps? I have put a lot
> more detail and screenshots at
> https://github.com/IQSS/dataverse/issues/5431 and I'm happy to talk
> about this problem here, there, or in real time channels like Slack or
> IRC.

i got NB 8.2 with Payara 5.184 on macOS 10.13 and 10.14, no issues.

I do not see any exception in the log in your information, lock at the 
log file at:

/path-to-gf/glassfish/domains/domain1/logs/server.log

If you use Payara 5.184, take a look also here:

https://stackoverflow.com/questions/50835355/starting-a-payara-5-has-encountered

Edit your domain.xml, remove all entries for grizzly-npn-bootstrap-X.X.jar:

<jvm-options>-Xbootclasspath/p:${com.sun.aas.installRoot}/lib/grizzly-npn-bootstrap-1.8.1.jar</jvm-options>


HTH
Andreas
-- 
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
ae@ae-online.de | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists