关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 10625|回复: 4

[代码生成器] No bean named 'systemService' is defined

[复制链接]
发表于 2013-12-3 17:51:19 | 显示全部楼层 |阅读模式
严重: Exception sending context initialized event to listener instance of class jeecg.system.listener.InitListener
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'systemService' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1093)
        at jeecg.system.listener.InitListener.contextInitialized(InitListener.java:26)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
搞不定了,请教大神
发表于 2013-12-16 14:04:00 | 显示全部楼层
同类问题,怎么没人回复啊!!!!
发表于 2013-12-16 15:36:01 | 显示全部楼层
牛人回复下
发表于 2013-12-16 17:28:14 | 显示全部楼层
已解决,虽然有点笨:
把web.xml中的这句替换掉即可:
        <context-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>
                   classpath:spring-mvc-hibernate.xml;classpath:spring-mvc-aop.xml;classpath:spring-mvc-context.xml;classpath:spring-minidao.xml;classpath:spring-mvc.xml
                </param-value>
        </context-param>
发表于 2014-1-21 12:06:22 | 显示全部楼层
3.4.2 改为

3.4.2  更改为

                <context-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>
                   classpath:spring-mvc-hibernate.xml;classpath:spring-mvc-aop.xml;classpath:spring-mvc-context.xml;classpath:spring-minidao.xml;classpath:spring-mvc.xml;classpath:spring-mvc-timeTask.xml
                </param-value>
        </context-param>
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表