Announcement Announcement Module
Collapse
No announcement yet.
Ejb interface problem on websphere 4 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ejb interface problem on websphere 4

    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

  • #2
    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>(FileSystemXmlApplicationC ontext.java:83)

    Comment


    • #3
      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.

      Comment


      • #4
        gpoirier, thank you for your help.

        Comment

        Working...
        X