JMS over HTTP
jch888 Jul 29, 2003 2:16 PMI'm trying to get JBoss to run over HTTP using port 60. There are no firewalls on the current machine. I've changed the http-invoker.sar/META-INF/jboss-service.xml file I've changed the MBean code for the HttpProxyFactory to have the correct port changes for the URL suffix to be:
:60/invoker/JMXInvokerServlet
I placed an InvokerURL attribute as well with my IP address in it.
Then on the client side these are the values i switched the jndi.properties to:
Initial_Context_Factory to org.jboss.naming.HttpNamingContextFactory
Provider_URL to http://<my address>:60/invoker/JNDIFactory
When I try and run a client program and connect to the http invoker this is the exception I get:
javax.naming.NamingException: Failed to retri
eve Naming interface [Root exception is java.net.ConnectException: Connection re
fused: connect]
javax.naming.NamingException: Failed to retrieve Naming interface. Root excepti
on is java.net.ConnectException: Connection refused: connect
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 java.net.Socket.connect(Socket.java:376)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.(HttpClient.java:303)
at sun.net.www.http.HttpClient.(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:481)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:472)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:574)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLCon
nection.java:1169)
at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:475)
at java.net.URLConnection.getContentLength(URLConnection.java:370)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingC
ontextFactory.java:106)
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamin
gContextFactory.java:64)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)