You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Edell Nolan (JIRA)" <ji...@apache.org> on 2008/10/07 12:30:52 UTC

[jira] Created: (SMX4-134) Bundle Resource loader fails to find extra config files specified

Bundle Resource loader fails to find extra config files specified
-----------------------------------------------------------------

                 Key: SMX4-134
                 URL: https://issues.apache.org/activemq/browse/SMX4-134
             Project: ServiceMix 4
          Issue Type: Bug
    Affects Versions: 4.0-m2
            Reporter: Edell Nolan


If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 

	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
            endpoint="WarehouseEndpointSoapJMS" 
            useJBIWrapper="false"
            wsdl="classpath:warehouse-soapjms.wsdl"            
            interfaceName="ware:Warehouse"
            busCfg="classpath:spring-jms.xml">

this file is located in the same location as the xbean.xml file.

Output of deployment :

07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
sources
WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.



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


[jira] Updated: (SM-1656) When using bufCfg, the file is not found correctly from a JBI SU deployed in Smx4

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

Guillaume Nodet updated SM-1656:
--------------------------------

    Summary: When using bufCfg, the file is not found correctly from a JBI SU deployed in Smx4  (was: Bundle Resource loader fails to find extra config files specified)

> When using bufCfg, the file is not found correctly from a JBI SU deployed in Smx4
> ---------------------------------------------------------------------------------
>
>                 Key: SM-1656
>                 URL: https://issues.apache.org/activemq/browse/SM-1656
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: servicemix-cxf-bc-2008.01
>            Reporter: Edell Nolan
>             Fix For: servicemix-cxf-bc-2008.02
>
>         Attachments: sm-134.patch
>
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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


[jira] Updated: (SM-1656) Bundle Resource loader fails to find extra config files specified

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

Guillaume Nodet updated SM-1656:
--------------------------------

    Fix Version/s: servicemix-cxf-bc-2008.02

> Bundle Resource loader fails to find extra config files specified
> -----------------------------------------------------------------
>
>                 Key: SM-1656
>                 URL: https://issues.apache.org/activemq/browse/SM-1656
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: servicemix-cxf-bc-2008.01
>            Reporter: Edell Nolan
>             Fix For: servicemix-cxf-bc-2008.02
>
>         Attachments: sm-134.patch
>
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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


[jira] Updated: (SMX4-134) Bundle Resource loader fails to find extra config files specified

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

Edell Nolan updated SMX4-134:
-----------------------------


adding the cxf-bundle fixes the issue as it can now see all the cxf classes. 

I attached the pom. 

thanks, Edell.

> Bundle Resource loader fails to find extra config files specified
> -----------------------------------------------------------------
>
>                 Key: SMX4-134
>                 URL: https://issues.apache.org/activemq/browse/SMX4-134
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m2
>            Reporter: Edell Nolan
>         Attachments: sm-134.patch
>
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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


[jira] Resolved: (SM-1656) When using bufCfg, the file is not found correctly from a JBI SU deployed in Smx4

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

Guillaume Nodet resolved SM-1656.
---------------------------------

      Assignee: Guillaume Nodet
    Resolution: Fixed

https://svn.apache.org/viewvc?view=rev&revision=707442

> When using bufCfg, the file is not found correctly from a JBI SU deployed in Smx4
> ---------------------------------------------------------------------------------
>
>                 Key: SM-1656
>                 URL: https://issues.apache.org/activemq/browse/SM-1656
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: servicemix-cxf-bc-2008.01
>            Reporter: Edell Nolan
>            Assignee: Guillaume Nodet
>             Fix For: servicemix-cxf-bc-2008.02
>
>         Attachments: sm-134.patch
>
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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


[jira] Commented: (SMX4-134) Bundle Resource loader fails to find extra config files specified

Posted by "Edell Nolan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46681#action_46681 ] 

Edell Nolan commented on SMX4-134:
----------------------------------

When I try to deploy one of the zip files to smx4 I get an error indicating that it cannot find the file - this error is thrown from CXF but it's not the real error.  

I have the following in my xbean.xml file 

<cxfbc:provider service="ware:WarehouseServiceSoapJMS"

            endpoint="WarehouseEndpointSoapJMS" 

            useJBIWrapper="false"

            wsdl="classpath:warehouse-soapjms.wsdl"            

            interfaceName="ware:Warehouse"

            busCfg="/spring-jms.xml">                                                

</cxfbc:provider>

 
In my spring-jms.xml file I have  

<jms:conduit name="{http://logisticx.demo.fuse.iona.com/warehouseService/}WarehouseEndpointSoapJMS.jms-conduit">

                        <jms:clientConfig clientReceiveTimeout="40000" messageTimeToLive="40000" />

