Hi!
I have a problem with my SU that is using a different jar than the one used
by servicemix.
My SU needs uses hibernate3.2 and the asm-1.5.3.jar while servicemix
(cxf-se) uses asm-2.2.3.jar.
I tried to put into my xbean.xml the following configuration :

<classpath inverse="true" />

Unfortunately I have errors with the database configuration like :

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'datasource' defined in file [D:\ESB\apache-servicem
ix-3.4.0.2-fuse\data\smx\service-assemblies\servicemix-transfolio-esb-sa\version_14\sus\servicemix-cxf-se\cxf-se-fileRepository-su\.\database\appCtxDa
taSourceOracle.xml]: Error setting property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessE
xceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property
'driverClassName' threw exception; nested exception is java.l
ang.IllegalStateException: Could not load JDBC driver class [${driver}]
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:12
78)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 86 more
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property
'driverClassName' threw exception; nested exception is java.l
ang.IllegalStateException: Could not load JDBC driver class [${driver}]
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:12
75)
        ... 97 more
]]></stack-trace>
                                </msg-loc-info>
                        </exception-info>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
        <component-name>servicemix-eip</component-name>
        <component-task-result-details>
                <task-result-details>
                        <task-id>deploy</task-id>
                        <task-result>SUCCESS</task-result>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>


my database .xml config file (are stored into a database directory in the
root at the su.zip).
When I removed the <classpath inverse="true" /> from my xbean.xml this
errors disappears (but I still have the conflict with asm.jar).
It seems the inverse=true changes the way spring xml file are managed into a
directory (other than the xbean.xml directory).

How can I display the complete classpath used?
Is it a bug? 

Regards.





-- 
View this message in context: 
http://www.nabble.com/classpath-inverse%3Dtrue-not-working-correctly-tp25803224p25803224.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to