Dylan, I think you're right about JNDI. Here is what I recommend to try: go to jndi.properties and change java.naming.provider.url=jnp://localhost:1099 to java.naming.provider.url=jnp://localhost:xyz
where xyz is the listening port of Jonas JNDI provider. Also, review the 2 other lines in that file as each J2EE provider has them slightly different. For JBoss its: java.naming.factory.initial=org.jnp.interface.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces Review the doc for Jonas to find out what they should be. Goodluck, Greg -----Original Message----- From: Honorez Dylan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 7:53 AM To: [email protected] Subject: RE: WSIF over JMS Yes, That's what the Jonas support team said to me meanwhile. I was tricked by the sentence "The ConnectionFactory CF in JNDI was not defined to be a connection factory.", I thought that was why I got the "connection refused". Thanks. Kind regards Dylan Honorez, [EMAIL PROTECTED] http://www.xt-i.com/ -----Original Message----- From: Jeff Greif [mailto:[EMAIL PROTECTED] Sent: donderdag 6 januari 2005 16:53 To: [email protected] Subject: Re: WSIF over JMS Note the "Root exception is ...Connection refused..." line below. This usually means that either nothing is listening on the host:port (in this case, localhost:1099 ) in question. Jeff ----- Original Message ----- From: Honorez Dylan To: [email protected] Sent: Thursday, January 06, 2005 1:38 AM Subject: WSIF over JMS Hi, I had a service over JMS deployed on JBoss. Now we migrated to Jonas, and this component fails to work. This is the error I'm getting: - WSIF0005E: An error occurred when invoking the method 'databaseQuery'. ('Jms') org.apache.wsif.WSIFException: [EMAIL PROTECTED] : Could not invoke 'databaseQuery'; nested exception is: org.apache.wsif.WSIFException: WSIFJMSFinderForJndi caught NamingException. The ConnectionFactory CF in JNDI was not defined to be a connection factory. Port=XQuarkPort javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect] at org.apache.wsif.providers.jms.WSIFOperation_Jms.executeRequestResponseOp erat ion(WSIFOperation_Jms.java:232) at com.xti.wsif.WSIFInvoker.invokeWSIFservice(WSIFInvoker.java:119) at gui.WSIFDemo.invokeWs(WSIFDemo.java:408) at gui.WSIFDemo.actionPerformed(WSIFDemo.java:246) This was the original port information in Jboss wsdl: <service name="WSIF-JMS-XQUARK-Demo"> <port name="XQuarkPort" binding="tns:XQuarkJMSBinding"> <!-- JBoss specific JMS endpoint --> <jms:address jmsProviderDestinationName="XQuark" destinationStyle="queue" jndiConnectionFactoryName="ConnectionFactory" initialContextFactory="org.jnp.interfaces.NamingContextFactory" jndiProviderURL="localhost"/> </port> </service> This is the port information in the new Jonas wsdl: <service name="WSIF-JMS-XQUARK-Demo"> <port name="XQuarkPort" binding="tns:XQuarkJMSBinding"> <jms:address jmsProviderDestinationName="XQuark" destinationStyle="queue" jndiConnectionFactoryName="CF" initialContextFactory="org.objectweb.carol.jndi.spi.JRMPContextWrapperFa ctor y" jndiProviderURL="rmi://localhost:1099"/> </port> </service> Anybody an idea what's going wrong? Kind regards, Dylan Honorez, [EMAIL PROTECTED] http://www.xt-i.com/
