You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ryan Moquin <fr...@gmail.com> on 2008/06/19 06:32:55 UTC

Question about upgrading from CXF 2.0.1 to CXF 2.0.7

Hello,

I'm upgrading to a new version of servicemix and therefore upgrading to use
CXF 2.0.7 since that's what servicemix was tested with.  For some reason
though, I'm getting the follow message during my build when CXF attempts to
process one of my WSDLs:

java.lang.RuntimeException: Header message not defined in service model.

Can someone tell me what that means specifically?  I didn't get this error
in 2.0.1.  Also, if I look at another WSDL I have that uses headers, I don't
see any difference, yet that one processed correctly through 2.0.7.  I'm
hoping someone can get me on the correct track to resolve this problem.

Thanks!!

Re: Question about upgrading from CXF 2.0.1 to CXF 2.0.7

Posted by Ryan Moquin <fr...@gmail.com>.
Oh, great thanks!  I'm in the middle of some deployment issues so I didn't
get to write it up yet.  Not a problem!

On Sat, Jun 21, 2008 at 11:42 AM, Glen Mazza <gl...@verizon.net> wrote:

> Fixed and committed.  It now says this: "Problem with WSDL: soap:header
> element is referring to an undefined wsdl:message element."  Sorry for
> the trouble.
>
> Glen
>
>
> 2008-06-21 Ryan Moquin wrote:
> > Definitely.  It sounded to me like a more general error that could be
> made
> > more specific.  I'll file a bug for it for you to address when you have
> some
> > time.  Just glad I figured it out. :)
> >
> > On Thu, Jun 19, 2008 at 8:45 PM, Glen Mazza <gl...@verizon.net>
> wrote:
> >
> > > Also, perhaps we should change the text of the error message to make it
> > > more obvious what the problem was.
> > >
> > > "wsdl:message referred to by soap:header could not be found" might save
> > > people a lot of time in troubleshooting.
> > >
> > > Glen
> > >
> > > >> java.lang.RuntimeException: Header message not defined in service
> > > > >> model.
> > >
> > >
> > >
> > > 2008-06-19 Daniel Kulp wrote:
> > > > On Jun 19, 2008, at 10:59 AM, Ryan Moquin wrote:
> > > >
> > > > > Never mind.. I figured out the problem finally.  If you have a
> > > > > soap:header
> > > > > element referring to a message that doesn't exist, you apparently
> > > > > get this
> > > > > message... which is so hard to find due to the message, but due to
> > > > > the fact
> > > > > that I haven't found any tools that will catch this problem.. I
> just
> > > > > happened to figure out the problem by trial and error....
> > > >
> > > > Did our wsdl validator command line tool not catch it?   If not,
> > > > please log a bug.   That would be a good one to catch.
> > > >
> > > > Dan
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > > On Thu, Jun 19, 2008 at 12:32 AM, Ryan Moquin <
> fragility2.0@gmail.com>
> > > > > wrote:
> > > > >
> > > > >> Hello,
> > > > >>
> > > > >> I'm upgrading to a new version of servicemix and therefore
> > > > >> upgrading to use
> > > > >> CXF 2.0.7 since that's what servicemix was tested with.  For some
> > > > >> reason
> > > > >> though, I'm getting the follow message during my build when CXF
> > > > >> attempts to
> > > > >> process one of my WSDLs:
> > > > >>
> > > > >> java.lang.RuntimeException: Header message not defined in service
> > > > >> model.
> > > > >>
> > > > >> Can someone tell me what that means specifically?  I didn't get
> > > > >> this error
> > > > >> in 2.0.1.  Also, if I look at another WSDL I have that uses
> > > > >> headers, I
> > > > >> don't see any difference, yet that one processed correctly through
> > > > >> 2.0.7.
> > > > >> I'm hoping someone can get me on the correct track to resolve this
> > > > >> problem.
> > > > >>
> > > > >> Thanks!!
> > > > >>
> > > >
> > > > ---
> > > > Daniel Kulp
> > > > dkulp@apache.org
> > > > http://www.dankulp.com/blog
> > > >
> > > >
> > > >
> > > >
> > >
> > >
>
>

Re: Question about upgrading from CXF 2.0.1 to CXF 2.0.7

Posted by Glen Mazza <gl...@verizon.net>.
Fixed and committed.  It now says this: "Problem with WSDL: soap:header
element is referring to an undefined wsdl:message element."  Sorry for
the trouble.

Glen


