[ mx4j-Bugs-926502 ] Cannot use port 80 for SOAPConnector
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #926502, was opened at 2004-03-31 02:42
Message generated for change (Comment added) made by btscully
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=926502&group_id=47745
Category: None
Group: Release 2.0.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot use port 80 for SOAPConnector
Initial Comment:
On the server side, I use the following statement to bind
my SOAP
JMXServiceURL url = new JMXServiceURL
("service:jmx:soap://localhost:80/Kazeon");
and a trace given to me is
JMXConnectorServer started at:
service:jmx:soap://localhost:80/Kazeon/id/1
On the client side, I use the following statement to bind
my SOAP
JMXServiceURL url = new JMXServiceURL
("service:jmx:soap://192.168.0.216:80/Kazeon/id/1");
and a trace given to me is
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}
Server.userException
faultSubcode:
faultString: java.io.IOException: Could not find
ConnectionManager. Make sure a SOAPConnectorServer
is in classloader scope and bound at this address
service:jmx:soap://localhost/Kazeon/id/1
Some more information
1) Port 80 is available for me to use when I startup the
server program and I saw the trace that I am listening
to the connection
2) If I change to use the port 8080 or port 81 (any
other port), everything works fine.
3) I see the same AxisFault if I am trying to reach a non-
existent web service when the web server is up.
----------------------------------------------------------------------
>Comment By: Brian Scully (btscully)
Date: 2004-04-03 14:23
Message:
Logged In: YES
user_id=234750
The root problem, as far as I can tell, is that on line 821 of
AxisServlet(doPost),
javax.servlet.http.HttpUtils.getRequestURL(request) does not
properly report the port parameter. This is put in the
MessageContext as property MessageContext.TRANS_URL.
On line 77 of mx4j.tools.remote.soap.SOAPConnectionPivot,
this very property is used to look up the JMXServiceURL. This
lookup fails to find the JMXServiceURL - causing the above
error.
I get the problem no matter what the port is if I use the 4
parameter JMXServiceURL constructor. There must be a bug
in JMXServiceURL.
----------------------------------------------------------------------
Comment By: superbonbon (superbonbon)
Date: 2004-03-31 03:11
Message:
Logged In: YES
user_id=641892
Did you try to bind your server socket to another host name ?
I presume that your server and client are running on the same
host why don't your try :
JMXServiceURL url = new JMXServiceURL
("service:jmx:soap://192.168.0.216:80/Kazeon");
I think that if you start your server with "localhost" it could
bind the server socket with 127.0.0.1 which could cause
problem for external access or for socket bind with something
else that 127.0.0.1 ( such as 192.168.0.216 )
just my 2 cents..
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=926502&group_id=47745
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click