You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by asookazian2 <as...@gmail.com> on 2014/05/28 01:02:55 UTC

CXF regenerating a WSDL

I have an existing WAR mega-bundle (WAB).  I run the following cmds:

update 123
refresh 123

I refresh the WSDL page in my browser but I notice that the change I'm
expecting is not there.

I halt then start karaf, then refresh the WSDL and the changes have been
affected.

When does CXF/karaf regenerate the WSDL?  Must I bounce karaf?  thx.



--
View this message in context: http://karaf.922171.n3.nabble.com/CXF-regenerating-a-WSDL-tp4033295.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: CXF regenerating a WSDL

Posted by Scott Carr <ks...@gmail.com>.
Are you putting the wab in the deploy folder, or pulling it from Maven Repo?

CXF updates as soon as it sees the bundle update.  I was just doing this 
today.  The issue I have seen is that due to maven caching, you 
sometimes pull from local cache instead of updating from your repo.

On 05/27/2014 06:02 PM, asookazian2 wrote:
> I have an existing WAR mega-bundle (WAB).  I run the following cmds:
>
> update 123
> refresh 123
>
> I refresh the WSDL page in my browser but I notice that the change I'm
> expecting is not there.
>
> I halt then start karaf, then refresh the WSDL and the changes have been
> affected.
>
> When does CXF/karaf regenerate the WSDL?  Must I bounce karaf?  thx.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/CXF-regenerating-a-WSDL-tp4033295.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


Re: CXF regenerating a WSDL

Posted by asookazian2 <as...@gmail.com>.
When I deploy a WAB (mega-bundle WAR) to karaf which has a SOAP web service
endpoint defined with the appropriate annotations like @WebService,
@WebMethod, @WebResult, etc. where is the WSDL stored in karaf file system?

e.g. I navigate to: http://localhost:8181/ws/MyManagerWS?wsdl

Where is that file being loaded from?  Reason I ask is b/c I have a WSDL
that is being generated by (presumably) CXF 2.7.10 in karaf during
installation of bundle or startup of karaf and I'm also generating my own
WSDL using cxf-java2ws-plugin by maven (that is subsequently being
converting to Java classes using cxf-codegen-plugin in maven) and there are
differences in the two resulting WSDL files which is apparently causing a
JAXB UnmarshalException and it's very difficult to troubleshoot/fix this.

How is the WSDL generated by CXF in karaf and what config does it use???



--
View this message in context: http://karaf.922171.n3.nabble.com/CXF-regenerating-a-WSDL-tp4033295p4033316.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: CXF regenerating a WSDL

Posted by Achim Nierbeck <bc...@googlemail.com>.
The update only updates the bundle, leaving bundles connected to the "old"
bundle still intact.
So actually you should not only refresh 123, which only does the resolving
of bundle 123, you should
also do a refresh on the "importing" bundle, at this point the cxf-core
bundle, cause this one didn't get the "news" about a bundle update.

Same applies to camel, in case you update bundles containing camel routes
you need to refresh / re-wire the camel bundle to the newly available camel
routes.

regards, Achim



2014-05-28 1:43 GMT+02:00 Scott Carr <ks...@gmail.com>:

> Try 'update 123' instead.  I believe refresh just refreshes configuration,
> I don't think it touches updated bundles.
>
>
> On 05/27/2014 06:02 PM, asookazian2 wrote:
>
>> I have an existing WAR mega-bundle (WAB).  I run the following cmds:
>>
>> update 123
>> refresh 123
>>
>> I refresh the WSDL page in my browser but I notice that the change I'm
>> expecting is not there.
>>
>> I halt then start karaf, then refresh the WSDL and the changes have been
>> affected.
>>
>> When does CXF/karaf regenerate the WSDL?  Must I bounce karaf?  thx.
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.
>> com/CXF-regenerating-a-WSDL-tp4033295.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: CXF regenerating a WSDL

Posted by Scott Carr <ks...@gmail.com>.
Try 'update 123' instead.  I believe refresh just refreshes 
configuration, I don't think it touches updated bundles.

On 05/27/2014 06:02 PM, asookazian2 wrote:
> I have an existing WAR mega-bundle (WAB).  I run the following cmds:
>
> update 123
> refresh 123
>
> I refresh the WSDL page in my browser but I notice that the change I'm
> expecting is not there.
>
> I halt then start karaf, then refresh the WSDL and the changes have been
> affected.
>
> When does CXF/karaf regenerate the WSDL?  Must I bounce karaf?  thx.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/CXF-regenerating-a-WSDL-tp4033295.html
> Sent from the Karaf - User mailing list archive at Nabble.com.