Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 93437

Summary: Error when deploying Web service to Axis runtime on SLES 9.0
Product: [WebTools] WTP Webservices Reporter: Rupam Kuehner <rsinha>
Component: jst.wsAssignee: Kathy Chan <kathy>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: 0.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Modified axis.jar to allow remote administration
none
Modifed Axis 1.2's axis.jar to allow remote administration none

Description Rupam Kuehner CLA 2005-05-02 14:25:32 EDT
Platform: SLES 9.0
Scenario: Bottom-up or top-down Web service creation on Axis
Symptom: Clicking Next on page 4 of the wizard results in an error dialog
with the following ...

IWAB0489E Error when deploying Web service to Axis runtime
Details:
IWAB0489E Error when deploying Web service to Axis runtime
  axis-admin failed with  {http://xml.apache.org/axis/}HTTP 
(401)Unauthorized

Tomcat's console has the following:

May 2, 2005 12:59:34 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
May 2, 2005 12:59:39 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
May 2, 2005 12:59:39 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 2, 2005 12:59:39 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/37  config=null
- Unable to find config file.  Creating new servlet engine config file: 
/WEB-INF/server-config.wsdd
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1
- Rejected remote access from host /0:0:0:0:0:0:0:1

Explanation:
We've seen a similar problem in Axis 1.0, where the Axis code does not 
recognize the IP v7 format of "0:0:0:0:0:0:0:1" as being localhost's address 
(equivalent to 127.0.0.1 in IP v6). Remote administraton is not permitted by 
default so the "unauthorized" error appears.

Possible workaround:
Modify server-config.wsdd in axis.jar to enable remote administration. This is 
done by setting the value of the "enableRemoteAdmin" attribute to "true".
Comment 1 Rupam Kuehner CLA 2005-05-02 14:27:32 EDT
Created attachment 20602 [details]
Modified axis.jar to allow remote administration

Attaching axis.jar which has been modified to allow remote administration
Comment 2 Rupam Kuehner CLA 2005-05-26 09:52:55 EDT
We'll be moving to Axis 1.2 in M5. Once we have a stable integration build 
where the Web service sceanrios are running with Axis 1.2, we should try this 
again to see if this is still an issue.
Comment 3 Chris Brealey CLA 2005-06-09 15:03:24 EDT
Kathy, just a commit & test exercise. Thanks.
Comment 4 Kathy Chan CLA 2005-06-10 14:13:38 EDT
Patch applied and released in v20050610_1400.
Comment 5 David Williams CLA 2005-06-15 01:33:13 EDT
Changed Version field given new release numbering.
Comment 6 Rupam Kuehner CLA 2005-07-25 17:01:20 EDT
Reopening since the problem occures with Axis 1.2
Comment 7 Rupam Kuehner CLA 2005-07-25 17:03:05 EDT
Created attachment 25267 [details]
Modifed Axis 1.2's axis.jar to allow remote administration

copy into the org.apache.axis/lib folder
patch 1 of 1
Comment 8 Kathy Chan CLA 2005-07-25 18:13:49 EDT
We are not able to deploy ANY Web service to Axis 1.2.1 runtime on SLES (Suse 
Linux Enterprise Server) 9.0.   
It works for RHEL (Red Hat Enterprise Linux) 3.0 and on the Windows platform. 

The error was due to Axis code does not recognize the IP v7 format 
of "0:0:0:0:0:0:0:1" 
as being localhost's address (equivalent to 127.0.0.1 in IP v6). Remote 
administraton is 
not permitted by default (as defined in the template server-config.wsdd shipped 
in axis.jar), 
so the "unauthorized" error appears when trying to deploy Web services to Axis. 

The workaround is to modify server-config.wsdd in axis.jar in the 
org.apache.axis plugin 
(containing Axis 1.2.1 JARs) to enable remote administration. This is done by 
setting the value of the "enableRemoteAdmin" attribute to "true".   
  
The same workaround was done in order to have the Web services wizard support 
the Axis 1.0 and Axis 1.1 runtime. 
Comment 9 David Williams CLA 2005-07-25 21:18:57 EDT
I agree with this work around, but has a bug been open on the axis bug system?
Would they agree with this as a work-around? 
So, just please document the axis bugzila number here. 
Thanks much. 

Comment 10 Kathy Chan CLA 2005-07-27 20:07:13 EDT
Apache Axis bug opened:  http://issues.apache.org/jira/browse/AXIS-2147.
Comment 11 Chris Brealey CLA 2005-07-28 14:13:15 EDT
This fix was committed and released earlier this week.
Comment 12 Rupam Kuehner CLA 2005-07-29 10:43:02 EDT
Verified on RC5
Comment 13 Kathy Chan CLA 2006-02-17 13:17:11 EST
Closing.