Hi,
I'm running Axis on Suse 9.1, jdk 1.4.2_06. I'm trying to get it working
just on the local machine, but I'm getting the error
Remote administrator access is not allowed!
at org.apache.axis.utils.Admin.process(Admin.java:211)
I know I can allow remote access in the config file, but I'd rather
figure out why this is happening.
Looking at the code, I see:
String remoteIP = msgContext.getStrProp(Constants.MC_REMOTE_ADDR)
InetAddress myAddr = InetAddress.getLocalHost();
InetAddress remoteAddr =
InetAddress.getByName(remoteIP);
...
if (!myAddr.equals(remoteAddr)) {
remoteAddr: " + remoteAddr );
log.error(Messages.getMessage("noAdminAccess01",
remoteAddr.toString()));
...
In my case, myAddr = xenakis/127.0.0.2, remoteIP is 0:0:0:0:0:0:0:1 and
remoteAddr = /0:0:0:0:0:0:0:1.
Why am I getting such a goofy value for remoteIP? This seems to be
getting set in AxisServlet:
msgContext.setProperty(Constants.MC_REMOTE_ADDR, req.getRemoteAddr());
where req is a HttpServletRequest.
Any thoughts?
thanks
Michael