Eclipse Axis error when creating web service
Asked Answered
P

3

21

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

Parimutuel answered 16/11, 2011 at 11:10 Comment(4)
Are that all errors in your server console? Is axis registered in your web.xml?Egest
No, I get the error from Eclipse. Axis seems to be registered in web.xml (or there are at least some servlet-mappings; I'm new to this so I don't know what the correct configuration is. ThanksParimutuel
I think that Renato's answer should be the accepted answer, not Sumit Singh's answer.Perquisite
According to a comment on Sumit's answer, it seems the poster got their problem solved with his help, so that should be the accepted answer, right?Alida
L
30

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:

Web service creating

Then, change from Axis to Axis 2:

Choose 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

Adding Axis2 to the project facets check the box publish the web service and in client select the sliding bar create client . if the problem occurs any then restart your eclipse. Hope this can help.

Lavabo answered 20/10, 2012 at 20:55 Comment(0)
B
0

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.
Breedlove answered 25/2, 2014 at 11:28 Comment(0)
R
0

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.

Retrospection answered 19/7, 2017 at 7:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.