I am trying to call a remote method with the http invokers. The client has the jar 
files in the client directory of the jboss configuration. When I run it I get (see 
trace below) 
  if I use the jbosssx.jar in the lib dir it works fine.


Exception in thread "main" javax.naming.NamingException: Failed to retrieve Naming 
interface.  Root exception is java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:426)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA627
5)
        at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA6275)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
        at sun.net.www.protocol.https.HttpsClient.(DashoA6275)
        at sun.net.www.protocol.https.HttpsClient.a(DashoA6275)
        at sun.net.www.protocol.https.HttpsClient.a(DashoA6275)
        at sun.net.www.protocol.https.HttpsClient.a(DashoA6275)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.plainConne
ct(DashoA6275)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Da
shoA6275)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
tion.java:574)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnec
tion.java:1169)
        at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:475)
        at java.net.URLConnection.getContentLength(URLConnection.java:370)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Dasho
A6275)
        at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingCont
extFactory.java:112)
        at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingCo
ntextFactory.java:65)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at javax.naming.InitialContext.init(InitialContext.java:219)
        at javax.naming.InitialContext.(InitialContext.java:195)
        at com.candata.util.ejb.PropertiesBusFactory.lookupHome(Unknown Source)
        at com.candata.util.ejb.PropertiesBusFactory.getHome(Unknown Source)
        at com.candata.client.test.LocalTest.main(Unknown Source)


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848660#3848660

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848660


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to