users@glassfish.java.net

create JMS host/can not create/start JMS brokers

From: <forums_at_java.net>
Date: Wed, 17 Aug 2011 04:42:09 -0500 (CDT)

Hi all,

me again.  Ok, so I am trying to set up a new domain on my glassfish
cluster, it is the second domain, it has a cluster of two instances.

My issue is that when the cluster starts it seems incapable of talking to the
JMS brokers.

I wish to have glassfish manage my brokers in an enhanced cluster, I am
using:

<code>set --port 30048
configs.config.server-config.jms-service.type=LOCAL</code>

to set the clusters properties correctly then after I create the cluster
(create-cluster --port 30048 APP)  I am setting the cluster to local:

<code>set --port 30048
configs.config.APP-config.jms-service.type=LOCAL</code>

I then attempt to configure the jms cluster, this seems to work fine
(although I would prefer it created the database if it didnt exist as the one
I am using is from a different experiment).

When I start the cluster I get the following errors:

[#|2011-08-16T17:56:36.350+0100|WARNING|glassfish3.1|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=1;_ThreadName=Thread-1;|RAR8000
: The method setHARequired is not present in the class :
com.sun.messaging.jms.ra.ResourceAdapter|#]

[#|2011-08-16T17:56:36.353+0100|WARNING|glassfish3.1|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=1;_ThreadName=Thread-1;|RAR7097:
No setter method present for the property HARequired in the class
com.sun.messaging.jms.ra.ResourceAdapter|#]

[#|2011-08-16T17:56:37.718+0100|WARNING|glassfish3.1|javax.jms|_ThreadID=10;_ThreadName=Thread-1;|[C4003]:
Error occurred on connection creation [localhost:27676]. - cause:
java.net.SocketException: Connection reset|#]

[#|2011-08-16T17:56:37.719+0100|WARNING|glassfish3.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=17;_ThreadName=Thread-1;|Local
broker: [16/Aug/2011:17:56:37 BST] ERROR [B3168]: Invalid broker address for
this broker to run in cluster: Loopback IP address is not allowed in broker
address
mq://127.0.0.1:27676/?instName=APPAPPDEV1&brokerID=APPAPPDEV1&brokerSessionUID=7786215590325641728&ha=true&storeSessionUID=3694976803348201984
[1] for cluster|#]

The first two I have no clue about but think they maybe linked to the second
two.  However I think the second two are to do with the JMS host, looking at
my domain.xml the default host is set have a host of host=localhost, this
seems to be incorrect for clustered setups.

I am wondering:

a) why this is the case when the type is set to local and I set the
clustertype to enhanced with the configure-jms-cluster?  Should it not of
created me the correct default host?

b) will creating a new jms host with a host of 0.0.0.0 using create-jms-host
be of any use?

thanks for any help in advance

Gavin.

 


[1]
http://www.java.net//127.0.0.1:27676/?instName=APPAPPDEV1&amp;brokerID=APPAPPDEV1&amp;brokerSessionUID=7786215590325641728&amp;ha=true&amp;storeSessionUID=3694976803348201984

--
[Message sent by forum member 'gavintranter']
View Post: http://forums.java.net/node/834173