You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2009/03/19 08:56:42 UTC

[jira] Created: (CAMEL-1466) Wsdl file not find by cxf or camel-cxf endpoint in OSGI server

Wsdl file not find by cxf or camel-cxf endpoint in OSGI server
--------------------------------------------------------------

                 Key: CAMEL-1466
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1466
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-cxf
    Affects Versions: 2.0-M1
         Environment: Camel 2.0-SNAPSHOT + ServiceMix 4
            Reporter: Charles Moulliard


I have created two bundles :  
- one for the files generated by wsdl2java of CXF = bundle reportingincident.service (= bundle A)
- and the other for my camel-context using these files = bundle reportingincident.camel (= bundle B)

In the bundle A, I have created a directory under META-INF called wsdl where my reporting_incident.wsdl file is and exported the package (in this case, the wsdl file) using the syntax : <Export-Package>META-INF.wsdl</Export-Package>

The bundle B imports the package META-INF.wsdl using the following syntax
<Import-Package>META-INF.wsdl</Import-Package>

Unfortunately, when Camel-cxf endpoint and CXF are created and started during the load of the camel-context, Cxf claims that it does not find the file under c:/xxxx/vvvv/apache-servicemix-kernet-1.1.0-SNAPSHOT/bin/reporting_incident.wsdl

According to the documentation of camel-cxf endpoint, the wsdl file defined for the parameter wsdlUrl is loaded through the classpath. 

http://www.nabble.com/forum/ViewPost.jtp?post=22582759&framed=y

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


[jira] Commented: (CAMEL-1466) Wsdl file not find by cxf or camel-cxf endpoint in OSGI server

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51873#action_51873 ] 

Claus Ibsen commented on CAMEL-1466:
------------------------------------

Charles is this still an issue or can we close it?

> Wsdl file not find by cxf or camel-cxf endpoint in OSGI server
> --------------------------------------------------------------
>
>                 Key: CAMEL-1466
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1466
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.0-M1
>         Environment: Camel 2.0-SNAPSHOT + ServiceMix 4
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>
> I have created two bundles :  
> - one for the files generated by wsdl2java of CXF = bundle reportingincident.service (= bundle A)
> - and the other for my camel-context using these files = bundle reportingincident.camel (= bundle B)
> In the bundle A, I have created a directory under META-INF called wsdl where my reporting_incident.wsdl file is and exported the package (in this case, the wsdl file) using the syntax : <Export-Package>META-INF.wsdl</Export-Package>
> The bundle B imports the package META-INF.wsdl using the following syntax
> <Import-Package>META-INF.wsdl</Import-Package>
> Unfortunately, when Camel-cxf endpoint and CXF are created and started during the load of the camel-context, Cxf claims that it does not find the file under c:/xxxx/vvvv/apache-servicemix-kernet-1.1.0-SNAPSHOT/bin/reporting_incident.wsdl
> According to the documentation of camel-cxf endpoint, the wsdl file defined for the parameter wsdlUrl is loaded through the classpath. 
> http://www.nabble.com/forum/ViewPost.jtp?post=22582759&framed=y

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


[jira] Assigned: (CAMEL-1466) Wsdl file not find by cxf or camel-cxf endpoint in OSGI server

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-1466:
-----------------------------------

    Assignee: Willem Jiang

> Wsdl file not find by cxf or camel-cxf endpoint in OSGI server
> --------------------------------------------------------------
>
>                 Key: CAMEL-1466
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1466
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.0-M1
>         Environment: Camel 2.0-SNAPSHOT + ServiceMix 4
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>
> I have created two bundles :  
> - one for the files generated by wsdl2java of CXF = bundle reportingincident.service (= bundle A)
> - and the other for my camel-context using these files = bundle reportingincident.camel (= bundle B)
> In the bundle A, I have created a directory under META-INF called wsdl where my reporting_incident.wsdl file is and exported the package (in this case, the wsdl file) using the syntax : <Export-Package>META-INF.wsdl</Export-Package>
> The bundle B imports the package META-INF.wsdl using the following syntax
> <Import-Package>META-INF.wsdl</Import-Package>
> Unfortunately, when Camel-cxf endpoint and CXF are created and started during the load of the camel-context, Cxf claims that it does not find the file under c:/xxxx/vvvv/apache-servicemix-kernet-1.1.0-SNAPSHOT/bin/reporting_incident.wsdl
> According to the documentation of camel-cxf endpoint, the wsdl file defined for the parameter wsdlUrl is loaded through the classpath. 
> http://www.nabble.com/forum/ViewPost.jtp?post=22582759&framed=y

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


[jira] Commented: (CAMEL-1466) Wsdl file not find by cxf or camel-cxf endpoint in OSGI server

Posted by "Stefan Weber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53592#action_53592 ] 

Stefan Weber commented on CAMEL-1466:
-------------------------------------

This maybe help to bypass this problem:
http://pastebin.com/f4a8c27f4