2008-06-21 Ryan Moquin wrote:
> Definitely.  It sounded to me like a more general error that could be made
> more specific.  I'll file a bug for it for you to address when you have some
> time.  Just glad I figured it out. :)
> 
> On Thu, Jun 19, 2008 at 8:45 PM, Glen Mazza <gl...@verizon.net> wrote:
> 
> > Also, perhaps we should change the text of the error message to make it
> > more obvious what the problem was.
> >
> > "wsdl:message referred to by soap:header could not be found" might save
> > people a lot of time in troubleshooting.
> >
> > Glen
> >
> > >> java.lang.RuntimeException: Header message not defined in service
> > > >> model.
> >
> >
> >
> > 2008-06-19 Daniel Kulp wrote:
> > > On Jun 19, 2008, at 10:59 AM, Ryan Moquin wrote:
> > >
> > > > Never mind.. I figured out the problem finally.  If you have a
> > > > soap:header
> > > > element referring to a message that doesn't exist, you apparently
> > > > get this
> > > > message... which is so hard to find due to the message, but due to
> > > > the fact
> > > > that I haven't found any tools that will catch this problem.. I just
> > > > happened to figure out the problem by trial and error....
> > >
> > > Did our wsdl validator command line tool not catch it?   If not,
> > > please log a bug.   That would be a good one to catch.
> > >
> > > Dan
> > >
> > >
> > >
> > > >
> > > >
> > > > On Thu, Jun 19, 2008 at 12:32 AM, Ryan Moquin <fr...@gmail.com>
> > > > wrote:
> > > >
> > > >> Hello,
> > > >>
> > > >> I'm upgrading to a new version of servicemix and therefore
> > > >> upgrading to use
> > > >> CXF 2.0.7 since that's what servicemix was tested with.  For some
> > > >> reason
> > > >> though, I'm getting the follow message during my build when CXF
> > > >> attempts to
> > > >> process one of my WSDLs:
> > > >>
> > > >> java.lang.RuntimeException: Header message not defined in service
> > > >> model.
> > > >>
> > > >> Can someone tell me what that means specifically?  I didn't get
> > > >> this error
> > > >> in 2.0.1.  Also, if I look at another WSDL I have that uses
> > > >> headers, I
> > > >> don't see any difference, yet that one processed correctly through
> > > >> 2.0.7.
> > > >> I'm hoping someone can get me on the correct track to resolve this
> > > >> problem.
> > > >>
> > > >> Thanks!!
> > > >>
> > >
> > > ---
> > > Daniel Kulp
> > > dkulp@apache.org
> > > http://www.dankulp.com/blog
> > >
> > >
> > >
> > >
> >
> >


Re: Question about upgrading from CXF 2.0.1 to CXF 2.0.7

Posted by Ryan Moquin <fr...@gmail.com>.
Definitely.  It sounded to me like a more general error that could be made
more specific.  I'll file a bug for it for you to address when you have some
time.  Just glad I figured it out. :)

On Thu, Jun 19, 2008 at 8:45 PM, Glen Mazza <gl...@verizon.net> wrote:

> Also, perhaps we should change the text of the error message to make it
> more obvious what the problem was.
>
> "wsdl:message referred to by soap:header could not be found" might save
> people a lot of time in troubleshooting.
>
> Glen
>
> >> java.lang.RuntimeException: Header message not defined in service
> > >> model.
>
>
>
> 2008-06-19 Daniel Kulp wrote:
> > On Jun 19, 2008, at 10:59 AM, Ryan Moquin wrote:
> >
> > > Never mind.. I figured out the problem finally.  If you have a
> > > soap:header
> > > element referring to a message that doesn't exist, you apparently
> > > get this
> > > message... which is so hard to find due to the message, but due to
> > > the fact
> > > that I haven't found any tools that will catch this problem.. I just
> > > happened to figure out the problem by trial and error....
> >
> > Did our wsdl validator command line tool not catch it?   If not,
> > please log a bug.   That would be a good one to catch.
> >
> > Dan
> >
> >
> >
> > >
> > >
> > > On Thu, Jun 19, 2008 at 12:32 AM, Ryan Moquin <fr...@gmail.com>
> > > wrote:
> > >
> > >> Hello,
> > >>
> > >> I'm upgrading to a new version of servicemix and therefore
> > >> upgrading to use
> > >> CXF 2.0.7 since that's what servicemix was tested with.  For some
> > >> reason
> > >> though, I'm getting the follow message during my build when CXF
> > >> attempts to
> > >> process one of my WSDLs:
> > >>
> > >> java.lang.RuntimeException: Header message not defined in service
> > >> model.
> > >>
> > >> Can someone tell me what that means specifically?  I didn't get
> > >> this error
> > >> in 2.0.1.  Also, if I look at another WSDL I have that uses
> > >> headers, I
> > >> don't see any difference, yet that one processed correctly through
> > >> 2.0.7.
> > >> I'm hoping someone can get me on the correct track to resolve this
> > >> problem.
> > >>
> > >> Thanks!!
> > >>
> >
> > ---
> > Daniel Kulp
> > dkulp@apache.org
> > http://www.dankulp.com/blog
> >
> >
> >
> >
>
>

