炫·忆 发表于 2013-12-3 17:51:19

No bean named 'systemService' is defined

严重: 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)
搞不定了,请教大神

Jikes 发表于 2013-12-16 14:04:00

同类问题,怎么没人回复啊!!!!

Jikes 发表于 2013-12-16 15:36:01

牛人回复下

Jikes 发表于 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>

nilm61 发表于 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>
页: [1]
查看完整版本: No bean named 'systemService' is defined