> Wsdl file not find by cxf or camel-cxf endpoint in OSGI server
> --------------------------------------------------------------
>
>                 Key: CAMEL-1466
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1466
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.0-M1
>         Environment: Camel 2.0-SNAPSHOT + ServiceMix 4
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>
> I have created two bundles :  
> - one for the files generated by wsdl2java of CXF = bundle reportingincident.service (= bundle A)
> - and the other for my camel-context using these files = bundle reportingincident.camel (= bundle B)
> In the bundle A, I have created a directory under META-INF called wsdl where my reporting_incident.wsdl file is and exported the package (in this case, the wsdl file) using the syntax : <Export-Package>META-INF.wsdl</Export-Package>
> The bundle B imports the package META-INF.wsdl using the following syntax
> <Import-Package>META-INF.wsdl</Import-Package>
> Unfortunately, when Camel-cxf endpoint and CXF are created and started during the load of the camel-context, Cxf claims that it does not find the file under c:/xxxx/vvvv/apache-servicemix-kernet-1.1.0-SNAPSHOT/bin/reporting_incident.wsdl
> According to the documentation of camel-cxf endpoint, the wsdl file defined for the parameter wsdlUrl is loaded through the classpath. 
> http://www.nabble.com/forum/ViewPost.jtp?post=22582759&framed=y

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


[jira] Commented: (CAMEL-1466) Wsdl file not find by cxf or camel-cxf endpoint in OSGI server

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51887#action_51887 ] 

Charles Moulliard commented on CAMEL-1466:
------------------------------------------

>From my point of view, this ticket must not be closed. There is a classloading issue (specific to OSGI) that must be solved.

> Wsdl file not find by cxf or camel-cxf endpoint in OSGI server
> --------------------------------------------------------------
>
>                 Key: CAMEL-1466
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1466
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.0-M1
>         Environment: Camel 2.0-SNAPSHOT + ServiceMix 4
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>
> I have created two bundles :  
> - one for the files generated by wsdl2java of CXF = bundle reportingincident.service (= bundle A)
> - and the other for my camel-context using these files = bundle reportingincident.camel (= bundle B)
> In the bundle A, I have created a directory under META-INF called wsdl where my reporting_incident.wsdl file is and exported the package (in this case, the wsdl file) using the syntax : <Export-Package>META-INF.wsdl</Export-Package>
> The bundle B imports the package META-INF.wsdl using the following syntax
> <Import-Package>META-INF.wsdl</Import-Package>
> Unfortunately, when Camel-cxf endpoint and CXF are created and started during the load of the camel-context, Cxf claims that it does not find the file under c:/xxxx/vvvv/apache-servicemix-kernet-1.1.0-SNAPSHOT/bin/reporting_incident.wsdl
> According to the documentation of camel-cxf endpoint, the wsdl file defined for the parameter wsdlUrl is loaded through the classpath. 
> http://www.nabble.com/forum/ViewPost.jtp?post=22582759&framed=y

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


[jira] Resolved: (CAMEL-1466) Wsdl file not find by cxf or camel-cxf endpoint in OSGI server

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-1466.
---------------------------------

    Resolution: Won't Fix

> Wsdl file not find by cxf or camel-cxf endpoint in OSGI server
> --------------------------------------------------------------
>
>                 Key: CAMEL-1466
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1466
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.0-M1
>         Environment: Camel 2.0-SNAPSHOT + ServiceMix 4
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>
> I have created two bundles :  
> - one for the files generated by wsdl2java of CXF = bundle reportingincident.service (= bundle A)
> - and the other for my camel-context using these files = bundle reportingincident.camel (= bundle B)
> In the bundle A, I have created a directory under META-INF called wsdl where my reporting_incident.wsdl file is and exported the package (in this case, the wsdl file) using the syntax : <Export-Package>META-INF.wsdl</Export-Package>
> The bundle B imports the package META-INF.wsdl using the following syntax
> <Import-Package>META-INF.wsdl</Import-Package>
> Unfortunately, when Camel-cxf endpoint and CXF are created and started during the load of the camel-context, Cxf claims that it does not find the file under c:/xxxx/vvvv/apache-servicemix-kernet-1.1.0-SNAPSHOT/bin/reporting_incident.wsdl
> According to the documentation of camel-cxf endpoint, the wsdl file defined for the parameter wsdlUrl is loaded through the classpath. 
> http://www.nabble.com/forum/ViewPost.jtp?post=22582759&framed=y

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


[jira] Commented: (CAMEL-1466) Wsdl file not find by cxf or camel-cxf endpoint in OSGI server

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54044#action_54044 ] 

Willem Jiang commented on CAMEL-1466:
-------------------------------------

@Charles

I just tested if you add the "classpath:" before the wsdl url, CXF will try to use the thread context classloader to load the wsdl file.
And it will work for you case :)


> Wsdl file not find by cxf or camel-cxf endpoint in OSGI server
> --------------------------------------------------------------
>
>                 Key: CAMEL-1466
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1466
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.0-M1
>         Environment: Camel 2.0-SNAPSHOT + ServiceMix 4
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>
> I have created two bundles :  
> - one for the files generated by wsdl2java of CXF = bundle reportingincident.service (= bundle A)
> - and the other for my camel-context using these files = bundle reportingincident.camel (= bundle B)
> In the bundle A, I have created a directory under META-INF called wsdl where my reporting_incident.wsdl file is and exported the package (in this case, the wsdl file) using the syntax : <Export-Package>META-INF.wsdl</Export-Package>
> The bundle B imports the package META-INF.wsdl using the following syntax
> <Import-Package>META-INF.wsdl</Import-Package>
> Unfortunately, when Camel-cxf endpoint and CXF are created and started during the load of the camel-context, Cxf claims that it does not find the file under c:/xxxx/vvvv/apache-servicemix-kernet-1.1.0-SNAPSHOT/bin/reporting_incident.wsdl
> According to the documentation of camel-cxf endpoint, the wsdl file defined for the parameter wsdlUrl is loaded through the classpath. 
> http://www.nabble.com/forum/ViewPost.jtp?post=22582759&framed=y

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