Re: Question about upgrading from CXF 2.0.1 to CXF 2.0.7

Posted by Glen Mazza <gl...@verizon.net>.
Also, perhaps we should change the text of the error message to make it
more obvious what the problem was.  

"wsdl:message referred to by soap:header could not be found" might save
people a lot of time in troubleshooting.

Glen

>> java.lang.RuntimeException: Header message not defined in service  
> >> model.



2008-06-19 Daniel Kulp wrote:
> On Jun 19, 2008, at 10:59 AM, Ryan Moquin wrote:
> 
> > Never mind.. I figured out the problem finally.  If you have a  
> > soap:header
> > element referring to a message that doesn't exist, you apparently  
> > get this
> > message... which is so hard to find due to the message, but due to  
> > the fact
> > that I haven't found any tools that will catch this problem.. I just
> > happened to figure out the problem by trial and error....
> 
> Did our wsdl validator command line tool not catch it?   If not,  
> please log a bug.   That would be a good one to catch.
> 
> Dan
> 
> 
> 
> >
> >
> > On Thu, Jun 19, 2008 at 12:32 AM, Ryan Moquin <fr...@gmail.com>
> > wrote:
> >
> >> Hello,
> >>
> >> I'm upgrading to a new version of servicemix and therefore  
> >> upgrading to use
> >> CXF 2.0.7 since that's what servicemix was tested with.  For some  
> >> reason
> >> though, I'm getting the follow message during my build when CXF  
> >> attempts to
> >> process one of my WSDLs:
> >>
> >> java.lang.RuntimeException: Header message not defined in service  
> >> model.
> >>
> >> Can someone tell me what that means specifically?  I didn't get  
> >> this error
> >> in 2.0.1.  Also, if I look at another WSDL I have that uses  
> >> headers, I
> >> don't see any difference, yet that one processed correctly through  
> >> 2.0.7.
> >> I'm hoping someone can get me on the correct track to resolve this  
> >> problem.
> >>
> >> Thanks!!
> >>
> 
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 
> 
> 


Re: Question about upgrading from CXF 2.0.1 to CXF 2.0.7

Posted by Daniel Kulp <dk...@apache.org>.
On Jun 19, 2008, at 10:59 AM, Ryan Moquin wrote:

> Never mind.. I figured out the problem finally.  If you have a  
> soap:header
> element referring to a message that doesn't exist, you apparently  
> get this
> message... which is so hard to find due to the message, but due to  
> the fact
> that I haven't found any tools that will catch this problem.. I just
> happened to figure out the problem by trial and error....

Did our wsdl validator command line tool not catch it?   If not,  
please log a bug.   That would be a good one to catch.

Dan



>
>
> On Thu, Jun 19, 2008 at 12:32 AM, Ryan Moquin <fr...@gmail.com>
> wrote:
>
>> Hello,
>>
>> I'm upgrading to a new version of servicemix and therefore  
>> upgrading to use
>> CXF 2.0.7 since that's what servicemix was tested with.  For some  
>> reason
>> though, I'm getting the follow message during my build when CXF  
>> attempts to
>> process one of my WSDLs:
>>
>> java.lang.RuntimeException: Header message not defined in service  
>> model.
>>
>> Can someone tell me what that means specifically?  I didn't get  
>> this error
>> in 2.0.1.  Also, if I look at another WSDL I have that uses  
>> headers, I
>> don't see any difference, yet that one processed correctly through  
>> 2.0.7.
>> I'm hoping someone can get me on the correct track to resolve this  
>> problem.
>>
>> Thanks!!
>>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog





Re: Question about upgrading from CXF 2.0.1 to CXF 2.0.7

Posted by Ryan Moquin <fr...@gmail.com>.
Never mind.. I figured out the problem finally.  If you have a soap:header
element referring to a message that doesn't exist, you apparently get this
message... which is so hard to find due to the message, but due to the fact
that I haven't found any tools that will catch this problem.. I just
happened to figure out the problem by trial and error....

On Thu, Jun 19, 2008 at 12:32 AM, Ryan Moquin <fr...@gmail.com>
wrote:

> Hello,
>
> I'm upgrading to a new version of servicemix and therefore upgrading to use
> CXF 2.0.7 since that's what servicemix was tested with.  For some reason
> though, I'm getting the follow message during my build when CXF attempts to
> process one of my WSDLs:
>
> java.lang.RuntimeException: Header message not defined in service model.
>
> Can someone tell me what that means specifically?  I didn't get this error
> in 2.0.1.  Also, if I look at another WSDL I have that uses headers, I
> don't see any difference, yet that one processed correctly through 2.0.7.
> I'm hoping someone can get me on the correct track to resolve this problem.
>
> Thanks!!
>