On Tue March 10 2009 3:10:20 pm RayKnight wrote:
> Using CXF 2.1.4 and the maven plugin for wsdl2java I add the wsdlLocation
> flag with a value of META-INF/wsdl.  This causes a BUILD ERROR with a
> java.lang.NullPointerException.  Removing the wsdlLocation flag and the
> client builds correctly.  I also tried using a value of
> META-INF/wsdl/BpsReport.wsdl which results in the same error.  Is there a
> bug in 2.1.4 that causes this?  Or am I missing something here?
>

Can you show your plugin config as well as the stack trace on the 
NullPointerException?

Thanks!
Dan

> dkulp wrote:
> > There is a wsdlLocation flag on the code generator to specify the
> > location that is spit into the code.   The two common things to stick in
> > there are:
> >
> > 1) META-INF/wsdl/.....   to resolve it from the war/classpath type thing
> >
> > 2) Some location that a catalog is then used to fully resolve.
> >
> > Dan
> >
> > On Thu March 5 2009 5:42:41 am cmoulliard wrote:
> >> Hi,
> >>
> >> I would like to know if it is possible to have local reference of the
> >> wsdl
> >> file in the SEI instead of the hard coding generated by wsdl2java using
> >> the
> >> maven plugin cxf-codegen :
> >>
> >> Here is a snapshot :
> >>
> >> @WebServiceClient(name = "ReportIncidentEndpointService",
> >>                   wsdlLocation =
> >> "file:/c:/workspace/osgi/reportincident.domain/src/main/resources/wsdl/r
> >>epo rt_incident.wsdl", targetNamespace =
> >> "http://reportincident.example.camel.apache.org";)
> >> public class ReportIncidentEndpointService extends Service {
> >>
> >>     public final static URL WSDL_LOCATION;
> >>     public final static QName SERVICE = new
> >> QName("http://reportincident.example.camel.apache.org";,
> >> "ReportIncidentEndpointService");
> >>     public final static QName ReportIncidentService = new
> >> QName("http://reportincident.example.camel.apache.org";,
> >> "ReportIncidentService");
> >>     static {
> >>         URL url = null;
> >>         try {
> >>             url = new
> >> URL("file:/c:/workspace/osgi/reportincident.domain/src/main/resources/ws
> >>dl/ report_incident.wsdl"); } catch (MalformedURLException e) {
> >>             System.err.println("Can not initialize the default wsdl from
> >> file:/c:/workspace/osgi/reportincident.domain/src/main/resources/wsdl/re
> >>por t_incident.wsdl"); // e.printStackTrace();
> >>         }
> >>         WSDL_LOCATION = url;
> >>     }
> >>
> >> Regards,
> >>
> >>
> >>
> >> -----
> >> Charles Moulliard
> >> SOA Architect
> >>
> >> My Blog :  http://cmoulliard.blogspot.com/
> >> http://cmoulliard.blogspot.com/
> >
> > --
> > Daniel Kulp
> > [email protected]
> > http://www.dankulp.com/blog

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to