开发者社区> 问答> 正文

ssh2环境配置问题403.10 禁止访问:配置无效 

配置ssh2开发环境   在applicationContext.xml中配置sessionFactory  bean是的时候总报严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/application_servlet_confing.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4172)     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4671)     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)     at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)     at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)     at org.apache.catalina.core.StandardService.start(StandardService.java:525)     at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)     at org.apache.catalina.startup.Catalina.start(Catalina.java:585)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:597)     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
是那个包没加  还是怎么的

展开
收起
kun坤 2020-05-27 21:27:30 425 0
1 条回答
写回答
取消 提交回答
  • 目测是 没加 commons-的哪个包######你说的是commons-collections包么   这个有的

    ######有commons-logging包吗######commons-collections是哪个版本的?######有的######我看了一下commons-collections包里面  确实没有map/LRUMap    只有个LRUMap

    ###### commons-collections是哪个版本的?###### 升级一下commons-collections包吧 ###### commons-collections貌似是2.1的   不够用么

    ###### 3.1的LRUMap才会在map目录下 ######额  好吧   谢了

    2020-05-28 14:46:36
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载