Announcement Announcement Module
Collapse
No announcement yet.
Spring FatalBeanException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring FatalBeanException

    Hello All!

    I'm developping an eclipse plug-in, and I added to the plugin classpath my libs (of course), see below;

    manifest.mf

    Code:
    Bundle-ClassPath: lib/antlr-2.7.5.jar,
    lib/asm-1.5.3.jar,
    lib/casis-analyzer-2.0.jar,
    lib/casis-common-2.0.jar,
    lib/casis-driver-ds-2.0.jar,
    lib/casis-jndi-ds-2.0.jar,
    lib/casis-rcp-security-2.0.jar,
    lib/casis-re-compiler-2.0.jar,
    lib/cglib-2.1.jar,
    lib/commons-beanutils-1.7.0.jar,
    lib/commons-collections-3.1.jar,
    lib/commons-dbcp-1.2.1.jar,
    lib/commons-lang-2.0.jar,
    lib/commons-logging-1.0.4.jar,
    lib/commons-pool-1.2.jar,
    lib/dom4j-1.6.1.jar,
    lib/ehcache-1.1.jar,
    lib/hibernate-3.1.3.jar,
    lib/log4j-1.2.13.jar,
    lib/spring-1.2.6.jar,
    lib/xstream-1.1.3.jar
    The lib casis-common-2.0.jar contains a spring framework, and when I try to access a method, this exception is throwed:

    Code:
    Caused by: org.springframework.beans.FatalBeanException: Unable to find resource for specified definition. Group resource name [classpath*:/be/aprico/casis/common/servicelocator/resource/beanRefFactory.xml], factory key [casis.common.application.context]
    at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.createDefinition(SingletonBeanFactoryLocator.java:477)
    at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:372)
    at be.aprico.casis.common.servicelocator.ServiceLocator.init(ServiceLocator.java:167)
    ... 32 more
    but when I use the lib casis-common-2.0.jar in another modules of my applitcation everything works fine.
    The problem happens only in the eclipse plugin.

    There is a kind of trick with plugin classloading?
    Does somebody knows something about it ?

    thx!
    Last edited by silveta; Aug 4th, 2006, 02:35 PM.

  • #2
    Classloaders in Eclipse are trikcy. That's about all I can tell you right now :-)

    Maybe this can be useful for you:

    http://www.devx.com/Java/Article/31763?trk=DXRSS_LATEST

    Comment

    Working...
    X