Results 1 to 4 of 4

Thread: Ejb interface problem on websphere 4

  1. #1
    Join Date
    Oct 2004
    Posts
    3

    Default 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. #2
    Join Date
    Oct 2004
    Posts
    3

    Default

    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)

  3. #3

    Default

    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.

  4. #4
    Join Date
    Oct 2004
    Posts
    3

    Default

    gpoirier, thank you for your help.

Similar Threads

  1. Replies: 8
    Last Post: Mar 19th, 2008, 11:13 AM
  2. Replies: 0
    Last Post: Aug 16th, 2005, 11:23 AM
  3. Replies: 5
    Last Post: May 4th, 2005, 10:49 PM
  4. Newbie's question: design interface for remote access
    By Savagearts in forum Architecture
    Replies: 2
    Last Post: Mar 17th, 2005, 12:02 AM
  5. Replies: 2
    Last Post: Oct 23rd, 2004, 01:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •