Skip to main content

Problem with JMX Connector on Glassfish v2.1

51 replies [Last post]
amarok
Offline
Joined: 2009-08-05

I would like to monitor remote glassfish server. I have enabled JMX Connection in domain.xml:

But this didn't help. I still can't connect to server with JConsole. Then I've found solution - I need to specify JVM properties in domain.xml to open 8686 port for remote connection. So I've added this lines into java-config section:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8686
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false

But now when I'm starting server, I'm getting following errors:

Could not load Logmanager "com.sun.enterprise.server.logging.ServerLogManager" java.lang.ClassNotFoundException: com.sun.enterprise.server.logging.ServerLogManager at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.util.logging.LogManager$1.run(LogManager.java:166) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.(LogManager.java:156) at java.util.logging.Logger.getLogger(Logger.java:273) at sun.management.snmp.util.MibLogger.(MibLogger.java:57) at sun.management.snmp.util.MibLogger.(MibLogger.java:42) at sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:760) at sun.management.Agent.startAgent(Agent.java:127) at sun.management.Agent.startAgent(Agent.java:239) javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:480) at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511) at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174) at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302) at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504) at sun.management.jmxremote.ConnectorBootstrap.initialize(ConnectorBootstrap.java:392) at sun.management.Agent.startAgent(Agent.java:127) at sun.management.Agent.startAgent(Agent.java:239) Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:423) at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:465) ... 9 more Exception thrown by the agent : javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder

How can I fix the problem?

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
svolland
Offline
Joined: 2009-03-26

Hi, I got the same problem (unable to remote connect, I can only connect locally) on SUSE SLED 11.0, JDK1.6_13 with a classic Java application started with the following options on the command line:
-Dcom.sun.management.jmxremote.port=42420
-Dcom.sun.management.jmxremote.authenticate=false

The jconcole trace gives :
java.lang.NullPointerException
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:281)

Netstat shows that the port 42420 is effectively listened on, machine hostname is correctly configured (not pointing to 127.0.0.1 but to the "public" address) and firewall completely disactivated.
As already said, the problem does not seem to be relative to GF.

Actually it is JDK1.6 update 13, but I get the same issue on update 16.

Message was edited by: svolland

Arun Gupta

For the record, here is the configuration I tried:

GlassFish v2.1 developer profile
Solaris X86
JDK 1.5.0_08

Connected successfully from MacBook using JDK 1.6.0_13-b03-196 and
1.5.0_16-b06-290 using the URL:

service:jmx:rmi:///jndi/rmi://129.145.132.61:8686/jmxrmi

using the username "admin" and password "adminadmin".

http://marxsoftware.blogspot.com/2008/05/simple-remote-jmx-with-glassfis...
also provide a good explanation of how to connect with GlassFish remotely.

-Arun

glassfish@javadesktop.org wrote:
> No, I can't.The connection is possible only from the same machine where the server is started.
> [Message sent by forum member 'amarok' (amarok)]
>
> http://forums.java.net/jive/thread.jspa?messageID=360311
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

--
Need Application Server ? Download from http://glassfish.org
Blog: http://blogs.sun.com/arungupta

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

amarok
Offline
Joined: 2009-08-05

Hi, Arun!
>>also provide a good explanation of how to connect with GlassFish remotely.
I have done the same steps, but JConsole still can't establish connection. I think it is the issue of openSuse. I will try to run Glassfish on another platform.

jthoennes
Offline
Joined: 2008-03-06

Hi all,

maybe this issue is related, it was just fixed for GF v3:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=9058

Cheers, Jörg

amarok
Offline
Joined: 2009-08-05

Hi, Jörg!

If I understand correctly the issue in this case is caused by using firewall. But in my case the firewall is disabled on both machines.

amarok
Offline
Joined: 2009-08-05

Another one exception that JConsole throws while connecting to GF:

java.lang.NullPointerException
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:281)
at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:348)
at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:296)
at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:280)

77777777777
Offline
Joined: 2009-05-08

I had the same exception as you if I had VisualVM running before I started Glassfish. So close VisualVM and try to restart the domain and see if it works.

I have the same problem as you but I cannot connect to the MBean server with specifying the username and password in JConsole if though I have configured the settings the you supplied. Any clues?

77777777777
Offline
Joined: 2009-05-08

If I remove -Dcom.sun.management.jmxremote the exception goes away as well.

amarok
Offline
Joined: 2009-08-05

After adding
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8686
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
to domain.xml GF does not start successfully.

Anyway without those lines I can't connect to remote GF server.

77777777777
Offline
Joined: 2009-05-08

I can connect without those lines but only if I specify username and password.

losintikfos
Offline
Joined: 2008-02-17

I am having the same problem.

I have followed this thread - have realised you did in the end managed to connect.

How did you manage to connect?

Pls Help.

Message was edited by: losintikfos

amarok
Offline
Joined: 2009-08-05

As for me, the problem is still unresolved :(

losintikfos
Offline
Joined: 2008-02-17

But you can connect to the remote JMX service? i can't connect and looking into how you managed to hook your connection through.

amarok
Offline
Joined: 2009-08-05

No, I can't.The connection is possible only from the same machine where the server is started.

Martin Gainty

a simple netstat -a | grep jrmi-port will verify the port is not bound

-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks
-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks

can you verify the JMX-connector is configured in /config/domain.xml e.g.



/* note i configured rmi-jrmp to run on localhost at port 9999 */
more info available in your Glassfish distribution
$GF_HOME/domains/domain1/generated/jsp/j2ee-modules/admingui/loader/html/en/help/nodeagentjmxedit.html

valid alias value (s1as) is specified in "Certificate Nickname"
http://blogs.sun.com/swchan/entry/multiple_private_keys_in_a
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

> Date: Thu, 13 Aug 2009 06:30:53 -0700
> From: glassfish@javadesktop.org
> To: users@glassfish.dev.java.net
> Subject: Re: Problem with JMX Connector on Glassfish v2.1
>
> No, I can't.The connection is possible only from the same machine where the server is started.
> [Message sent by forum member 'amarok' (amarok)]
>
> http://forums.java.net/jive/thread.jspa?messageID=360311
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM
[att1.html]

amarok
Offline
Joined: 2009-08-05

Hi, Martin!
>>a simple netstat -a | grep jrmi-port will verify the port is not bound
This command does not show anything.
Here is the output of nmap -p 8686 localhost
Starting Nmap 4.60 ( http://nmap.org ) at 2009-08-14 09:00 MSD
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
8686/tcp open unknown

>>can you verify the JMX-connector is configured in /config/domain.xml e.g.
I have the same settings in my domain.xml except

I have added it and then restarted the server, but nothing have changed.

vkoniecz
Offline
Joined: 2008-11-14

Hello

You mention that the URL was something like this
service:jmx:rmi:///jndi/rmi://:8686/jmxr

Try a "nmap -p 8686 " or a "netstat -a | grep 8686" and see if something is listening.
If nothing is listening, your problem may be indirectly related to this issue
https://glassfish.dev.java.net/issues/show_bug.cgi?id=6898

Bye

amarok
Offline
Joined: 2009-08-05

I have two cases in two different machines with openSuse.

1. netstat -a | grep 8686 - the output is empty.
2. netstat -a | grep 8686 - the output is [b]"tcp 0 0 *:8686 *:* LISTEN"[/b]

In both cases I can't connect to GF using JConsole remotely.

vkoniecz
Offline
Joined: 2008-11-14

For machine 1, you should look in the logs (with the relevant log level) why no socket is listening. You should have one ...

For machine 2, did you have com.sun.management.jmxremote.authenticate set to false ?
If I remember correctly, we have never managed to connect remotely on the JMX connector when authenticate was set to false. (I will have to check that again.)
Maybe you can check that. If you can connect on machine 2 with authenticate set to true, you would have a part of an answer about your whole problem.

amarok
Offline
Joined: 2009-08-05

> The URL used is
> service:jmx:rmi:///jndi/rmi://172.31.226.242:8686/jmxr
> mi
> Amarok, is that the URL printed out by GlassFish when
> starting?
The URL printed out by GlassFish contains host name instead of direct IP address.
> Also, what is the version of Java jconsole runs on?
The version is also 1.6.0_14-b08.

amarok
Offline
Joined: 2009-08-05

I have installed GF on Debian without any changes in configs and got the same problem..
Any ideas?

vkoniecz
Offline
Joined: 2008-11-14

Hello

Did you check whether a socket was listening or not on the jmx connector port ?

In the first posts, there was a class B private network IP address specified. This kind of addresses has some specific properties. Did you pay attention to this ?
Did you try a ping or a traceroute to verify that the server was remotely reachable ?
Or any other action that makes sure that the requests are correctly routed ?

Bye

amarok
Offline
Joined: 2009-08-05

Hi, vkoniecz !
>>Did you check whether a socket was listening or not on the jmx connector port ?
Yes, I did.
__________________________
nmap 172.31.221.231 -p 8686
Starting Nmap 4.20 ( http://insecure.org ) at 2009-08-18 16:30 MSD
Interesting ports on socbus (172.31.221.231):
PORT STATE SERVICE
8686/tcp open unknown
__________________________
netstat -a | grep 8686
tcp6 0 0 [::]:8686 [::]:* LISTEN
__________________________

>>In the first posts, there was a class B private network IP address specified. This kind of addresses has some specific properties. Did you pay attention to this ?
No,didn't. What do I need to pay attention to? Also as I said before, I can connect to Glassfish if it is running on Windows.

>>Did you try a ping or a traceroute to verify that the server was remotely reachable ?
I can connect to the server via ssh and also I can ping it.

Thanks.

vkoniecz
Offline
Joined: 2008-11-14

When you are using class B private networks, you need to pay attention to the routing tables because routers do not handle them as any public network IP addresses.
So you need to check that there is effectively a route defined from your remote client to your server hosting GlassFish.
A special case to pay attention is when your server has two or more network cards. Is it your case ?

Can you also try "netstat -a -f inet" please ?
Your netstat command has displayed a IPv6-like result. This is just to be sure it is effectively listening on a IPv4 network for this particular port.

Just checking the network basics ...

Bye

amarok
Offline
Joined: 2009-08-05

>>A special case to pay attention is when your server has two or more network cards. Is it your case ?
I have tested both configurations. The result is the same on two different machines.

>>Can you also try "netstat -a -f inet" please ?
You can see the output in attachments.

vkoniecz
Offline
Joined: 2008-11-14

Last question:
From your remote client, can you access the admin console ?

If your answer is yes, I would suggest that you add
java.net.preferIPv4Stack=true in the jvm options of your domain.xml.
Then restart your domain and check whether you can remotely connect or not.

amarok
Offline
Joined: 2009-08-05

Hi, vkoniecz!
>>From your remote client, can you access the admin console ?
Yes, I can. Admin Console is available at http://172.31.221.231:4848.

>>Then restart your domain and check whether you can remotely connect or not.
Nothing has changed. I'm getting the same exception from JConsole as before:
java.lang.NullPointerException
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:281)
at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:348)
at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:296)
at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:280)

