java/spring- getting NoClassDefFoundError at org.springframework.context.support.AbstractApplicationContext

前端 未结 2 1497
梦谈多话
梦谈多话 2021-01-25 04:35

I am trying to initialise an RMI client for which I have used Spring.

Now, the application\'s RMI context is stored in file= rmiClientAppContext.xml

The relevant

相关标签:
2条回答
  • 2021-01-25 05:17

    In this particular case you should include commons-logging-1.1.1.jar in your client classpath. Spring-Core depends on it.

    In general I suggest you to use Maven or similar tool to manage your dependencies.

    0 讨论(0)
  • 2021-01-25 05:17

    Sounds like you are missing very important spring-web jar file. Add this to your pom file to fix this issue.

         <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>3.2.6.RELEASE</version>
        </dependency>
    
    0 讨论(0)
提交回复
热议问题