Hi tranchida,

I have added the weblogic.jar and in <servicemix_home>/lib, and I am getting
another error message:
"org.springframework.beans.TypeMismatchException: Failed to convert property
value of type [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory'"

Here is the output from 'mvn install'
===========================
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [jbi:generate-jbi-service-unit-descriptor]
[INFO] Generating jbi.xml
[INFO] Created Service Unit Analyzer
[EMAIL PROTECTED]
2008-10-28 17:23:24,095 [main           ] INFO 
ileSystemXmlApplicationContext - Refreshing org.apache.xbean
[EMAIL PROTECTED]: display name
[org.apache.xbean.spring.context.FileS
[EMAIL PROTECTED]; startup date [Tue Oct 28 17:23:24 PDT
2008]; root of context hierarchy
2008-10-28 17:23:24,174 [main           ] INFO  XBeanXmlBeanDefinitionReader  
- Loading XML bean definition
s from URL
[file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]
2008-10-28 17:23:24,549 [main           ] INFO 
ileSystemXmlApplicationContext - Bean factory for applicatio
n context
[EMAIL PROTECTED]:
org.springframework.bea
[EMAIL PROTECTED]
2008-10-28 17:23:24,564 [main           ] INFO  DefaultListableBeanFactory    
- Pre-instantiating singleton
s in
[EMAIL PROTECTED]:
defining beans [org.apache
.servicemix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.JmsProviderEndpoint,connec
tionFactory,jmsDestinationResolver,weblogicTemplate]; root of factory
hierarchy
2008-10-28 17:23:25,439 [main           ] INFO  DefaultListableBeanFactory    
- Destroying singletons in or
[EMAIL PROTECTED]:
defining beans [org.apache.servic
emix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.JmsProviderEndpoint,connectionFac
tory,jmsDestinationResolver,weblogicTemplate]; root of factory hierarchy
[WARNING] Failed to generate jbi.xml:
org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to g
enerate service unit descriptor!
org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
generate service unit descriptor!
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(Ge
nerateServiceUnitDescriptorMojo.java:206)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceU
nitDescriptorMojo.java:143)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:55
8)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExec
utor.java:499)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478
)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycle
Executor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.
java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apach
e.servicemix.jms.endpoints.JmsConsumerEndpoint' defined in URL
[file:/C:/servicemix/projects/tutorial_jms/tu
torial_jms-jms-su/src/main/resources/xbean.xml]: Error setting property
values; nested exception is org.spri
ngframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value
 of type [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for pro
perty 'connectionFactory'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of t
ype [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property
 'connectionFactory': no matching editors or conversion strategy found
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1129)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(Abstrac
tAutowireCapableBeanFactory.java:861)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractA
utowireCapableBeanFactory.java:421)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.jav
a:251)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingle
tonBeanRegistry.java:156)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:24
8)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:16
0)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(Def
aultListableBeanFactory.java:287)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext
.java:352)
        at
org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnit
Analyzer.java:90)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(Ge
nerateServiceUnitDescriptorMojo.java:185)
        ... 19 more
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value
 of type [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for pro
perty 'connectionFactory'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of t
ype [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property
 'connectionFactory': no matching editors or conversion strategy found
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.jav
a:104)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.jav
a:59)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1126)
        ... 29 more

==========================

I have tried to google and what I have found is that there may be 2 versions
of weblogic.jar in the class loader.  I have double checked and only 1
version is there.

Any helps would be greatly appreciated as I basically can't continue without
connecting to JMS.

Thanks

-- 
View this message in context: 
http://www.nabble.com/ServiceMix-3.2.2-and-JMS-queue-in-Weblogic-server-tp20159390p20218859.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to