Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: standalone spring app, exception loading context from xml file

  1. #21
    Join Date
    Dec 2009
    Posts
    6

    Default

    Hi, Were you able to resolve the problem. Pls share your findings.

    regds

  2. #22
    Join Date
    Nov 2007
    Location
    Austin, TX USA
    Posts
    154

    Default

    what is your question Vijay?

  3. #23
    Join Date
    Dec 2009
    Posts
    6

    Default

    Am Sorry. I posed it by mistake. Pls ignore.

    regards

  4. #24
    Join Date
    Dec 2009
    Posts
    7

    Default Cannot find class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]

    hello every one.
    i'm working on eclipse RCP with Spring and Hibernate, when i run the rcp application, i've got the error:" Cannot find class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]".
    Then i added the Spring.jar(which contains the class LocalSessionFactoryBean) to the classpath, but i always got the same error.
    Please i need your help

  5. #25
    Join Date
    Dec 2009
    Posts
    6

    Default

    Hi, Can you please copy the full stack trace and if possible code snippet.

    regds

  6. #26
    Join Date
    Dec 2009
    Posts
    7

    Default

    it seems to be resolved,I no longer receive this error :"Cannot find class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]".
    i retrieved the librairies of Spring and Hibernate and created 2 folder for each one, i added all the jars of Spring(7 jars) and hibernate3 to the class path.
    here the classPath, it may help :

    <code>
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry exported="true" kind="lib" path="Hibernate/hibernate3.jar"/>
    <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.Standar dVMType/JavaSE-1.6"/>
    <classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="hibernate-config"/>
    <classpathentry kind="src" path="spring-config"/>
    <classpathentry exported="true" kind="lib" path="Spring/spring.jar"/>
    <classpathentry exported="true" kind="lib" path="Spring/aspectjrt.jar"/>
    <classpathentry exported="true" kind="lib" path="Spring/aspectjweaver.jar"/>
    <classpathentry exported="true" kind="lib" path="Spring/cglib-nodep-2.1_3.jar"/>
    <classpathentry exported="true" kind="lib" path="Spring/commons-logging.jar"/>
    <classpathentry exported="true" kind="lib" path="Spring/junit-3.8.2.jar"/>
    <classpathentry exported="true" kind="lib" path="Spring/log4j-1.2.15.jar"/>
    <classpathentry kind="output" path="bin"/>
    </classpath>
    </code>

    thanks VijayS for your respnse.

  7. #27
    Join Date
    Aug 2011
    Posts
    28

    Default

    Quote Originally Posted by szafir View Post
    I was using slf4j-log4j12-1.5.3.jar because I downloaded it manually from the slf4j site but the dependency states slf4j-1.5.2. Once I got the 1.5.2 the NoSuchFieldError was gone.
    Is people are still active on this thread, I am getting the same error. I tried with slf4j-api-1.5.3.jar and slf4j-log4j12-1.5.3.jar. No success. any help would be appreciated.

Posting Permissions

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