No bean named 'cxf' is defined怎么解决 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:80
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:5
Bbs1
本版专家分:5
Bbs7
本版专家分:10513
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
No bean named 'sessionFactory' is defined
2015/08/10 04:50:37.801 [DEBUG] org.springframework.web.context.support.XmlWebApplicationContext[initMessageSource]- Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@6f4cc38]rn2015/08/10 04:50:37.810 [DEBUG] org.springframework.web.context.support.XmlWebApplicationContext[initApplicationEventMulticaster]- Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@6a5b669c]rn2015/08/10 04:50:38.053 [ERROR] org.springframework.web.context.ContextLoader[initWebApplicationContext]- Context initialization failedrn[color=#FF0000]org.springframework.<em>bean</em>s.factory.BeanCreationException: Error creating <em>bean</em> with name 'commonDao': Injection of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>[/color]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1503)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1479)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1665)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:328)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1546)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1556)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1524)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:156)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)rn ... 27 morern八月 10, 2015 4:50:38 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error creating <em>bean</em> with name 'commonDao': Injection of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:300)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1503)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1479)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1665)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:328)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1546)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1556)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1524)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:156)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)rn ... 27 morern八月 10, 2015 4:50:38 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Error listenerStartrn八月 10, 2015 4:50:38 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/finance] startup failed due to previous errorsrn八月 10, 2015 4:50:38 下午 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn
No bean named 'SQService' is defined
这个问题如何<em>解决</em>No <em>bean</em> <em>named</em> 'SQService' is <em>defined</em>???
No bean named 'dataSource' is defined
大神看看<em>怎么</em>回事rn这是异常:[img=https://img-bbs.csdn.net/upload/201609/07/1473243878_75936.png][/img]rnrnapplicationContext-security.xml配置文件引用数据源rn[img=https://img-bbs.csdn.net/upload/201609/07/1473243871_777095.png][/img]rnrn配置数据源rn[img=https://img-bbs.csdn.net/upload/201609/07/1473243884_58893.png][/img]
javax.servlet.ServletException: No bean named '/test' is defined
我领导给我的一个SPRING MVC 模板一直报错 有人可以帮我看下那里有错误吗 +我QQ 1582770447 我把项目包给你 求救rn[img=https://img-bbs.csdn.net/upload/201507/25/1437826020_877686.jpg][/img][img=https://img-bbs.csdn.net/upload/201507/25/1437826025_947133.jpg][/img]rnrn就一些配置文件加上3个测试网页 不过一直找不到/test类
SSH——No bean named 'AssistantService' is defined。。
[b]报错[/b]:rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error creating <em>bean</em> with name 'LoginAction' <em>defined</em> in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to <em>bean</em> 'AssistantService' while setting <em>bean</em> property 'AssistantService'; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'AssistantService' is <em>defined</em>rnrn[b]代码如下[/b]:rn[color=#FF0000]applicationContext.xml:[/color]rnrn rn rn rn rn rn rn rn rn rn rn rn rnrnrn[color=#FF0000]AssistantDaoImpl.java:[/color]rnpublic class AssistantDaoImpl implements AssistantDao rn @Resourcern private SessionFactory sessionFactory;rn private static AssistantDaoImpl assistantDaoImpl = new AssistantDaoImpl();rnrn public static AssistantDaoImpl getInstance() rn // TODO Auto-generated method stubrn return assistantDaoImpl;rn rn rn public void setSessionFactory(SessionFactory sessionFactory)rn this.sessionFactory=sessionFactory;rn rn public SessionFactory getSessionFactory()rn return sessionFactory;rn rnrnrnrnrn[color=#FF0000]AssistantServiceImpl.java:[/color]rn@Service rnpublic class AssistantServiceImpl implements AssistantServicern private AssistantDao assistantDao;rn public AssistantDao getAssistantDao() rn return assistantDao;rn rn public void setAssistantDao(AssistantDao assistantDao) rn this.assistantDao = assistantDao;rn rnrnrnrnrn[color=#FF0000]LoginAction.java:[/color]rn@Repositoryrnpublic class LoginAction extends BaseAction rn private static final long serialVersionUID = 1L;rnrn @Autowiredrn private StudentService studentService; // 使用Spring注解注入业务方法rn @Autowiredrn private TeacherService teacherService; // 使用Spring注解注入业务方法rn @Autowiredrn private PersonInChargeService personinchargeService; // 使用Spring注解注入业务方法rnrn private AssistantService assistantService; // 使用Spring注解注入业务方法rn public AssistantService getAssistantService() rn return assistantService;rn rn public void setAssistantService(AssistantService assistantService) rn this.assistantService = assistantService;rn rnrnrnrn
No bean named 'xxxService' is defined 的几种原因和解决方案(详细介绍)
问题描述:No <em>bean</em> <em>named</em> ‘xxxService’ is <em>defined</em> 问题本质:一般这种情况下都是因为你发布的包存在xml文件的丢失,这样的话会导致很多方法类加载不起来。 Pom介绍:所以这个时候你应该看看自己的pom.xml文件,包含了关于工程和各种配置细节的信息,当执行一个任务或者目标时,Maven 会查找当前目录下的 POM,从其中读取所需要的配置信息,然后执行目标。 ...
CXF和spring整合遇到的问题:No bean named 'cxf' is defined
今天在做ws和spring整合的时候,很不幸的遇到了这个问题,百度了好久,竟然没人遇到这个问题,后来谷歌了一下,都是遇到这个问题的了。。。在看到一篇文章中提到了<em>cxf</em>.xml,所以我果断的打开这个配置文件看了一下,有一个很关键的地方: &amp;lt;<em>bean</em> id=&quot;<em>cxf</em>&quot; class=&quot;org.apache.<em>cxf</em>.bus.spring.SpringBus&quot; destroy-method=&quot;s...
报错No bean named ' is defined的原因和解决方案
项目为dubbo+springmvc+spring+mybatis贴上项目目录 如下:baidu-dubbo为父项目;其他的都是子项目;其中core项目 和  ifc 项目为jar包  core项目是项目自己的一些接口     ifc是暴露出来的公共接口service项目和web项目是war包;   service是业务处理层  web是主要是负责页面跳转逻辑的core项目中引入了ifc项目  s...
Servlet.init() for servlet action threw exception 异常解决办法
tomcat 经常会报一些莫名其妙的异常:如下 type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servle
weblogic:No bean named 'sessionFactory' is defined
将tomcat,mysql的项目改到weblogic,oracle上rnrn访问登录页面,输入用户名密码就出这个错误rnrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:243)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:227)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:171)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)rn at com.personnel.filter.FilterServlet.doFilter(FilterServlet.java:28)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)rnrnrnrnrnrn我的web.xmlrnrnrnrnrnrnrnrn rn rncontextConfigLocation rn classpath:applicationContext-*.xml rnrn rn rn org.springframework.web.context.ContextLoaderListener rn rn rnrn rn rn rn encodingFilterrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn gbkrn rn rn rn pathfilterrn com.personnel.filter.FilterServletrn rn rn pathfilterrn /*rn rn rn rn rn struts2rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn rn hibernateFilterrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn rn hibernateFilterrn *.actionrn rn rn encodingFilterrn *.actionrn rn rn encodingFilterrn *.jsprn rn rn struts2rn *.actionrn rn rn rn rn ConnectorServletrn rn net.fckeditor.connector.ConnectorServletrn rn 1rn rnrn rn ConnectorServletrn /fckeditor/editor/filemanager/connectors/*rn rnrn rnrn login.jsprnrnrnrnrnrn我的applicationContext-common.xmlrnrnrnrnrnrn rn rn rn classpath:hibernate.propertiesrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rnrn rn rn truern updatern rn org.hibernate.dialect.OracleDialectrn rn rn rn rn rn com/personnel/model/Message.hbm.xmlrn com/personnel/model/Organization.hbm.xmlrn com/personnel/model/User.hbm.xmlrn rn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn mgr rn rn rn rn rn rn rn rn transactionInterceptor rn rn rn rn rn rn
求救:No bean named '/companyAdmin' is defined
输入http://localhost/companyAdmin.do时,程序报如下错:rnrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> '/companyAdmin' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:355)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:800)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:646)rn at org.springframework.web.struts.DelegatingActionProxy.getDelegateAction(DelegatingActionProxy.java:122)rn at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:105)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at com.lianzhuang.utils.PagerFilter.doFilter(PagerFilter.java:28)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)rn at java.lang.Thread.run(Thread.java:619)
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sessionFactory' is defined
spring.xml文件:rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn updatern nonern rn org.hibernate.cache.EhCacheProviderrn rn truern rn rn rn rn com/userinfo/model/User.hbm.xmlrn rn rn rn rn rn com.userinfo.model.userrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnstruts.xml文件:rnrnrnrnrnrn rn rn rn rnrn rn rn rn rn rn /success.jsprn rn rnrnrn
No bean named 'sessionFactory' is defined错误
![![图片说明](https://img-ask.csdn.net/upload/201511/26/1448525316_855204.png)图片说明](https://img-ask.csdn.net/upload/201511/26/1448525310_528807.png)rnrn![图片说明](https://img-ask.csdn.net/upload/201511/26/1448527077_765464.png)rn运行时 报No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>错误rn我用的是Eclipse 然后是Spring MVC + Hibernate + Maven编写的0.0
服务器启动时报No bean named 'sessionFactory' is defined怎么解决
<em>bean</em>的配置rnrnrn rn rn rn rn rn rn rn rnrn其中CustomerDaoImpl继承HibernateDaoSupportrnrn---------------------------------------------------------rnweb.xmlrnrnrnrnrnrnrnrn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 2rn rn rn detailrn 2rn rn 2rn rnrnrn rn rn actionrn *.dorn rn rn rn OpenSessionInViewFilterrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn rn rn OpenSessionInViewFilterrn /*rn rn rn rn rn contextConfigLocationrn classpath:applicationContext-*.xmlrn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rnrnrnrnrn
No bean named systemService is defined(Springmvc)报错一种解决思路
在将maven项目改成普通的web项目时。配置文件需要建一个Source Folder 类型的文件夹来存放配置文件。不然配置信息读取不到
NoSuchBeanDefinitionException: No bean named 'xxx' is defined
一开始学习spring这种问题恐怕十分常见了,遇见这样的问题基本就是以下几种情况1. 缺少包或者包冲突我把我用到的包贴出来大家可以对照一下
关于NoSuchBeanDefinitionException: No bean named 'xxxx' is defined问题解决
问题如下 NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'userDao' is <em>defined</em> 查阅了网上关于IoC的资料后,明白了一些这方面的知识。这里单刀直入的给出<em>解决</em>方法。 楼主是在UserController中使用了如下代码 @Resource(name = "userDao") private UserDao us
No bean named 'searchItemServiceImpl' is defined
正常情况是我们相关的代码写错写漏了 ,检查配置文件看看里面用的路径是否正确,检查下自己的包名,有时配置文件正确,包名自己手打的出现少打了,这个错误一般是我们不够认真
NoSuchBeanDefinitionException: No bean named 'testService' is defined
Exception in thread "main" org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'testService' is <em>defined</em> at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFact
openSessionInViewFilter报No bean named 'sessionFactory' is defined错误
我是使用注解配置spring的。配置sessionfactory的代码如下rn[code=java]/**rn * 数据源<em>bean</em>rn */rn @Beanrn public DataSource getDataSource() rn BasicDataSource basicDataSource = new BasicDataSource();rn basicDataSource.setDriverClassName(driverName);rn basicDataSource.setUsername(username);rn basicDataSource.setPassword(pwd);rn basicDataSource.setUrl(databaseUrl);rn basicDataSource.setInitialSize(init_size);rn basicDataSource.setMaxActive(maxActive);rn basicDataSource.setMaxIdle(maxIdle);rn basicDataSource.setMaxWait(maxWait);rn return basicDataSource;rn rn rn @Bean(name="sessionFactory")rn public LocalSessionFactoryBean getSessionFactory(DataSource ds)rn LocalSessionFactoryBean lsfb = new LocalSessionFactoryBean();rn lsfb.setDataSource(ds);rn lsfb.setPackagesToScan("mysql.model");rn Properties hibernateProperties = pl.getProperties();rn lsfb.setHibernateProperties(hibernateProperties);rn return lsfb;rn rn rn @Autowiredrn @Bean(name="transactionManager")rn public HibernateTransactionManager getHibernateTransactionManager(SessionFactory sessionFactory)rn HibernateTransactionManager htm = new HibernateTransactionManager(sessionFactory);rn return htm;rn [/code]rn我命名的LocalSessionFactoryBean 的名称为sessionFactoryrn但是我在web.xml配置的openSessionInViewFilter总是报错,web.xml配置如下rn[code=text]rnrnrn Archetype Created Web Applicationrn rn rn openSessionInViewFilterrn rn org.springframework.orm.hibernate5.support.OpenSessionInViewFilterrn rn rn sessionFactoryBeanNamern sessionFactoryrn rn rn singleSessionrn truern rn rn rn openSessionInViewFilterrn /*rn rn rn[/code]rn我手动输出了一下spring的<em>bean</em>列表,发现有sessionFactory的<em>bean</em>,为什么openSessionInViewFilter就是提示找不到呢?求大牛解答
spring mvc 注解:No bean named 'userBiz' is defined
之前发过一个帖子,但是因为我不知道论坛不能连续回复3次也不能删评论,弄的我不能发言了。rn报的错是rn严重: StandardWrapper.Throwablernorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error creating <em>bean</em> with name 'userController': Autowiring of fields failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.user.biz.UserBiz com.user.controller.UserController.userBiz; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No unique <em>bean</em> of type [com.user.biz.UserBiz] is <em>defined</em>: Unsatisfied dependency of type [interface com.user.biz.UserBiz]: expected at least 1 matching <em>bean</em>rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:243)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.user.biz.UserBiz com.user.controller.UserController.userBiz; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No unique <em>bean</em> of type [com.user.biz.UserBiz] is <em>defined</em>: Unsatisfied dependency of type [interface com.user.biz.UserBiz]: expected at least 1 matching <em>bean</em>rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:435)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:240)rn ... 30 morernCaused by: org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No unique <em>bean</em> of type [com.user.biz.UserBiz] is <em>defined</em>: Unsatisfied dependency of type [interface com.user.biz.UserBiz]: expected at least 1 matching <em>bean</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:613)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:412)rn ... 32 morernrn八月 28, 2014 2:02:43 下午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /web threw load() exceptionrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No unique <em>bean</em> of type [com.user.biz.UserBiz] is <em>defined</em>: Unsatisfied dependency of type [interface com.user.biz.UserBiz]: expected at least 1 matching <em>bean</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:613)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:412)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:240)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrnrn下面是配置文件rnspringmvc-servlet.xmlrnrnrn rn rn rn rn rnrn rn rnrn rn rnrn
No bean named 'userService' is defined 问题解决 maven ssh
代码:rnpackage sy.test;rnrnimport org.junit.Test;rnimport org.springframework.context.ApplicationContext;rnimport org.springframework.context.support.ClassPathXmlApplicationContext;rnrnimport sy.service.UserServiceI;rnrnpublic class TestSpring rnrnrn @Testrn public void test() rn ApplicationContext ac = new ClassPathXmlApplicationContext(new String[] "classpath:spring.xml" );rn UserServiceI userService = (UserServiceI) ac.getBean("[color=#FF0000]u[/color]serService");rn userService.test();rn rnrnrnrnrn修改:rnrn UserServiceI userService = (UserServiceI) ac.getBean("[color=#FF0000]U[/color]serService");rn userService.test();rn数据库中定义了的UserService和Java类中定义的不一致,特别是大小写的问题rnrnwebservice开发总结:rnrn1.命名空间的问题rnrn2.在实现类中添加注解rnrn3.数据库命名与java类的service注解的命名一致rnrn4.tomcat的部署和运行rnrn5.单元测试rn注意大小写:rn其他原因:rnrnrn报错rnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'userService' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:553)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1098)rn at sy.test.TestSpring.test(TestSpring.java:15)rnrnrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)rn at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)rn at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:300)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
框架整合的问题No bean named 'MySessionFactory' is defined
刚刚整合框架 出现错误,我的代码如下rn[b] index.jsp[/b]rnrn dfdqrn rn rn rn rn rn rnrnrn[b]web.xml[/b]rnrn index.jsprn rn rn rn log4jConfigLocationrn /WEB-INF/classes/log4j.propertiesrn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn contextConfigLocationrn classpath*:applicationContext.xmlrn rn rn rn struts2rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rnrn rn struts2rn /*rn rn rn rn rn setCharacterEncodingrn rn org.springframework.web.filter.CharacterEncodingFilterrn rn rn encodingrn UTF-8rn rn rn forceEncodingrn truern rn rnrn rn setCharacterEncodingrn /*rn rn rn rn rn HibernateOpenSession rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter rn rn sessionFactoryBeanName rn MySessionFactoryrn rn rnrn rn HibernateOpenSession rn /* rn rnrnrn[b][b][/b]struts.xml[/b]rnrnrn rn rn rn rn rnrn rn rn rn /success.jsprn /error.jsprn rn rnrnrnrnapplicationContext.xmlrn rn rn rn classpath:hibernate.cfg.xml rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rnrnrn[b] LoginAction类[/b]rnrn public class LoginAction extends ActionSupportrnrn private LoginServic loginService;rn private String username;rn private String password;rn public LoginServic getLoginService() rn return loginService;rn rnrnrn public void setLoginService(LoginServic loginService) rn this.loginService = loginService;rn rnrnrn public String getUsername() rn return username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rn rn public String execute() throws Exception rn System.out.println(username);rn System.out.println(password);rn if (loginService.isLogin(username, password)) rn return "success";rn rn return "error";rn rnrnrn[b]LoginServic 接口[/b]rnrnpublic interface LoginServic rn rn public boolean isLogin(String username,String password);rn rnrnrnLoginServiceImpl实现接口rnrnpublic class LoginServiceImpl implements LoginServic rnrnrn public boolean isLogin(String username, String password) rn rn if("admin".equals(username) && "admin".equals(password))rn System.out.println("我进入到spring");rn return true;rn rn return false;rnrn rnrnrnrn还有一个User类和一个hibernate的数据源配置文件,这个是测试数据库的,可是不能用。真是郁闷透顶啊rnrnrnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'MySessionFactory' is <em>defined</em>rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)rn org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:243)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:227)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:171)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)rnrnrn这个是错误提示,有时候改下 web.xml以后,会出现LoginAction不能实例化rn[u]删掉这个[/u]rn rn HibernateOpenSession rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter rn rn sessionFactoryBeanName rn MySessionFactoryrn rn rnrnrn我强烈怀疑这错了。rnrn不知道<em>怎么</em>弄,我第一次搞整合。两两整合弄了,何在一起,在web,xml中写配置居然错误,真是难过啊rnrnrnrn
HttpInvoker,报错 No bean named 'openService' is defined!
在原有的对外接口中项目中添加了一个方法,想模拟测试的时候报找不到那个<em>bean</em>rn[img=https://img-bbs.csdn.net/upload/201805/25/1527238938_748607.jpg][/img]web.xml配置rn[img=https://img-bbs.csdn.net/upload/201805/25/1527238968_28165.jpg][/img]http-invoker.xml配置rn[img=https://img-bbs.csdn.net/upload/201805/25/1527239001_808273.jpg][/img]applicationContext.xml配置rn[img=https://img-bbs.csdn.net/upload/201805/25/1527239148_118896.jpg][/img]配置文件路径rn[img=https://img-bbs.csdn.net/upload/201805/25/1527239028_184529.jpg][/img]接口类rn[img=https://img-bbs.csdn.net/upload/201805/25/1527239045_223400.jpg][/img]实现类rn[img=https://img-bbs.csdn.net/upload/201805/25/1527239131_191429.jpg][/img]测试类
Spring 框架主方法运行后 异常 No bean named 'XXX' is defined
十月 16, 2017 3:19:37 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh 信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@426a086a: startu
关于MyBatis和Spring整合时,No bean named 'xxx' is defined我遇到的问题
spring的xml文件如下,看了几遍没有问题 xmlns:c
No bean named 'MysessionFactory' is defined问题的解决
&amp;lt;filter&amp;gt; &amp;lt;filter-name&amp;gt;openSession&amp;lt;/filter-name&amp;gt; &amp;lt;filter-class&amp;gt; org.springframework.orm.hibernate3.support.OpenSessionInViewFilter&amp;lt;/filter-class&amp;gt; &amp;lt;init-param&amp;g...
No bean named 'standService' is defined] with root cause
1  查看 standServiceImpl.java是否标注了@Service(‘standService’) 2 查看web的pom.xml文件是否加入了项目jar包的依赖(接口和实现jar包)。                    org.alene             dd-core             1.1                        
springmvc异常No bean named 'userService' is defined
项目用的是springmvc; 异常如下: 2016-11-9 14:35:57 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class org.springframework.web.
大虾帮帮忙 No bean named 'sessionFactory' is defined
No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn这是<em>怎么</em>回事啊 老是提示sessionFactory没有定义
SSH整合:No bean named 'TestService' is defined
最近刚刚开始做SSH三大框架整合,搭建了好几天的开发环境,就卡在了Spring与Hibernaten整合上,n![图片说明](https://img-ask.csdn.net/upload/201505/17/1431793030_317551.png)nTestService.javanpackage com.zyf.test;nimport javax.annotation.Resource;nimport org.hibernate.Session;nimport org.hibernate.SessionFactory;nimport org.springframework.stereotype.Controller;nimport org.springframework.stereotype.Service;nimport org.springframework.transaction.annotation.Transactional;nimport cn.zyf.pj.domain.User;n@Servicenpublic class TestService n @Resourcen private SessionFactory sessionFactory;n @Transactionaln public void saveTwoUsers() n Session session = sessionFactory.getCurrentSession();n session.save(new User());n session.save(new User());n nnTestSpring.javanpackage com.zyf.test;nimport org.hibernate.SessionFactory;nimport org.junit.Test;nimport org.springframework.context.ApplicationContext;nimport org.springframework.context.support.ClassPathXmlApplicationContext;npublic class TestSpring n private ApplicationContext ac= new ClassPathXmlApplicationContext("applicationContext.xml");n //测试sessionFactoryn @Testn public void testSessionFactory() throws Exceptionn SessionFactory sessionFactory =(SessionFactory)ac.getBean("sessionFactory");n System.out.println(sessionFactory.openSession());n n //测试事物n @Testn public void testSaveUsers()n TestService ts=(TestService) ac.getBean("TestService");n ts.saveTwoUsers();n nnHibernate.cfg.xmlnnnn n n org.hibernate.dialect.MySQL5InnoDBDialectn n n truen updaten nnnnapplicationContext.xmlnnn n n n n n n n n n n n n n n n n n n n n n n n n n n nn n n n n n n n n nnnTestSpring.javanpackage com.zyf.test;nimport org.hibernate.SessionFactory;nimport org.junit.Test;nimport org.springframework.context.ApplicationContext;nimport org.springframework.context.support.ClassPathXmlApplicationContext;npublic class TestSpring n private ApplicationContext ac= new ClassPathXmlApplicationContext("applicationContext.xml");n //测试sessionFactoryn @Testn public void testSessionFactory() throws Exceptionn SessionFactory sessionFactory =(SessionFactory)ac.getBean("sessionFactory");n System.out.println(sessionFactory.openSession());n n //测试事物n @Testn public void testSaveUsers()n TestService ts=(TestService) ac.getBean("TestService");n ts.saveTwoUsers();n nnn对TestSpring进行单元测试,第一个方法正常执行,第二个方法报错No <em>bean</em> <em>named</em> 'TestService' is <em>defined</em>,并且在数据库中自动生成test_users表,困扰了好久了,麻烦大神指点一下!!!!
springMVC报错No bean named 'INVO_myReqUrl' is defined
[b]<em>bean</em>s.xml如下:[/b]rnrn rn [b]rn rn rn [/b]rnrn[b]invocation如下:[/b]rn[b]@Component("INVO_myReqUrl")[/b]rnpublic class HomepageInvocation implements BaseInvocationrn public InvocationResult queryHomepageShowInfo(InvocationContext context)rn System.out.println("返回对象了,擦擦擦");rn return null;rn rn rnrnrn报错如下:rnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'INVO_myReqUrl' is <em>defined</em>rnrn这到底什么情况啊?谢谢rnrn
spring,hibernate,jpa No bean named 'sessionFactory' is defined
各位帮我看看是不是我配置文件写错了,应该<em>怎么</em>写?还有用了JPA之后SPRING的注解,是不是还跟原来一样的用,没有任何的影响?rnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rnrnweb.xmlrnlistener>rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn encodingrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn UTF-8rn rn rn forceEncodingrn truern rn rn rn encodingrn /*rn rn rn rn rn OpenSessionInViewFilterrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn rn OpenSessionInViewFilterrn /*rn rnrn<em>bean</em>s.xmlrnrnrnrnrnrnrnrnrn
基于Maven在Spring中集成CXF Web Service框架
引言: 在跨系统和跨平台的系统通信中,WebService是一个事实上的标准,其以平台无关性,获得了广泛的应用。本文将讲述如何基于Spring来集成CXF,并开发出第一个Hello World的应用。
cxf异常之tomcat中启动报 No bean named 'cxf' available
1.异常描述 2018-11-18 12:05:20 [com.alibaba.dubbo.common.logger.LoggerFactory]-[INFO] using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter 十一月 18, 2018 12:05:21 下午 org.apache.catalina.co...
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cxf' available问题解决
<em>解决</em>方案有两种亲测有效 1、 @Bean public ServletRegistrationBean disServlet(){ return new ServletRegistrationBean(new CXFServlet() , "/webservice/*"); } @Bean(name = Bus.DEFAULT_BUS_ID) ...
JAVA webservice之CXF
昨天我们一起学习了一下xfire,今天我们来看一下CXF,为什么学完那个接着学这个呢。因为CXF是在xfire的基础上实现 的,所以我们学习它会比较简单点,毕竟我们昨天刚看过了xfire的实现方法。废话少说,直接来例子。 1)首先呢,还是包的问题,在http://<em>cxf</em>.apache.org/download.html这里可以下到最新版的CXF,当然,我用的是最新版的。接下来还是那句废话,...
cxf之org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cxf' available
原因是.... 把<em>cxf</em>的配置文件spring-<em>cxf</em>-rest.xml配置结束后,没有import到spring.xml中...所以才加载不到<em>bean</em>.... 另附:异常org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException...
SSH集成中org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '/add' is defined出错
---------ApplicationContext-common.xml-------------rnrnrn rn rn rn rn rn rn rnrn rn classpath:hibernate.cfg.xmlrn rn rnrnrn-----------------ApplicationContext-action.xml-------------------------------------------------------------rnrnrnrnrn rnrnrnrn-----------------ApplicationContext-<em>bean</em>.xml-------------------------------------------------rnrnrn rn rn rn rn rn rn rn rnrn----------------jsp----------------rnrnrnrnrnrn rn rn SSH集成rn rn rn rn rn rn rn rn rn rn rn rn rn 用户名rn rn rn rn 年龄rn rn rn rn rn rn rn rn rn rnrn
h、s整合问题:No bean named 'sessionFactory' is defined
我用的是hibernate和spring整合,在<em>bean</em>s.xml写了sessionFactory.在类里面调用@Resource时就报错了rn@Resource(name="sessionFactory")rn public void setSessionFactory(SessionFactory sessionFactory) rn this.sessionFactory = sessionFactory;rn rn rnrn rn rn rn com.yyq.model.Userrn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn truern rn rn rnrnrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error creating <em>bean</em> with name 'u': Injection of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at com.yyq.service.UserServiceTest.testAdd(UserServiceTest.java:15)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:601)rn at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)rn at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)rn at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:300)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:442)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:416)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:549)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:303)rn ... 36 morern
整合SSH出现的No bean named '/addUser' is defined错误
我的spring配置rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn rn rn rn rn net/xie/hr/entity/Roles.hbm.xmlrn rn net/xie/hr/entity/Groups.hbm.xmlrn rn net/xie/hr/entity/Rights.hbm.xmlrn rn net/xie/hr/entity/User.hbm.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrn我的sturts配置rnrnrnrnrn rn rn rnrn rnrn rn rn rn rn rn rnrn rnrn rn rn rn rnrnrnweb里没配。rnrnjsp页面rn rn rn JSP for AddUserForm formrn rn rn rn rn 用户名 : rn 密码 : rn rn rn rnrnrnrnrnrn报错:rn17:48:05,312 [http-8080-1] WARN RequestProcessor : Unhandled Exception thrown: class org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionExceptionrn2008-7-30 17:48:05 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> '/addUser' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)rn at org.springframework.web.struts.DelegatingActionProxy.getDelegateAction(DelegatingActionProxy.java:127)rn at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:109)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn at java.lang.Thread.run(Unknown Source)rn
Servlet.service() for servlet jsp threw exception 和No bean named 'sessionFactory' is defined
配置SSH时候遇到的,准备做个登陆!!rn————————rn这是配置的applicationContextrn[code=Java]rn rn rn rn rn rn rn rn rnrnrn rn rn rn rn rn rn rn org.hibernate.dialect.SQLServerDialectrn rn truern rn rn rn rn cn/studclub/vo/User.hbm.xmlrn rn rn rnrn rn rn [/code]rnweb.xmlrnrn[code=Java]rnrn rn index.jsprn rn rn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 2rn rn rn detailrn 2rn rn 2rn rnrnrn rn rn actionrn *.dorn rn rn rn contextConfigLocationrn classpath*:applicationContext.xmlrn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn Spring character encoding filterrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn GBKrn rn rnrn rn Spring character encoding filterrn /*rn rn rn rn hibernateFilterrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn rn hibernateFilterrn /*rn rnrn[/code]rnrn运行的时候就出现rnrn信息: Detected AnnotationXWorkConverter, initializing it...rnlog4j:ERROR setFile(null,true) call failed.rnjava.io.FileNotFoundException: \WEB-INF\petstore.log (系统找不到指定的路径。)rn at java.io.FileOutputStream.openAppend(Native Method)rn at java.io.FileOutputStream.(Unknown Source)rn at java.io.FileOutputStream.(Unknown Source)rnrnrn和,信息: Jk running ID=0 time=0/63 config=nullrn2008-12-8 20:36:38 org.apache.catalina.startup.Catalina startrn信息: Server startup in 18690 msrn2008-12-8 20:37:19 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exceptionrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:353)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:243)rnrnrnat java.lang.Thread.run(Unknown Source)rn2008-12-8 20:38:35 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exceptionrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:353)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:243)rnrnrnrn——————————————————————————————————rn各位帮帮忙,<em>怎么</em>个<em>解决</em>法,搞了一下午了~~~~~~~rnrn
ssm下使用监听器,注入service,一直报错:No bean named xxx available
ssm下使用监听器: 已经在Service上注明了@Service("articeService") 一直这个错,找不到可用的articleService ,能想到的办法都是了,还是报这个错,各位老哥
关于WebService 的用法demo 总结
前言 Web Service是什么 Web Service模型 WebService开源框架的选择 使用篇 cfx一套最简配置jar包 maven依赖 最简单的demo 服务端接口定义 服务端接口实现 编写服务端的启动程序 编写客户端 如何集成spring框架 前提检查spring版本 在Webxml中声明CXF监听器 创建WebService声明的Spring配置文件spring-<em>cxf</em>xml 客
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilter
在项目build path--library中删掉路径错误或不存在的jar包
No bean named '' is defined
不知道大家有没有这样的经历,在Git或者SVN上更新了一下代码,好好的工程就跑不起来了,控制台报错信息 No <em>bean</em> <em>named</em> ” is <em>defined</em> 仔细检查代码,没有什么错误,考虑一下是否是编译的问题,导致读不到配置文件,去项目目录下看看 然后看看项目中目录下是不是有很多配置文件没有编译出来, 确认应该是编译的问题,不断的clean-build还是没有用~~~ 最后用一...
springboot用CXF动态调用webservice
axis搭建的webservice项目,&amp;lt;service name=&quot;HelloWorld&quot; provider=&quot;java:RPC&quot; style=&quot;document&quot; use=&quot;literal&quot;&amp;gt; &amp;lt;parameter name=&quot;className&quot; value=&quot;example.HelloWorld&quot;/&amp;gt; &amp
struts+spring+hibernate 框架 出现 No bean named 'baseTransactionProxy' is defined错误。寻求帮助
第一次用struts+spring+hibernate搭建框架rnweb.xmlrn-------------------------------------------------rn rn contextConfigLocationrn /WEB-INF/config/dataAccessContext-local.xml /WEB- INF/config/applicationContext.xml rn rn contextrn org.springframework.web.context.ContextLoaderServletrn 1rn rn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn--------------------------------------------------------------------------------------rnstruts-config.xmlrn-------------------------------------------------------------------------------------rn rn rn rn rn rn rn rn rn--------------------------------------------------------------------------------------rnaction-servlet.xmlrn-----------------------------------------------------------------------------------------rnrnrn rn rn rn rn rnrnrn-------------------------------------------------------------------------------------rnapplicationContext.xmlrn----------------------------------------------------------------------------------------rnrnrn rn rn rn WEB-INF/config/jdbc.propertiesrn rn rn rn rn rn rn rn rn rn PROPAGATION_REQUIRED,readOnlyrn PROPAGATION_REQUIRED,readOnlyrn PROPAGATION_REQUIRED,readOnlyrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrn rn rn rn rn rn rn rn rn rn rn rn rnrn---------------------------------------------------------------------------------------------rndataAccessContext-local.xmlrn--------------------------------------------------------------------------------------rnrn rn rn $jdbc.driverrn rn rn $jdbc.urlrn rn rn $jdbc.usernamern rn rn $jdbc.passwordrn rn rn 1rn rn rn 25rn rn rn 5rn rn rn rn rn rn rnrn rn rn com/zwzx/student/dao/hibernate/pojo/Login.hbm.xmlrn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn falsern rn rn rn rn rn rn rn rn rn rn rnrn-----------------------------------------------------------------------------------rn有帖子说引入aopalliance.jar包,这个我已经引入了。rn并且在Action中写了 private LoginService loginService =null;rn并有loginService 的get和set方法。rn现在点击登陆提交后,页面会抛出异常rnjavax.servlet.ServletException: Error creating <em>bean</em> with name '/login' <em>defined</em> in ServletContext resource [/WEB-INF/config/action-servlet.xml]: Can't resolve reference to <em>bean</em> 'loginService' while setting property 'loginService'; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'loginService' is <em>defined</em>: org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory defining <em>bean</em>s [/login]; root of BeanFactory hierarchyrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn问题出在哪里呢?rn被一个问题折磨了一天了。求各位高手帮助。
ssh整合框架出现No bean named 'loginService' is defined错误
applicationContext.xml:如下:rnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrn rnrn rn rn rn rn rn rn rn classpath*:yiyao/**/*.hbm.xmlrn rn rn rn **/hibernate/*.hbm.xmlrn rn rn classpath:hibernate.cfg.xmlrn rn rn rn rnrn rn rn rn rnrn---------------rnBase-action.xml如下rnrnrn rn rn rn rn rnrn----------Base-spring.xml如下:rnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrn
dwr与ssh集成出现的问题:No bean named '__dwrConfiguration' is defined
严重: Allocate exception for servlet dwrrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> '__dwrConfiguration' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)rn at org.directwebremoting.spring.DwrSpringServlet.init(DwrSpringServlet.java:104)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1189)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1103)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:813)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:662)rnrn开始配置可以成功运行,可是后面再尝试就出先这个问题!rn一开始以为是ssh与dwr annotation配置有问题,可是后面换成spring与dwr集成还是出现这个问题!rn请高手帮忙解答!
SSH做登录出现No bean named '/login' is defined
javax.servlet.ServletException: No <em>bean</em> <em>named</em> '/login' is <em>defined</em>rn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:647)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rnrnrnroot cause rnrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> '/login' is <em>defined</em>rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:509)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1041)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:265)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1048)rn org.springframework.web.struts.DelegatingActionProxy.getDelegateAction(DelegatingActionProxy.java:130)rn org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:112)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:647)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.33 logs.rnrn
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '
SSH框架程序中,tomcat运行时 输入.do提示以下错误:rn哪位高手能帮忙<em>解决</em>一下!rn2010-9-17 16:50:54 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> '/index' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:968)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:885)rn at org.springframework.web.struts.DelegatingActionProxy.getDelegateAction(DelegatingActionProxy.java:127)rn at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:109)rn at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)rn at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)rn at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)rn at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)rn at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.jqz.util.EncodingFilter.doFilter(EncodingFilter.java:23)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rn
junit测试NoSuchBeanDefinitionException: No bean named 'dataSource' is define
junit测试这个问题坑了我两次,印象很深刻,这都是什么<em>bean</em>找不到的问题,其实这个问题很简单,就是spring的配置文件没有全部加载到junit测试环境。 我们要做的就是要检查一下,所有的spring的配置文件是否添加到了junit的测试环境,多个配置文件加载如下: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguratio...
No bean named 'springSecurityFilterChain' is defined 解决方法
最近在配置Spring Security 3.0的时候,遇到了这个问题 'springSecurityFilterChain' 是默认配置在web.xml中的filter:   springSecurityFilterChain     org.springframework.web.filter.Delegatin
No bean named 'cacheManager' is defined
在springMVC中,启动项目时报异常,排查后才发现是spring配置文件中的头(scheme)引入错误 注意:配置文件中的xsi:schemaLocation=...部分也要对应修改
already defined in 123View.obj怎么解决
是这样的,假设我在234.h文件中定义了变量:int *InPut_Temp=new int[N_Max];rn 在234.cpp中使用了这个变量。同时我想在123.cpp中也是用这个变量,于是我在123.cpp中#include“234.h”rn 结果在编译时出现下面的错误:error LNK2005: "int * InPut_Temp" (?InPut_Temp@@3PAHA) already <em>defined</em> in 123View.objrn 应该<em>怎么</em><em>解决</em>呢
defined in the persistence unit">No generator named "system-uuid" is defined in the persistence unit
@Id @GeneratedValue(generator="system-uuid")rn @GenericGenerator(name="system-uuid",strategy = "uuid")rn @Column(name = "id", unique = true, nullable = false, length = 64)rn private String id;rn public String getId() rn return id;rn rn public void setId(String id) rn this.id = id;rn rnrnrn @GeneratedValue(generator="system-uuid")报错rn[color=#FF0000]No generator <em>named</em> "system-uuid" is <em>defined</em> in the persistence unitrn[/color]rn哪位大神知道<em>怎么</em>改???rnrnrn
No bean named 'shiroFilter' is defined
-
No bean named 'xxxx' is definedorg.springframework.beans.factory.NoSuchBeanDefinitionExcepti
@Resource 注解被用来激活一个命名资源(<em>named</em> resource)的依赖注入,在JavaEE应用程序中,该注解被典型地转换为绑定于JNDI context中的一个对象。 Spring确实支持使用@Resource通过JNDI lookup来解析对象,默认地,拥有与@Resource注解所提供名字相匹配的“<em>bean</em> name(<em>bean</em>名字)”的Spring管理对象会被注入。 在下面的
defined">maven项目(ssh框架配置) no bean name "sessionFactory" defined
配置ssh框架(springmvc spring hibernate)时报异常no <em>bean</em> name "sessionFactory" <em>defined</em>,dataSource也无法获取到,我将web.
No bean named 'sessionFactory' is defined问题
一个项目,spring+hibernate,启动tomcat容器时报错:No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>  百度了许多,基本归为: 1. spring-hibernate.xml文件路径写错了或没引入 contextConfigLocation classpath:/spring-hibernate.xml 2.相关jar包没有
springside 3.34NoSuchBeanDefinitionException: No bean named 'springSecurityFilte
springside 3.34 存狗屎错误 找了我一下午 网络众说风云, csdn 你发帖的按钮就不能设置明显点 rnrnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>named</em> 'springSecurityFilterChain' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1068)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)rn at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:217)rn at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:145)rn at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:179)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5309)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1276)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1440)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)rn at java.lang.Thread.run(Thread.java:619)rn2013-3-25 18:17:02 org.apache.catalina.core.StandardContext startInternal
ImportError: No module named 'config' 怎么解决
[img=https://img-bbs.csdn.net/upload/201602/26/1456468578_162420.jpg][/img]rnrnImportError: No module <em>named</em> 'config' <em>怎么</em><em>解决</em>?
message No result defined for action 怎么解决
type Status reportrnrnmessage No result <em>defined</em> for action cn.gduf.exam.action.stuInsertSave and result successrnrndescription The requested resource (No result <em>defined</em> for action cn.gduf.exam.action.stuInsertSave and result success) is not available.rnrnrn--------------------------------------------------------------------------------rn需要完成一个用户添加功能。rn在struts.xml中配置如下信息rn rn但是浏览器显示 rnmessage No result <em>defined</em> for action cn.gduf.exam.action.stuInsertSave and result successrnrn求struts.xml的详细配置。。。。
the type R is already defined 怎么解决
最近下载了一个源代码。但是导入之后,却提示the type R is already <em>defined</em>,<em>怎么</em><em>解决</em>啊
微信分享解决wx not defined
需求: 要实现在微信中分享给朋友和分享到朋友圈的分享链接显示图片,标题和描述. 遇到的问题: 写好的index.html发布到服务器上,发现显示的还是链接,加的微信分享功能没有起作用------这段代码没有读取到.于是我f12查看前端有没有报错. 发现index.html页面报了一个wx not <em>defined</em>错误.在网上查了一下.http://blog.csdn.net/xinyflov...
SSM报错NoSuchBeanDefinitionException: No bean named '' is defined
最近刚接触SSM,照着网上的例子跑了一下,结果整个spring和mybatis时报错如下: Caused by: org.springframework.<em>bean</em>s.factory.NoSuchBea
No bean named transactionManager is defined 多数据源的单元测试
spring 相关的配置 Xml代码          <em>bean</em> id="car_dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"           lazy-init="default" dependency-check="default">           property name=
mybatis与spring整合报错Error creating bean with name 'sqlSessionFactory' defined in class path resource
今天做mybatis与spring整合的时候报了一个错误,如下 Caused by: org.springframework.<em>bean</em>s.factory.BeanCreationException:  Error creating <em>bean</em> with name 'sqlSessionFactory' <em>defined</em> in class path resource [config/applicat
No bean named 'MysessionFactory' is defined
No <em>bean</em> <em>named</em> ‘MysessionFactory’ is <em>defined</em>HTTP Status 500 - No <em>bean</em> <em>named</em> 'MysessionFactory' is <em>defined</em>type Exception reportmessage No <em>bean</em> <em>named</em> 'MysessionFactory' is <em>defined</em>description The
ss2H框架常遇到的错误记录
一、 org.springframework.<em>bean</em>s.factory.BeanCreationException: Error creating <em>bean</em> with name 'activityServiceImp' <em>defined</em> in file [E:\Workspaces\.metadata\.me_tcat7\webapps\OldArticleSwap\WEB-INF\classe
解决$ is not defined 的几种方法
$ is not <em>defined</em> ,有以下几种可能: 1.没有导入jQuery的jar包 2.jQuery的jar包放进了WEB-INF里,jQuery的jar包最好放在WebContent下,跟WEB-INF同级 3.导入jQuery的路径名没有写对 4.jQuery没有包含js 错误的实例: &amp;lt;script type=&quot;text/javascript&quot;&amp;gt; $(function()...
提示$ is not defined错误分析及解决
锋利的jquery--CH1
急!项目移植到weblogic上竟然出现No bean named 'sessionFactory' is defined
项目是SSH的架构,开发的时候是用的tomcat,并能正常运行,rn但是移植到weblogic上后,访问页面竟然出现:rnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: [color=#FF0000]No <em>bean</em> <em>named</em> 'sessionFactory' is <em>defined</em>[/color] at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:914)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:761)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:243)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:227)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:171)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)rn rnrnrn郁闷啊,Tomcat中运行没有一点问题!我检查了一下路径也没出现任何问题,我的配置如下:rnrnweb.xmlrn--------------------------------------rnrn contextConfigLocationrn rn /WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xmlrn rnrnrnrn rn org.springframework.web.context.ContextLoaderListenerrn rnrnrnrnrnapplicationContext-common.xmlrn--------------------------------------rnrnrn rn classpath:hibernate.cfg.xmlrn rnrnrnrn希望大家指点一下~~!感激!!
源码 仿真图 电子钟 单片机下载
使用单片机驱动数码管,单片机入门的制作,此外添加了开关机动画,仿MP3按键。程序加仿真图。 相关下载链接:[url=//download.csdn.net/download/soso90soso/3174236?utm_source=bbsseo]//download.csdn.net/download/soso90soso/3174236?utm_source=bbsseo[/url]
中国 省市区三级级联菜单 数据库Mysql修正版本下载
附件名称:gk_diqu.sql 附件用途:制作省市区三级级联菜单数据来源 简单介绍:文件gk_diqu.sql内含数据库表 gk_diqu。 数据结构: mysql> desc gk_diqu; +-------+----------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+----------------------+------+-----+--------- 相关下载链接:[url=//download.csdn.net/download/default7/3618786?utm_source=bbsseo]//download.csdn.net/download/default7/3618786?utm_source=bbsseo[/url]
华为S9306配置规范下载
第3章 华为S9603配置规范 1 3.1 系统基本配置规范 1 3.1.1 设备名称配置 1 3.1.2 Banner配置 1 3.1.3 设备自身时间及NTP 2 3.1.3.1 时区配置 2 3.1.3.2 NTP配置 2 3.1.4 VTY接口配置 3 3.1.4.1 连接数限制 3 3.1.4.2 空闲时间 3 3.1.4.3 访问控制列表 4 3.1.4.4 配置范例 4 3.1.5 AAA配置 5 3.1.5.1 概述 5 3.1.5.2 AAA配置 5 3.1.5.3 本地用户帐号 7 3.2 端口配置规范 7 3.2.1 Loopback地址配置 7 3.2.2 GE端口配置 相关下载链接:[url=//download.csdn.net/download/lingozuo_/5264174?utm_source=bbsseo]//download.csdn.net/download/lingozuo_/5264174?utm_source=bbsseo[/url]
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数
我们是很有底线的