vkoniecz
Offline
Joined: 2008-11-14

You wrote at some point that GlassFish printed
something like service:jmx:rmi:///jndi/rmi://:8686/jmxrmi instead of
service:jmx:rmi:///jndi/rmi://172.31.226.242:8686/jmxrmi

Can you access the admin console through http://:4848 ?

Maybe you could try to launch jconsole with the option -J-Djava.util.logging.config.file=logging.properties, specifying a level FINER for the package javax.management.remote.rmi.
The logs should give you a hint about where the problem lies (before connection, during connection attempt, ...).

logging.properties (cf jre/lib - comments removed):
handlers= java.util.logging.ConsoleHandler

.level=INFO

java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter

java.util.logging.ConsoleHandler.level = FINEST
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

javax.management.remote.rmi.level=FINER

Message was edited by: vkoniecz

amarok
Offline
Joined: 2009-08-05

>>Can you access the admin console through http://:4848 ?
Yes, I can access the admin console using either hostname or ip.

The output of JConsole and its screenshot are in attachment.

vkoniecz
Offline
Joined: 2008-11-14

The last thing I can suggest you to do is to set the log level on the package javax.management.remote.rmi to FINER for the GlassFish JVM.
Then try to connect with jconsole.
Can you see logs about RMI connection in GlassFish logs ?

amarok
Offline
Joined: 2009-08-05

How can I set up logging level for GF?

I modified system's [b]logging.properties[/b] and added

into domain.xml into [b]log-service[/b] section .
But server keeps silence.

vkoniecz
Offline
Joined: 2008-11-14

I see two ways of doing this:
1) using jconsole (if possible)
go in the MBeans tab, select the java.util.logging > Operations > setLoggerLevel
p0 = javax.management.remote.rmi.level, p1 = FINER
click on setLoggerLevel button

2) edit the file logging.properties you can find in the jre/lib directory from the jdk installation you use to run GlassFish
add the following line at the end
javax.management.remote.rmi.level = FINER
Then restart your GlassFish

amarok
Offline
Joined: 2009-08-05

It seems we are close to the issue's solution..

I connected to Glasfish by using JConsole from the localhost and set logging level for [b]javax.management.remote.rmi.level[/b] to [b]FINER[/b]. Then I disconnected JConsole and connected it again. Some messages appeared in server.log file. But when I tried to connect from a remote host, nothing appeared in log file.

What it can mean?

vkoniecz
Offline
Joined: 2008-11-14

Well if there is no message in the logs maybe you can try to use the parameter jmx.remote.x.check.stub when lauching JConsole. (-J-Djmx.remote.x.check.stub=true)
(it is a not documented parameter I found in openjdk and that is working with the Sun JDK I used)
You need javax.management.remote.rmi.level to be set to FINER also.

You should have specific messages logs about tests made on the stub used for managing the remote connection. You should see where is the problem : the stub or the connection.

Bye

amarok
Offline
Joined: 2009-08-05

I launched JConsole with this additional parameter.
The full command is :
jconsole -debug -J-Djmx.remote.x.check.stub=true -J-Djava.util.logging.config.file=logging.properties

I got the same results as without it. I mean the same messages that I showed before.

[b]...connecting...
...finding stub...
...connecting stub...
...getting connection...
...failed to connect: java.lang.NullPointerException
...closing.[/b]

vkoniecz
Offline
Joined: 2008-11-14

What is the output of "java -version" on your client ?

amarok
Offline
Joined: 2009-08-05

java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)

vkoniecz
Offline
Joined: 2008-11-14

Do you use this version for running GlassFish as well ?
Is this the same version that you use on Windows ?

Did you make some tests with older updates of the jdk 1.6 ?
(I noticed that changes have been made in the JMX layer of the JDK for updates 10 and 13 according to the release notes.)

amarok
Offline
Joined: 2009-08-05

I am using the same version of Java on both machines. But I also tried to do the same with java 1.6u14.
Today I will try to repeat all steps on openSolaris.

vkoniecz
Offline
Joined: 2008-11-14

Which version of opensuse are you using ?
About the jdk, I would have recommended to test with jdk 16.0_u12 or older since the latest changes were made for u13.

I have attached a small testcase to check that jconsole can connect correctly on the rmi registry of your GlassFish, to use it from a command line:
java -jar rmiRegistryTestCase.jar rmi://:
/jmxrmi

Replace all <...> by the right values.
I hope you get a message different from "objRef null" ...

amarok
Offline
Joined: 2009-08-05

>>Which version of opensuse are you using ?
I tried to run GF on openSuse 10.3, openSuse 11.1 and Debian 5.0.2.

The output of the test case is:
objRef not null - RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.1.1:38085](remote),objID:[-313be089:12337b3869f:-7ff0, 842906973884723184]]]]

vkoniecz
Offline
Joined: 2008-11-14

If you execute the previous testcase remotely, this output shows that it is possible to connect to the rmi registry remotely and to authenticate.
This could mean that there is a problem on the JMX level between the JDK you are using and the JMX handles exposed by GlassFish.

I have attached an extended testcase that tries to read the attributes of the Runtime MBean remotely.
Maybe you can make a try.

amarok
Offline
Joined: 2009-08-05

Hi, vkoniecz!
Can you attach an extended testcase again? All of them are lost because of forum problems..

vkoniecz
Offline
Joined: 2008-11-14

Hi

Done !

amarok
Offline
Joined: 2009-08-05

Thanks!

The output is:
./run_test.sh
objRef not null - RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.1.1:49616](remote),objID:[26faf02b:1235ab3ab38:-7fe7, -2508639987768405706]]]]
Exception when creating a RMI connection
java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
at org.testcase.rmicontext.rmiContextTestCase.main(rmiContextTestCase.java:71)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at java.net.Socket.(Socket.java:372)
at java.net.Socket.(Socket.java:186)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 5 more

But it doesn't explain anything :(

vkoniecz
Offline
Joined: 2008-11-14

Did you run it from the GlassFish server or from the remote Linux ?

If this was from the remote Linux, try to add
-Djava.rmi.server.hostname=
in the JVM Options of the instance of GlassFish you try to connect to,
where is the expected hostname.

amarok
Offline
Joined: 2009-08-05

Now the problem is solved!!

Thank you for your time!

amarok
Offline
Joined: 2009-08-05

The issue is still unresolved. The problem takes place on OpenSuse and Debian. On Windows everything works perfect.

amarok
Offline
Joined: 2009-08-05

This was not the issue of Glassfish. Something is wrong with openSuse settings. I have tested a connection on different machines with Windows. It works perfect out-of-the-box.
Thanks everyone.

alexismp
Offline
Joined: 2005-01-06

for anyone else looking into this, the config is as follows:
GF v2.1 (9.1.1) (build b60e-fcs) with jdk 1.6.0_14-b08. The platform is openSuse.
The issue is with connecting remotely: the connection is refused.

The URL used is service:jmx:rmi:///jndi/rmi://172.31.226.242:8686/jmxrmi
Amarok, is that the URL printed out by GlassFish when starting?
Also, what is the version of Java jconsole runs on?