0

I tried to create a simple web service using Axis2 + Tom cat + Netbeans 6.8 like this tutorial.

http://netbeans.org/kb/69/websvc/gs-axis.html#deploy_axis

but after all configured as it says and when developing it gives this error:

E:\WorkDesk\Java Projects\MyWebservice\MyWebservice\nbproject\build-impl.xml:166: Must set src.dir BUILD FAILED (total time: 0 seconds)

please help me out to fix this bug. thanks lot.

  • 1) it sounds like an "ant" problem *building* your project (vs. an Axis2 or Tomcat problem actually *running* the project). I only mention it because knowing it's a "build" problem might simplify troubleshooting. 2) Do you have an ant "build.xml" file in your project? Does it have an entry for "src.dir"? – paulsm4 Jun 20 '12 at 05:57
  • thanks for your quick reply. Yes there is a build.xml in my netbeans project file. I don't know is it an ant "buil.xml" file because it creates default by netbeans. I think netbeans automatically deploy the this web project. Here is the content of the build.xml: Builds, tests, and runs the project MyWebservice. Do I need to install ant?? – Daz Abey Jun 20 '12 at 06:09

1 Answers1

0

For us, the project.properties was not being created properly, which is where src.dir is defined. Deleting the file then rerunning ant fixed the problem.

MageWind
  • 785
  • 1
  • 6
  • 16