One thing we can improve is that if the wsdl2java failed, it should exit, then we can see the real error message but the compile failure.
I'll fix this soon.

Thanks,
James.
Cool
Thanks, I'll do it.

James.

This change fixes the problem for me. Anyone want to try it out?

Index: distribution/src/main/release/samples/common_build.xml
===================================================================
--- distribution/src/main/release/samples/common_build.xml (revision 514517) +++ distribution/src/main/release/samples/common_build.xml (working copy)
@@ -188,7 +188,7 @@
                 </not>
             </condition>
             <property name="[EMAIL PROTECTED]" value=""/>
- <condition property="binding.arg" value="-b @{bindingfile}"> + <condition property="binding.arg" value='-b "@{bindingfile}"'>
                 <not>
                     <equals arg1="@{bindingfile}" arg2=""/>
                 </not>

Cheers,
Jon

On Mon, Mar 05, 2007 at 10:21:33AM +0800, James Mao wrote:
I can reproduce now, it's the space in your path.
This path works:
C:\bin\java\apache\cxf\2007_03_05\cxf-2.0-incubator-RC-SNAPSHOT
This path can not wok:
C:\bin\java\apache\cxf\2007 03 05\cxf-2.0-incubator-RC-SNAPSHOT

I don't know if it's a bug in ANT?

James.

I can not reproduce in my windows box.

The problem is that you have a space in your working path.
Try extract the kit into a path without the space, e.g c:\test

Hope this help.

James.
Does the hello world async sample work for anyone else? I get a bunch of
errors when compiling.

- Dan

Buildfile: build.xml

maybe.generate.code:

compile:
   [javac] Compiling 4 source files to C:\cygwin\home\Dan
Diephouse\cxf\trunk\distribution\target\cxf-2.0-incubator-RC-
SNAPSHOT\samples\hello_world_async\build\classes
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:31: package
org.apache.hello_world_async_soap_http does not exist
[javac] import org.apache.hello_world_async_soap_http.GreeterAsync;
   [javac]                                               ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:32: package
org.apache.hello_world_async_soap_http does not exist
   [javac] import org.apache.hello_world_async_soap_http.SOAPService;
   [javac]                                               ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:33: package
org.apache.hello_world_async_soap_http.types does not exist
   [javac] import
org.apache.hello_world_async_soap_http.types.GreetMeSometimeResponse;
   [javac]                                                     ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\TestAsyncHandler.java:25: package
org.apache.hello_world_async_soap_http.types does not exist
   [javac] import
org.apache.hello_world_async_soap_http.types.GreetMeSometimeResponse;
   [javac]                                                     ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\TestAsyncHandler.java:28: cannot find symbol
   [javac] symbol: class GreetMeSometimeResponse
   [javac] public class TestAsyncHandler implements
AsyncHandler<GreetMeSometimeResponse> {
   [javac]                                                       ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\TestAsyncHandler.java:30: cannot find symbol
   [javac] symbol  : class GreetMeSometimeResponse
   [javac] location: class demo.hw.client.TestAsyncHandler
   [javac]     private GreetMeSometimeResponse reply;
   [javac]             ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\TestAsyncHandler.java:32: cannot find symbol
   [javac] symbol  : class GreetMeSometimeResponse
   [javac] location: class demo.hw.client.TestAsyncHandler
[javac] public void handleResponse(Response<GreetMeSometimeResponse>
response) {
   [javac]                                         ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\server\GreeterImpl.java:30: package
org.apache.hello_world_async_soap_http does not exist
[javac] import org.apache.hello_world_async_soap_http.GreeterAsync;
   [javac]                                               ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\server\GreeterImpl.java:31: package
org.apache.hello_world_async_soap_http.types does not exist
   [javac] import
org.apache.hello_world_async_soap_http.types.GreetMeSometimeResponse;
   [javac]                                                     ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\server\GreeterImpl.java:38: cannot find symbol
   [javac] symbol: class GreeterAsync
   [javac] public class GreeterImpl implements GreeterAsync {
   [javac]                                     ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\server\GreeterImpl.java:52: cannot find symbol
   [javac] symbol  : class GreetMeSometimeResponse
   [javac] location: class demo.hw.server.GreeterImpl
   [javac]
AsyncHandler<GreetMeSometimeResponse> asyncHandler) {
   [javac]                                                         ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\server\GreeterImpl.java:57: cannot find symbol
   [javac] symbol  : class GreetMeSometimeResponse
   [javac] location: class demo.hw.server.GreeterImpl
   [javac]     public Response<GreetMeSometimeResponse>
greetMeSometimeAsync(String requestType) {
   [javac]                     ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:53: cannot find symbol
   [javac] symbol  : class SOAPService
   [javac] location: class demo.hw.client.Client
   [javac]         SOAPService ss = new SOAPService(wsdl.toURL(),
SERVICE_NAME);
   [javac]         ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:53: cannot find symbol
   [javac] symbol  : class SOAPService
   [javac] location: class demo.hw.client.Client
   [javac]         SOAPService ss = new SOAPService(wsdl.toURL(),
SERVICE_NAME);
   [javac]                              ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:56: cannot find symbol
   [javac] symbol  : class GreeterAsync
   [javac] location: class demo.hw.client.Client
   [javac]         GreeterAsync port = ss.getSoapPort();
   [javac]         ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:73: cannot find symbol
   [javac] symbol  : class GreetMeSometimeResponse
   [javac] location: class demo.hw.client.Client
[javac] Response<GreetMeSometimeResponse> greetMeSomeTimeResp =
   [javac]                  ^
[javac] C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\hello_world
_async\src\demo\hw\client\Client.java:78: cannot find symbol
   [javac] symbol  : class GreetMeSometimeResponse
   [javac] location: class demo.hw.client.Client
[javac] GreetMeSometimeResponse reply = greetMeSomeTimeResp.get
();
   [javac]         ^
   [javac] 17 errors

BUILD FAILED
C:\cygwin\home\Dan Diephouse\cxf\trunk\distribution\target\cxf-
2.0-incubator-RC-SNAPSHOT\samples\common_build.xml:99: Co
mpile failed; see the compiler error output for details.






Reply via email to