Wierd problem trying to start domain with soylatte jdk 6 ....
I'm using Mac 10.4 with soylatte jdk 6, Netbeans 6.5 and Glassfish v2.1 and I'm trying to deploy a web app which needs jdk 6 (hence the soylatte JDK).
Firstly I assume that since my app needs jdk 6, I need to start the glassfish domain with java 6. So ../config/asenv.conf has env 'AS_JAVA' pointing to my soylatte JDK. I'm assuming this because if I start with 1.5 and try to deploy my app, I get the old 'wrong major / minor version number' error message.
But then the problem I'm seeing is that when I try to start the domain with the 1.6 jdk it falls over at the point where it's initializing the AMX Beans. Specifically, it looks like it's trying to bind the rmi-jmx-connector to an external IP address rather than (presumably) localhost.
The error is ...
[#|2009-05-07T17:13:19.464+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@1d0bc85;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://188.8.131.52:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException ............
After checking that IP address, it seems it's actually an opendns address (and I use opendns for external dns resolution).
So does anyone know what's going wrong here please (the domain starts fine when I have AS_JAVA set to the 1.5 JDK but not when I try to start with 1.6. Is there some AMX config setting somewhere ?
Any ideas please?