Building error in Eclipse with build.xml

Posted by Zachary on Stack Overflow See other posts from Stack Overflow or by Zachary
Published on 2010-06-16T16:15:50Z Indexed on 2010/06/17 8:03 UTC
Read the original article Hit count: 505

Filed under:
|
|

I am working on a Java project with Eclipse. This project requires a second project (not mine), named sams in its build-path. The sams is provided with a build.xml file and it should generate some code using Apache CXF when building it. When I use Apache ANT on Eclipse and run the cxf.generated command from its build file I get the following error:

Buildfile: C:\Docs\ZacRocha\Desktop\sams\build.xml
cxf.generated:
  [echo] Generating code using Apache CXF wsdl2java...
  [java] 16-Jun-2010 16:04:08 org.apache.cxf.binding.corba.CorbaConduit prepare
  [java] SEVERE: Could not resolve target object
  [java] 16-Jun-2010 16:04:08 org.apache.cxf.binding.corba.CorbaConduit prepare
  [java] SEVERE: Could not resolve target object
  [java] WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : file:/C:/Docs/ZacRocha/Desktop/sams/$%7barchivesoftware.wsdl%7d
  [java] Caused by : WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Docs/ZacRocha/Desktop/sams/$%7barchivesoftware.wsdl%7d'.: java.io.FileNotFoundException: C:\Docs\ZacRocha\Desktop\sams\${archivesoftware.wsdl} (The system cannot find the file specified) 
  [java] 16-Jun-2010 16:04:10 org.apache.cxf.binding.corba.CorbaConduit prepare
  [java] SEVERE: Could not resolve target object
  [java] 16-Jun-2010 16:04:10 org.apache.cxf.binding.corba.CorbaConduit prepare
  [java] SEVERE: Could not resolve target object
  [java] WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : file:/C:/Docs/ZacRocha/Desktop/sams/$%7barchivehardware.wsdl%7d
  [java] Caused by : WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Docs/ZacRocha/Desktop/sams/$%7barchivehardware.wsdl%7d'.: java.io.FileNotFoundException: C:\Docs\ZacRocha\Desktop\sams\${archivehardware.wsdl} (The system cannot find the file specified) 
BUILD SUCCESSFUL

Total time: 4 seconds

I am used to program on Eclipse and I know very little about building with Apache ANT. Can someone tell me where exactly the problem may be? Thanks in advance!

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse