Sunday, January 27, 2008

OSX Leopard + Glassfish Read This

Ok, after many frustrating hours/days, I finally found a thread that fixed this problem:

when starting glassfish, it fails when it attempts to initialize the AMX and JMX stuff. You get a connection refused because the jmx stuff is trying to connect to 169.254.x.x

I guess leopard uses this for it's wireless stuff now (the ip) and no amount of altering of network settings will work. I even tried routing all traffic to localhost from 169... No dice.

The fix: in the /domains/domain1/config/domain.xml file, edit the

jmx-connector accept-all="false" address="localhost" auth-realm-name="admin-realm" enabled="true" name="system" port="8686" protocol="rmi_jrmp" security-enabled="false"

line. By default, the enabled="true" is set. change this to enabled="false" You lose the ability to administer glassfish remotely, but at least it will start.

I'm sure glassfish will work on a patch, eventually.

5 comments:

Momo said...

Thanks ! :)

mz said...

Thank you !!!

golan said...

Thanks!
Works in debian lenny too.

Unknown said...

Thanks,

works great for Win7/Sun App Server V8.2.

Ajay said...

really nice :)
worked very well...