Ant tasks for tools don't provide helpful error messages
--------------------------------------------------------

                 Key: CXF-783
                 URL: https://issues.apache.org/jira/browse/CXF-783
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Lars Kühne
             Fix For: 2.0.1


I'm new to cxf, currently trying to migrate from xfire's XFireWsdlGenTask, 
using the WsGen task from CXF-760.

Probably doing something wrong, but the error messages from WsGen don't provide 
any helpful error message to let me find the problem.

Here is what I'm doing in the Ant build.xml:

    <taskdef name="cxfJava2wsdl" classname="...WsGen">
      <classpath>
...
      </classpath>
    </taskdef>
    
    <cxfJava2wsdl 
      sei="...TextTaskWebSvcImpl"
      resourcedestdir="${dir.build.soap}"
      >
    </cxfJava2wsdl>

Here is the output I get from the WsGen task:

[cxfJava2wsdl] - Refreshing [EMAIL PROTECTED]: display name [EMAIL PROTECTED]; 
startup date [Thu Jul 12 16:12:29 CEST 2007]; root of context hierarchy
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-management.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-local.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-soap.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-policy.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-addr.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-jms.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-object-binding.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-xml.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-http.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-http-jetty.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-http-binding.xml]
[cxfJava2wsdl] - Loading XML bean definitions from class path resource 
[META-INF/cxf/cxf-extension-rm.xml]
[cxfJava2wsdl] - Bean factory for application context [EMAIL PROTECTED]: [EMAIL 
PROTECTED]
[cxfJava2wsdl] - Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is 
not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
[cxfJava2wsdl] - Bean 'cxf' is not eligible for getting processed by all 
BeanPostProcessors (for example: not eligible for auto-proxying)
[cxfJava2wsdl] - Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is 
not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
[cxfJava2wsdl] - Pre-instantiating singletons in [EMAIL PROTECTED]: defining 
beans 
[cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.management.jmx.InstrumentationManagerImpl,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder];
 root of factory hierarchy
[cxfJava2wsdl] Error : 
org.apache.cxf.service.factory.ServiceConstructionException
[cxfJava2wsdl] Error : 
org.apache.cxf.service.factory.ServiceConstructionException
BUILD SUCCESSFUL

Note that:
* No information is given about the cause of the ServiceConstructionException, 
so I don't have any chance to find my problem
* Despite not generating any wsdl, I'm getting BUILD SUCCESSFUL. I would have 
expected a build failure.
* the task is telling me lot's of internal technical details that I am not 
interested in at all.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to