users@glassfish.java.net

JMS and Glassfish

From: np12 <nikitapai12_at_gmail.com>
Date: Wed, 17 Nov 2010 16:18:53 -0800 (PST)

I have a JMS Topic set up on glassfish. I can successfully connect to it
using the JNDI URL and Driver in an Enterprise Application Client. However
it gives me errors when I try connecting it using using a Java client. I get
the following error:

Nov 17, 2010 3:47:13 PM com.sun.appserv.naming.RoundRobinPolicy
setClusterInstanceInfo
WARNING: NAM1005 : No Endpoints selected. Please specify using system
property com.sun.appserv.iiop.endpoints.
Nov 17, 2010 3:47:13 PM com.sun.appserv.naming.RoundRobinPolicy
getEndpointForProviderURL
WARNING: NAM1001: No Endpoints selected in com.sun.appserv.iiop.endpoints
property. Using JNDI Provider URL iiop://localhost:3700 instead
Nov 17, 2010 3:47:14 PM com.sun.appserv.naming.RoundRobinPolicy
setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
Nov 17, 2010 3:47:14 PM com.sun.appserv.naming.RoundRobinPolicy
setClusterInstanceInfo
INFO: sumOfAllWeights = 10
Nov 17, 2010 3:47:15 PM
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
        at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2783)
        at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2804)
        at
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
        at
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
        at
com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
        at
com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
        at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:184)
        at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:328)
        at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
        at
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
        at
com.sun.corba.ee.impl.folb.ClientGroupManager.getInitialClusterInstanceInfo(ClientGroupManager.java:594)
        at
com.sun.corba.ee.impl.folb.ClientGroupManager$GIS.getClusterInstanceInfo(ClientGroupManager.java:618)
        at
com.sun.corba.ee.impl.folb.ClientGroupManager.getClusterInstanceInfo(ClientGroupManager.java:664)
        at
com.sun.appserv.naming.GroupInfoServiceObserverImpl.membershipChange(GroupInfoServiceObserverImpl.java:73)
        at
com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.java:290)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at
tools.modulegenerator.MessageReceiver.getMessages(MessageReceiver.java:47)
        at tools.modulegenerator.MessageReceiver.main(MessageReceiver.java:84)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection
refused: connect
        at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
        at
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
        ... 18 more
Caused by: java.net.ConnectException: Connection refused: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
        at
com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
        at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
        ... 19 more

Can someone please let me know how I can connect to the jms Topic using a
Java client.

Thanks
-- 
View this message in context: http://old.nabble.com/JMS-and-Glassfish-tp30239162p30239162.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.