</jms:conduit> 

So the error on deployment I get is  

WARNING: Could not find the configuration file /spring-jms.xml on the classpath.
 

But is covered up by the code in CXF 

org.apache.cxf.bus.spring.SpringBusFactory

private BusApplicationContext createApplicationContext(String cfgFiles[], boolean includeDefaults) {

        try {      

            return new BusApplicationContext(cfgFiles, includeDefaults, context);

        } catch (BeansException ex) {

            ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();

            if (contextLoader != BusApplicationContext.class.getClassLoader()) {

                Thread.currentThread().setContextClassLoader(

                    BusApplicationContext.class.getClassLoader());

                try {

                    return new BusApplicationContext(cfgFiles, includeDefaults, context);        

                } finally {

                    Thread.currentThread().setContextClassLoader(contextLoader);

                }

            } else {

                throw ex;

            }

        }

    }


Basically when it does get an error it changes the classloaders - so it gets changed from a jarFileClassloader so it will never find the file. 

I have debugged the code and the real error seems to be that it cannot convert from  

org.apache.cxf.bus.spring.BusApplicationContextResourceResolver to org.apache.cxf.resource.ResourceResolver 

So this looks like they are being loaded by different classloaders. 


> Bundle Resource loader fails to find extra config files specified
> -----------------------------------------------------------------
>
>                 Key: SMX4-134
>                 URL: https://issues.apache.org/activemq/browse/SMX4-134
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m2
>            Reporter: Edell Nolan
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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


[jira] Moved: (SM-1656) Bundle Resource loader fails to find extra config files specified

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

Guillaume Nodet moved SMX4-134 to SM-1656:
------------------------------------------

              Project: ServiceMix  (was: ServiceMix 4)
                  Key: SM-1656  (was: SMX4-134)
    Affects Version/s: servicemix-cxf-bc-2008.01
                           (was: 4.0-m2)

> Bundle Resource loader fails to find extra config files specified
> -----------------------------------------------------------------
>
>                 Key: SM-1656
>                 URL: https://issues.apache.org/activemq/browse/SM-1656
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: servicemix-cxf-bc-2008.01
>            Reporter: Edell Nolan
>         Attachments: sm-134.patch
>
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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


[jira] Updated: (SMX4-134) Bundle Resource loader fails to find extra config files specified

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

Edell Nolan updated SMX4-134:
-----------------------------

    Attachment: sm-134.patch

> Bundle Resource loader fails to find extra config files specified
> -----------------------------------------------------------------
>
>                 Key: SMX4-134
>                 URL: https://issues.apache.org/activemq/browse/SMX4-134
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m2
>            Reporter: Edell Nolan
>         Attachments: sm-134.patch
>
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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


[jira] Commented: (SMX4-134) Bundle Resource loader fails to find extra config files specified

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46784#action_46784 ] 

Guillaume Nodet commented on SMX4-134:
--------------------------------------

Could you try the following patch on servicemix-cxf-bc ?

{code}
Index: pom.xml
===================================================================
--- pom.xml     (revision 704825)
+++ pom.xml     (working copy)
@@ -68,6 +68,7 @@
         META-INF.services.org.apache.xbean.spring.http.servicemix.apache.org.cxfbc
     </servicemix.osgi.export>
     <servicemix.osgi.bundles>
+        org.apache.cxf.cxf-bundle,
         org.springframework.bundle.spring.core,
         org.springframework.bundle.spring.beans,
         org.springframework.bundle.spring.context,
{code}

The reason may be because not all classes from cxf are available to servicemix-cxf-bc which may cause the cast from BusApplicationContextResourceResolver to ResourceResolver to fail.


> Bundle Resource loader fails to find extra config files specified
> -----------------------------------------------------------------
>
>                 Key: SMX4-134
>                 URL: https://issues.apache.org/activemq/browse/SMX4-134
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m2
>            Reporter: Edell Nolan
>
> If I attempt to deploy an SU that has config like the following - it will fail to find the spring-jms.xml file. 
> 	<cxfbc:provider service="ware:WarehouseServiceSoapJMS"
>             endpoint="WarehouseEndpointSoapJMS" 
>             useJBIWrapper="false"
>             wsdl="classpath:warehouse-soapjms.wsdl"            
>             interfaceName="ware:Warehouse"
>             busCfg="classpath:spring-jms.xml">
> this file is located in the same location as the xbean.xml file.
> Output of deployment :
> 07-Oct-2008 10:39:18 org.apache.cxf.bus.spring.BusApplicationContext getConfigRe
> sources
> WARNING: Could not find the configuration file classpath:spring-jms.xml on the classpath.

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