问题
Every time I try to create a new Web Service in Eclipse, I get this error:
IWAB0489E Error when deploying Web service to Axis runtime
axis-admin failed with {http://xml.apache.org/axis/}HTTP (404)Not Found
Any idea how to solve this issue?
Thanks
回答1:
please check the following:
- Verify that the web.xml of the dynamic Web project has been updated with the Axis2 servlet.
- The project has been added to the server and the server state is started.
- Ping the URL "/services/AdminService"
(e.g."http://localhost:8080/WebProj/services/AdminService) and verify that the Axis2 servlet is up and running. - Ensure that deploy.wsdd is generated in the Web project's WebContent/WEB-INF directory under the package name.
回答2:
In fact this problem occur because you have choosen Axis1 instead Axis2 when trying to generate the WebService.
To change from Axis1 to Axis2 you need to click in "Web service runtime: Apache Axis" when on this step of the creation of the web service:

Then, change from Axis to Axis 2:

One last consideration: You must be sure that in the creation moment of your Web Dynamic Project, you have choosen "Dynamic Web Module Version" to be below 3.0. Version 2.5 will work. After that you need to add "Axis2 Web Services" to the facets of the project. Right click on the project > Properties > Project Facets

回答3:
I needed axis1 for my project (since axis2 created some new problems) & had this problem. I solved it by the following steps:
- Go to Project Explorer in Eclipse.
- Delete Servers project.
- Go to Window > Preferences > Server > Runtime Environments.
- Remove current server & create again.
回答4:
You must enable the "web.xml" Web Deployment Descriptor file when creating project and you still use axis 1. I did it and everything worked fine.
来源:https://stackoverflow.com/questions/8150698/eclipse-axis-error-when-creating-web-service