Check out the thread here:

http://cwiki.apache.org/SM/discussion-forums.html#nabble-td25641478


On 10/8/09 10:39 AM, "jcamus" <[email protected]> wrote:

> 
> 
> 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\versi
> on_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.a
> pplyPropertyValues(AbstractAutowireCapableBeanFactory.java:12
> 78)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.p
> opulateBean(AbstractAutowireCapableBeanFactory.java:1010)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.d
> oCreateBean(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.c
> reateBean(AbstractAutowireCapableBeanFactory.java:380)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abst
> ractBeanFactory.java:264)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSing
> leton(DefaultSingletonBeanRegistry.java:221)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstra
> ctBeanFactory.java:261)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstract
> BeanFactory.java:185)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstract
> BeanFactory.java:164)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveR
> eference(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(AbstractP
> ropertyAccessor.java:104)
>         at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractP
> ropertyAccessor.java:59)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.a
> pplyPropertyValues(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-tp2580322
> 4p25803224.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 



-- 
Mark Ford
MIT Lincoln Laboratory
244 Wood Street
Lexington MA 02420
(781) 981-1843

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to