Honorez Dylan wrote:

I was just wondering if you got the jms tests to work. I tried it with
JBoss 3.2.3 but I get some kind of connection error:


it looks like root exception cause is "java.net.ConnectException: Connection refused: connect" caused com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:511) during JNDI lookup so i would make sure you have access to CORBA(?) naming service and if it is configured properly. try to write small program to reproduce the problem and try also on different machines/network configuration.

best,

alek

Reading WSDL document from
'c:\projects\jbossjmswsif\ServiceAvailability.wsdl'
Preparing WSIF dynamic invocation
Executing operation checkAvailability
31-aug-2004 15:56:39
com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl
<init>
WARNING: ORBUTIL.connectFailure
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
        at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBU
tilSystemException.java:1739)
        at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBU
tilSystemException.java:1757)
        at
com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<ini
t>(SocketFactoryConnectionImpl.java:74)
        at
com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.cre
ateConnection(SocketFactoryContactInfoImpl.java:77)
        at
com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginReq
uest(CorbaClientRequestDispatcherImpl.java:152)
        at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClie
ntDelegateImpl.java:121)
        at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientD
elegateImpl.java:214)
        at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
        at
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69
)
        at
com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:5
8)
        at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:126)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at
org.apache.wsif.util.jms.WSIFJMSFinderForJndi.lookupJNDIName(Unknown
Source)
        at org.apache.wsif.util.jms.WSIFJMSFinderForJndi.lookup(Unknown
Source)
        at org.apache.wsif.util.jms.WSIFJMSFinderForJndi.<init>(Unknown
Source)
        at org.apache.wsif.util.jms.WSIFJMSFinder.newFinder(Unknown
Source)
        at
org.apache.wsif.providers.jms.WSIFPort_Jms.getJmsDestination(Unknown
Source)
        at
org.apache.wsif.providers.jms.WSIFOperation_Jms.sendJmsMessage(Unknown
Source)
        at
org.apache.wsif.providers.jms.WSIFOperation_Jms.executeRequestResponseOp
eration(Unknown Source)
        at clients.DynamicInvoker.invokeMethod(DynamicInvoker.java:332)
        at clients.DynamicInvoker.main(DynamicInvoker.java:150)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.intellij.rt.execution.application.AppMain.main(Unknown
Source)
Caused by: java.lang.RuntimeException: java.net.ConnectException:
Connection refused: connect
        at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketF
actory.java:520)
        at
com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<ini
t>(SocketFactoryConnectionImpl.java:58)
        ... 23 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:460)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketF
actory.java:511)
        ... 24 more
31-aug-2004 15:56:41
com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl
<init>
WARNING: ORBUTIL.connectFailure
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
        at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBU
tilSystemException.java:1739)
        at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBU
tilSystemException.java:1757)
        at
com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<ini
t>(SocketFactoryConnectionImpl.java:74)
        at
com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.cre
ateConnection(SocketFactoryContactInfoImpl.java:77)
        at
com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginReq
uest(CorbaClientRequestDispatcherImpl.java:152)
        at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClie
ntDelegateImpl.java:121)
        at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientD
elegateImpl.java:214)
        at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
        at
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69
)
        at
com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:5
8)
        at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:126)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at
org.apache.wsif.util.jms.WSIFJMSFinderForJndi.lookupJNDIName(Unknown
Source)
        at org.apache.wsif.util.jms.WSIFJMSFinderForJndi.lookup(Unknown
Source)
        at org.apache.wsif.util.jms.WSIFJMSFinderForJndi.<init>(Unknown
Source)
        at org.apache.wsif.util.jms.WSIFJMSFinder.newFinder(Unknown
Source)
        at
org.apache.wsif.providers.jms.WSIFPort_Jms.getJmsDestination(Unknown
Source)
        at
org.apache.wsif.providers.jms.WSIFOperation_Jms.sendJmsMessage(Unknown
Source)
        at
org.apache.wsif.providers.jms.WSIFOperation_Jms.executeRequestResponseOp
eration(Unknown Source)
        at clients.DynamicInvoker.invokeMethod(DynamicInvoker.java:332)
        at clients.DynamicInvoker.main(DynamicInvoker.java:150)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.intellij.rt.execution.application.AppMain.main(Unknown
Source)
Caused by: java.lang.RuntimeException: java.net.ConnectException:
Connection refused: connect
        at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketF
actory.java:520)
        at
com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<ini
t>(SocketFactoryConnectionImpl.java:58)
        ... 23 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:460)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
        at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketF
actory.java:511)
        ... 24 more
result=true

Kind regards,
Dylan Honorez,
[EMAIL PROTECTED]

-----Original Message-----
From: SOUILLARD CHARLES [mailto:[EMAIL PROTECTED] Sent: donderdag 26 augustus 2004 10:33
To: [EMAIL PROTECTED]
Subject: jms tests


There is a test about asynchronous use with jms but I do not get the
method to
launch unit tests...
Can you help me ?

Aleksander Slominski wrote:



SOUILLARD CHARLES wrote:



I want to know if an asynchronous jms operation can be executed in


WSIF. I


saw that some code is vailable to do that but I do not understand how


the


response message is catched. I saw that WSIF uses handlers to do that


but I


didn't see where this handler is waiting for new messages and where


these


messages are then returned...


Can you help me ?




AFAIR it uses its own conventions ot correlate JMS messages but i did
not write it code ...

there should be some samples and unti tests - did you look on them?



I have another question about dynamically add of new providers. It


written


in documentaion (overview) that it is possible thanks to J2EE jar


mecanism.


That's ok.

My questions are :

If I add a new provider, can I use it in a sample I had already


deployed ?


Is it possible to dynamically add a binding using this new provider


to a


sample or shall I add it to the wsdl file and recompile the sample ?




if you chnaged WSDL and have new provider in classpath it should be


just


automatically picked by WSIF runtime



If the response is the last one how does it work if my call is being


done ?




i think it looks up dynamically in classpath to find provider and load
it (again i did not write this code so caveat emperor).

alek

--
The best way to predict the future is to invent it - Alan Kay










--
The best way to predict the future is to invent it - Alan Kay



Reply via email to