View Full Version : Ejb interface problem on websphere 4
daningaddr
Oct 5th, 2004, 02:54 PM
Hi,
I am new to Spring. i am using Spring to manage EJB connection. it is working fine on the WSAD environment. but when I deploy the ejb to websphere, I got this error message,
Error 500: Error creating bean with name 'SQLAction' defined in file [C:\WINNT\system32\beans.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptions Exception: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.net.gcms.ejb._SQLRunnerHome_Stub] to required type [com.net.gcms.ejb.SQLRunnerHome] for property 'service']
Any idea?
Thank you in advance.
Daning
daningaddr
Oct 5th, 2004, 04:05 PM
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.net.gcms.ejb._SQLRunnerHome_Stub] to required type [com.net.gcms.ejb.SQLRunnerHome] for property 'service'
at org.springframework.beans.BeanWrapperImpl.doTypeCo nversionIfNecessary(BeanWrapperImpl.java:905)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:673)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:588)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:720)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:747)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:736)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:797)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:637)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:271)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:208)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:136)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:230)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationContext.java:83)
gpoirier
Oct 5th, 2004, 11:35 PM
If com.net.gcms.ejb._SQLRunnerHome_Stub does implement com.net.gcms.ejb.SQLRunnerHome, then my guess would be on a ClassLoader issue. That somehow, com.net.gcms.ejb.SQLRunnerHome is available twice on your classpaths, and that spring has a different jar than your EJB uses.
daningaddr
Oct 8th, 2004, 07:33 PM
gpoirier, thank you for your help.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.