Spring boot 启动报错求救

启动报错 求解

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-01-18 16:46:27.462 ERROR 2312 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiController': Unsatisfied dependency expressed through field 'apiService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiService': Unsatisfied dependency expressed through field 'companyMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'companyMapper' defined in file [F:\javaProjects\app-service\target\classes\com\mapath\bigreward\appservice\mapper\CompanyMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
    at com.mapath.bigreward.appservice.AppServiceApplication.main(AppServiceApplication.java:17) [classes/:na]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiService': Unsatisfied dependency expressed through field 'companyMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'companyMapper' defined in file [F:\javaProjects\app-service\target\classes\com\mapath\bigreward\appservice\mapper\CompanyMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    ... 19 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'companyMapper' defined in file [F:\javaProjects\app-service\target\classes\com\mapath\bigreward\appservice\mapper\CompanyMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1745) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    ... 32 common frames omitted
Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.util.Assert.notNull(Assert.java:198) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig(SqlSessionDaoSupport.java:74) ~[mybatis-spring-1.3.2.jar:1.3.2]
    at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:73) ~[mybatis-spring-1.3.2.jar:1.3.2]
    at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) ~[spring-tx-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1804) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
    ... 42 common frames omitted

Disconnected from the target VM, address: '127.0.0.1:51427', transport: 'socket'

Process finished with exit code 1

4个回答

Error creating bean with name 'companyMapper' defined in file [F:\javaProjects\app-service\target\classes\com\mapath\bigreward\appservice\mapper\CompanyMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

仔细阅读下这段报错信息。

weixin_44307401
疯一样De男纸 谢谢忘记配置 会话工厂了
8 个月之前 回复

@MapperScan(value = "com.company.dao")
这个扫描所有dao文件配置没?

mybatis-plus:
  # xml
  mapper-locations: classpath:mybatis/mapper/*Mapper.xml
  # 实体类扫描
  type-aliases-package: com.company.model
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

这个application.yml 里面配置没

看看你的mapper文件是否写的有问题或者你贴出来

看看你的CompanyMapper.xml,如果我没猜错,这里的返回写得有点问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Spring boot 启动报错
Spring boot 启动报错:This application has no explicit mapping for /error, so you are seeing this as a fallback问题原因:按照教程完成spring boot的基础构建的时候,启动报错当时我把服务类 和 启动类放在不同包下,而各自所在包是同级的。解决办法:springboot会自动加载启动类所在包下及...
spring boot启动报错
在spring boot demo中启动报错 ** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. 经过查询得知,启动的类不能放在默认的java! 要建一个包,把application移到此包中 然后新建一个文件夹
Spring Boot启动报错
项目是从外包那边接过来的rn跑了好几天都没问题,昨天晚上突然启动的时候提示这个错误rn[code=java]rnjava.lang.ClassCastException: org.springframework.web.context.support.ServletRequestHandledEvent cannot be cast to org.springframework.boot.web.context.WebServerInitializedEventrn at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:353)rn at org.springframework.web.servlet.FrameworkServlet.publishRequestHandledEvent(FrameworkServlet.java:1066)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:999)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:856)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:841)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)rn at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)rn at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)rn at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)rn at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:748)rn[/code]rn项目在 IDEA下可以跑,就是没次访问都会提示这个,打包到Tomcat就启动不起来,各路大佬求帮
Spring boot启动报错
如果Spring boot启动报错,首先看启动类的名称是否和“SpringbootApplication”重复即注解名称重复可能导致错误的出现。其次Spring boot 希望加载数据源,如果没有在配置文件像 application.yml中配置与数据库相关的连接信息会提示Spring boot启动失败,加载不到数据源等信息。以上内容仅供参考。...
spring Boot微服务启动报错
[img=https://img-bbs.csdn.net/upload/201903/20/1553061955_578458.png][/img][img=https://img-bbs.csdn.net/upload/201903/20/1553061964_215382.png][/img]rnrneclipse启动没问题,在idea里面就报这个错误
(纠错)spring Boot启动报错
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2017-11-16 15:32:12.994 ERROR 2668 --- [ main] o.s.b.d.LoggingFailureAnalysi...
spring Boot项目启动报错如下
java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.<init>(Ljava/lang/Class;)V原因jar包重复,检查pom文件中是否有重复的jar包
Spring boot 启动报错版本不对
发现session store type使用来存放session的存储方式,目前Spring boot中只支持Redis方式。 由于本应用暂无需将session放入redis的需求,故这里就可以将session store type设置为none. 这里我们将此配置信息放入application.properites之中: spring.session.store-type=none 再次启动,成...
spring boot 启动报错,找不到DataSource
报错信息如下: 16:39:11.372 1653 [main] WARN o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext [AbstractApplicationContext.java:551] - Exception encountered during context initialization - cancellin...
spring boot初学入门-安装启动报错
spring boot启动时候出现Unregistering JMX-exposed beans on shutdown 网上查了下,各有各的解决方案,但自己试了下都不行。只好自己尝试找问题,解决方案: pom.xml里添加 org.apache.tomcat.maven tomcat7-maven-plugin 2.1 8080 UTF-8 t
spring boot项目IDEA启动报错问题解决
IDEA代码编辑器发展很快,现在很多都从Eclipse转到IDEA来了,我就是其中一个,感觉IDEA黑色的主题我感觉很不错 :wink: 好了,下面切入正题 Eclipse启动Spring boot没有报错,为啥IDEA启动就报错,报错提示如下: [code="java"]Caused by: org.springframework.context.ApplicationContextEx...
IDEA开发工具报错----spring boot启动报错
dea启动spring boot项目报错: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.Applica...
转:springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could b...
spring boot开发项目,部署到tomcat,启动报错
问题描述: spring boot开发项目,部署到tomcat,启动报错,提示“可能会有内存泄露”。 具体提示信息如下: 解决方式: (1)pom文件加入如下依赖:            dependency> groupId>se.jiderhamngroupId> artifactId>classloader-leak-prev
spring boot 分布式框架 启动报错 怎么解决?
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.loadFactoryNames(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljav...
spring boot 启动报错,求助,可能在线等.......
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quesTypeController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.china08.yxtiku.service.QuesTypeService com.china08.yxtiku.controller.admin.QuesTypeController.quesTypeService; nested exception is java.lang.IllegalArgumentException: Can not set com.china08.yxtiku.service.QuesTypeService field com.china08.yxtiku.controller.admin.QuesTypeController.quesTypeService to com.sun.proxy.$Proxy101rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)rn at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)rn at org.springframework.boot.context.web.SpringBootServletInitializer.run(SpringBootServletInitializer.java:117)rn at org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:108)rn at org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:68)rn at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5423)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)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:724)rnrnrnrn这是错误原因,框架是spring boot 在service 里面使用事务管理@transactional 启动报错,注释掉就没事,看样子就是这个问题,在线等....rnrn还有哪位有jpa 比较好的分页,以及查询,这个用起来真不好用
Spring Boot启动报错ERROR 3644 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
##报错类型:rnrn###Field xxxDao in xxxServiceImpl required a bean of type xxx that could not be found.rnrn详细情况如下:rnrn```javarnrnrn . ____ _ __ _ _rn /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \rn( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \rn \\/ ___)| |_)| | | | | || (_| | ) ) ) )rn ' |____| .__|_| |_|_| |_\__, | / / / /rn =========|_|==============|___/=/_/_/_/rn :: Spring Boot :: (v2.0.2.RELEASE)rnrn2019-07-19 10:45:06.433 INFO 3644 --- [ main] com.meituan.hotel.Application : Starting Application on LAPTOP-2N82SD03 with PID 3644 (E:\CodeCache\IDEA\Webmagic\meituan-crawler-hotel\target\classes started by 三寸旧城七寸执念 in E:\CodeCache\IDEA\Webmagic\meituan-crawler-hotel)rn2019-07-19 10:45:06.435 INFO 3644 --- [ main] com.meituan.hotel.Application : No active profile set, falling back to default profiles: defaultrn2019-07-19 10:45:06.472 INFO 3644 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@197d671: startup date [Fri Jul 19 10:45:06 CST 2019]; root of context hierarchyrn2019-07-19 10:45:07.211 INFO 3644 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)rn2019-07-19 10:45:07.229 INFO 3644 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]rn2019-07-19 10:45:07.229 INFO 3644 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31rn2019-07-19 10:45:07.232 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.6.5].rn2019-07-19 10:45:07.232 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn2019-07-19 10:45:07.232 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]rn2019-07-19 10:45:07.235 INFO 3644 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : OpenSSL successfully initialized [OpenSSL 1.1.1a 20 Nov 2018]rn2019-07-19 10:45:07.351 INFO 3644 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContextrn2019-07-19 10:45:07.351 INFO 3644 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 882 msrn2019-07-19 10:45:07.459 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]rn2019-07-19 10:45:07.462 INFO 3644 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]rn2019-07-19 10:45:07.490 WARN 3644 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hotelInfoServiceImpl': Unsatisfied dependency expressed through field 'hotelInfoDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.meituan.hotel.Dao.HotelInfoDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true)rn2019-07-19 10:45:07.492 INFO 3644 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]rn2019-07-19 10:45:07.504 INFO 3644 --- [ main] ConditionEvaluationReportLoggingListener : rnrnError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.rn2019-07-19 10:45:07.573 ERROR 3644 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : rnrn***************************rnAPPLICATION FAILED TO STARTrn***************************rnrnDescription:rnrnField hotelInfoDao in com.meituan.hotel.Service.impl.HotelInfoServiceImpl required a bean of type 'com.meituan.hotel.Dao.HotelInfoDao' that could not be found.rnrnrnAction:rnrnConsider defining a bean of type 'com.meituan.hotel.Dao.HotelInfoDao' in your configuration.rnrnrnProcess finished with exit code 1rnrn```rnrnrn### 最近网项目里面加了个模块,模块是基于gradle的工程,我本身的工程是基于maven的,没有导成功,我就把那个模块删除掉了,但是运行就出问题了,网上搜了很多,但是我的注解都加了,而且目录结构也没有问题,Application.class也的确在包的最外层。rnrn## 希望有大佬帮忙解答一下
spring boot用jdbctemplate连接数据库,启动报错
错误信息:rnjava.lang.TypeNotPresentException: Type org.springframework.test.context.ContextConfiguration not presentrn at sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:46) ~[na:1.8.0_151]rn at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:84) ~[na:1.8.0_151]rnjava.lang.ClassNotFoundException: org.springframework.test.context.ContextConfigurationrnrn----------------------------------------------------------------------------------------------------------------------------------------------------------------------------rn代码:rn[b]Application类:[/b]rnpackage com.weibo.dip;rnimport org.springframework.boot.SpringApplication;rnimport org.springframework.boot.test.SpringApplicationConfiguration;rnrn@SpringApplicationConfiguration(Application.class)rnpublic class Application rnrn public static void main(String[] args) rn SpringApplication.run(Application.class);rn rnrnrn[b]Cotroller类:[/b]rnpackage com.weibo.dip.controller;rnrnimport com.weibo.dip.bean.Dataset;rnimport com.weibo.dip.service.DatasetService;rnimport com.weibo.dip.serviceImpl.DatasetServiceImpl;rnimport org.springframework.beans.factory.annotation.Autowired;rnimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;rnimport org.springframework.web.bind.annotation.RequestMapping;rnimport org.springframework.web.bind.annotation.RestController;rnrnimport javax.annotation.Resource;rnrn@RestControllerrn@EnableAutoConfigurationrn@RequestMapping("/demo2")rnpublic class Controller rnrn @Resourcern private DatasetServiceImpl datasetService;rnrn public void setUp() rn // 准备,清空user表rn datasetService.deleteAllUsers();rn rnrn @RequestMapping("/save")rn public void test() throws Exception rn // 插入5个用户rn datasetService.create(1);rn datasetService.create(2);rn datasetService.create(3);rn datasetService.create(4);rn datasetService.create(5);rn rnrn @RequestMapping("/getById")rn public Dataset getById(int id)rn return datasetService.findDatasetById(id);rn rnrn
Spring Boot启动报错找不到Log4j2的实现
Spring Boot启动报错 1. 找不到Log4j2的实现 ERROR StatusLogger Log4j2 could not find a logging implementation ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classp...
spring boot打成war包在tomcat启动报错
公司有个maveni项目很乱,分了几个模块,后来做迁移,用spring boot启动。经过一段时间整理,在本地用spring boot启动已经没问题了,接口页面也都调通了,但是打成war放到tomcat就启动不了。求大神看看rn[img=https://img-bbs.csdn.net/upload/201706/12/1497247898_195215.png][/img]rnrn启动程序和pom.xml文件是这样的rn[img=https://img-bbs.csdn.net/upload/201706/12/1497248472_459903.png][/img]rn[img=https://img-bbs.csdn.net/upload/201706/12/1497248482_539707.png][/img]rn
Eclipse开发的spring boot项目用Idea启动报错
问题1:我想要读取子工程中的resource-files里面的文件,但是在子工程里面输出却是父工程项目,所以提示找不到文件,解决办法:idea打开run/debug configuration ,里面有一个Working directory:将值改成当前需要启动的项目路径即可。 ...
spring boot 2.0多数据源配置后启动报错
  使用了@SpringBootApplication的时候 @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
Spring boot的dao层继承jpa启动报错
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxController': Unsatisfied dependency expressed through field 'xxxService'; nested exception is org.sp...
spring boot项目启动报错,找不到XXX类
不是很懂csdn如何提问,所以先记录下来,也希望知道解决方案的能给点提示。问题描述:    新建一个spring boot工程,并且有如下项目:    项目一:cust-service,有启动类CustApplication、有依赖一个base服务(base没有application类,是以jar包形式提供一些基础代码)、还有调用一个feign的client服务,还有依赖并调用redis-serv...
Spring启动报错
启动报错 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.   Error starting ApplicationContext. To display the conditions report re-run ...
Spring cloud spring boot spring boot admin
Spring cloud spring boot spring boot admin。spring demo,
求救 tomcat启动报错
严重: Error deploying web application directory axis2rnjava.lang.UnsupportedClassVersionError: org/apache/axis2/transport/http/AxisServlet (Unsupported major.minor version 49.0)rn at java.lang.ClassLoader.defineClass0(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:502)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3960)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4283)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)rn at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)rn at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:598)rn 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:324)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
JBOSS启动报错,求救!
[code=Java]rn09:31:30,656 INFO [ServerImpl] Starting JBoss (Microcontainer)...rn09:31:30,656 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)rn09:31:30,656 INFO [ServerImpl] Bootstrap URL: nullrn09:31:30,656 INFO [ServerImpl] Home Dir: D:\work\jboss-5.1.0.GArn09:31:30,656 INFO [ServerImpl] Home URL: file:/D:/work/jboss-5.1.0.GA/rn09:31:30,656 INFO [ServerImpl] Library URL: file:/D:/work/jboss-5.1.0.GA/lib/rn09:31:30,656 INFO [ServerImpl] Patch URL: nullrn09:31:30,656 INFO [ServerImpl] Common Base URL: file:/D:/work/jboss-5.1.0.GA/common/rn09:31:30,671 INFO [ServerImpl] Common Library URL: file:/D:/work/jboss-5.1.0.GA/common/lib/rn09:31:30,671 INFO [ServerImpl] Server Name: defaultrn09:31:30,703 INFO [ServerImpl] Server Base Dir: D:\work\jboss-5.1.0.GA\serverrn09:31:30,703 INFO [ServerImpl] Server Base URL: file:/D:/work/jboss-5.1.0.GA/server/rn09:31:30,703 INFO [ServerImpl] Server Config URL: file:/D:/work/jboss-5.1.0.GA/server/default/conf/rn09:31:30,703 INFO [ServerImpl] Server Home Dir: D:\work\jboss-5.1.0.GA\server\defaultrn09:31:30,703 INFO [ServerImpl] Server Home URL: file:/D:/work/jboss-5.1.0.GA/server/default/rn09:31:30,703 INFO [ServerImpl] Server Data Dir: D:\work\jboss-5.1.0.GA\server\default\datarn09:31:30,703 INFO [ServerImpl] Server Library URL: file:/D:/work/jboss-5.1.0.GA/server/default/lib/rn09:31:30,703 INFO [ServerImpl] Server Log Dir: D:\work\jboss-5.1.0.GA\server\default\logrn09:31:30,703 INFO [ServerImpl] Server Native Dir: D:\work\jboss-5.1.0.GA\server\default\tmp\nativern09:31:30,703 INFO [ServerImpl] Server Temp Dir: D:\work\jboss-5.1.0.GA\server\default\tmprn09:31:30,703 INFO [ServerImpl] Server Temp Deploy Dir: D:\work\jboss-5.1.0.GA\server\default\tmp\deployrn09:31:31,265 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/work/jboss-5.1.0.GA/server/default/conf/bootstrap.xmlrn09:31:31,921 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]rn09:31:31,937 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]rn09:31:32,281 INFO [CopyMechanism] VFS temp dir: D:\work\jboss-5.1.0.GA\server\default\tmprn09:31:32,281 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.rn09:31:33,390 INFO [ServerInfo] Java version: 1.6.0-beta2,Sun Microsystems Inc.rn09:31:33,390 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86)rn09:31:33,390 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0-beta2-b86,Sun Microsystems Inc.rn09:31:33,390 INFO [ServerInfo] OS-System: Windows XP 5.1,x86rn09:31:33,390 INFO [ServerInfo] VM arguments: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1797 -Dprogram.name=JBossTools JBoss 5.1 Runtime -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=D:/work/jboss-5.1.0.GA/lib/endorsed -Dfile.encoding=GBK rn09:31:33,453 INFO [JMXKernel] Legacy JMX core initializedrn09:31:35,000 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@de3c87[domain=default, server=default, name=default]rn09:31:36,734 INFO [WebService] Using RMI server codebase: http://localhost:8083/rn09:31:40,390 ERROR [AbstractKernelController] Error installing to Create: name=ManagedConnectionFactoryParserDeployer state=Configuredrnjava.lang.IllegalArgumentException: interface org.jboss.managed.api.annotation.ManagementProperty is not visible from class loaderrn[/code]
求救。tomcat启动报错。
2012-5-9 16:34:00 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2012-5-9 16:34:07 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resXlGdgxDaoImpl': Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectcom.soft.pojo.WebRwInforn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:304)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1049)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:289)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:188)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:543)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:730)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:387)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:270)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:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InstantiationException: could not instantiate test objectcom.soft.pojo.WebRwInforn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1395)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:289)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:434)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:408)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:540)rn at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:192)rn at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:117)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:301)rn ... 37 morernCaused by: org.hibernate.InstantiationException: could not instantiate test objectcom.soft.pojo.WebRwInforn at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:48)rn at org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:67)rn at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:67)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:136)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:456)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:131)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:267)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)rn at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:813)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:731)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1454)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1392)rn ... 49 morernCaused by: java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:45)rn ... 63 morernCaused by: java.lang.StackOverflowErrorrn at java.util.HashMap.(HashMap.java:199)rn at java.util.HashSet.(HashSet.java:125)rn at com.soft.pojo.WebUserInfo.(WebUserInfo.java:26)rn at com.soft.pojo.WebJhInfo.(WebJhInfo.java:17)rn at com.soft.pojo.WebRwInfo.(WebRwInfo.java:18)rn at com.soft.pojo.WebJhInfo.(WebJhInfo.java:17)rn at com.soft.pojo.WebRwInfo.(WebRwInfo.java:18)rn at com.soft.pojo.WebJhInfo.(WebJhInfo.java:17)rn at com.soft.pojo.WebRwInfo.(WebRwInfo.java:18)rn2012-5-9 16:34:07 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2012-5-9 16:34:07 org.apache.catalina.core.StandardContext startrn严重: Context [/tzscgl] startup failed due to previous errorsrn2012-5-9 16:34:07 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2012-5-9 16:34:08 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8090rn2012-5-9 16:34:08 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-5-9 16:34:08 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/47 config=nullrn2012-5-9 16:34:08 org.apache.catalina.startup.Catalina startrn信息: Server startup in 10289 msrn以上是控制台打印出的东西,项目原来好着,第一个action做的登录和全查,做添加功能时启动就报这错,期间没改过配置文件,数据源那块应该没问题。下面报的错误不理解,求指教
Weblogic启动报错,在线求救!!!!
####<2003-7-7 下午01时36分01秒> .ioThreadPool'> <> <040095> , prefix = : write failedrnjava.io.IOException: JMS JDBC store, connection pool = , prefix = : SQL exceptionrnjava.sql.SQLException: Connection failure. sendMethodRequestNoFlush(...).rn at com.pointbase.dbexcp.dbexcpException.getSQLException(DashOB3242)rn at com.pointbase.net.netJDBCPrimitives.sendMethodRequestNoFlush(DashOB3242)rn at com.pointbase.net.netJDBCPrimitives.sendMethodRequest(DashOB3242)rn at com.pointbase.net.netJDBCConnection.prepareStatement(DashOB3242)rn at weblogic.jdbc.pool.Connection.prepareStatement(Connection.java:325)rn at weblogic.jms.store.JDBCIOStream.opendb(JDBCIOStream.java:1966)rn at weblogic.jms.store.JDBCIOStream.write(JDBCIOStream.java:433)rn at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:250)rn at weblogic.jms.store.JMSStore.execute(JMSStore.java:209)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)rnrn at weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:322)rn at weblogic.jms.store.JDBCIOStream.opendb(JDBCIOStream.java:2008)rn at weblogic.jms.store.JDBCIOStream.write(JDBCIOStream.java:433)rn at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:250)rn at weblogic.jms.store.JMSStore.execute(JMSStore.java:209)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)rn.> rnjava.io.IOException: JMS JDBC store, connection pool = , prefix = : write failedrnjava.io.IOException: JMS JDBC store, connection pool = , prefix = : SQL exceptionrnjava.sql.SQLException: Connection failure. sendMethodRequestNoFlush(...).rn at com.pointbase.dbexcp.dbexcpException.getSQLException(DashOB3242)rn at com.pointbase.net.netJDBCPrimitives.sendMethodRequestNoFlush(DashOB3242)rn at com.pointbase.net.netJDBCPrimitives.sendMethodRequest(DashOB3242)rn at com.pointbase.net.netJDBCConnection.prepareStatement(DashOB3242)rn at weblogic.jdbc.pool.Connection.prepareStatement(Connection.java:325)rn at weblogic.jms.store.JDBCIOStream.opendb(JDBCIOStream.java:1966)rn at weblogic.jms.store.JDBCIOStream.write(JDBCIOStream.java:433)rn at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:250)rn
Spring项目启动报错
Error creating bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0' defined in class path resource [spring-config.xml]: Initialization of bean failed; nested excep
spring快速配置启动报错
通过上  start.spring.io  对springboot包下载  采用maven   在启动项目时 控制台显示: 由于springboot采用自动装配,默认加载了数据源,但由于是新项目,并未配置数据源所以报错。 解决方法一: 在application.properties中配置数据源信息 解决方法二: 在加载时暂时不加载DataSourceAutoConfiguratio...
spring controller启动报错
[code=Java]rn@Controllerrnpublic class HomeControllerrnrn public static final int DEFAULT_SPITTLES_PER_PAGE = 25;rn rn @RequestMapping("/", "/home")rn public String showHomePage(Map model)rn rn return "home";rn rnrn[/code]rn只有这一个controller,tomcat启动的时候报错,上网找了一下,有人说是因为没有默认的构造函数的原因,但是加一个不带参数的构造函数也是这个样子,求高手帮帮忙,解决一下,先谢了rnrn严重: StandardWrapper.Throwablernorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeController' defined in file [D:\apache-tomcat-6.0.26\apache-tomcat-6.0.26\webapps\spitter\WEB-INF\classes\com\habuma\spitter\mvc\HomeController.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.habuma.spitter.mvc.HomeController]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.habuma.spitter.mvc.HomeController.()rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:946)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:890)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:443)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)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:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.habuma.spitter.mvc.HomeController]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.habuma.spitter.mvc.HomeController.()rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:69)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:938)rn ... 28 morernCaused by: java.lang.NoSuchMethodException: com.habuma.spitter.mvc.HomeController.()rn at java.lang.Class.getConstructor0(Class.java:2706)rn at java.lang.Class.getDeclaredConstructor(Class.java:1985)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:64)rn ... 29 morern2012-5-9 23:41:50 org.apache.catalina.core.StandardWrapperValve invokern严重: Allocate exception for servlet spitterrnjava.lang.NoSuchMethodException: com.habuma.spitter.mvc.HomeController.()rn at java.lang.Class.getConstructor0(Class.java:2706)rn at java.lang.Class.getDeclaredConstructor(Class.java:1985)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:64)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:938)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:890)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:443)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)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:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rn
spring roo 启动报错
以前装的spring roo,原本在dos窗口是好的,今天在eclipse里的roo命令执行了一个很简单的命令,但是没有执行成功,再次切回到dos窗口,进入roo时就报了一堆错,重装了roo还是报错,重启了电脑也是报错,有遇到同类问题的人吗?[img=https://img-bbs.csdn.net/upload/201307/11/1373510154_519904.jpg][/img]
spring boot 两个war包同时在tomcat中部署后启动报错
2017-05-25 17:14:38.858  INFO 11976 --- [ost-startStop-1] o.s.j.e.a.AnnotationMB eanExporter        : Registering beans for JMX exposure on startup 2017-05-25 17:14:38.871  INFO 11976 --- [ost-start
spring MVC项目启动报错
错误如下:rn[code=java]严重: StandardWrapper.Throwablernorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'snt.paymsgexchange.web.controller.demo.TestJsonData#0': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private snt.common.dao.base.CommonDAO snt.paymsgexchange.web.controller.demo.TestJsonData.comdao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [snt.common.dao.base.CommonDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=commonDAO)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:443)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)rn at javax.servlet.GenericServlet.init(GenericServlet.java:160)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908)rn at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1350)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1537)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1526)rn at java.lang.Thread.run(Thread.java:619)rn[/code]rncontroller文件大概如下:rn[code=java]@Controllerrn@RequestMapping("/query")rnpublic class TestJsonData rnrn @Autowiredrn @Qualifier("commonDAO")rn private CommonDAO comdao;rnrn[/code]rncommonDAO是我在spring启动时的一个beanrn[code=text]rnrn rn[/code]rn是不是配置顺序除了问题?
Spring 整合 Quartz 启动报错
配置文件代码:nnnn n n n n n n n n n n n n 3n n n n n n n n n n n n n n n n nnn**报错信息:**nnError creating bean with name 'localQuartzScheduler' defined in URL [file:/D:/Java/SVN/code/b2c/wzt-oauth-bundle/target/classes/spring/applicationContext-quartz.xml]: Cannot resolve reference to bean 'checkUserTask' while setting bean property 'triggers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkUserTask' defined in URL [file:/D:/Java/SVN/code/b2c/wzt-oauth-bundle/target/classes/spring/applicationContext-quartz.xml]: Cannot resolve reference to bean 'checkUserJob' while setting bean property 'jobDetail'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkUserJob' defined in URL [file:/D:/Java/SVN/code/b2c/wzt-oauth-bundle/target/classes/spring/applicationContext-quartz.xml]: Cannot resolve reference to bean 'userTask' while setting bean property 'targetObject'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'userTask' is definedn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)n at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)n at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)n at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)n at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)n at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)n at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)n at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)n at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)n at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)n at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)n at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)n at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)n at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540)n at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)n at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)n at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)n at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)n at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)n at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)n at org.mortbay.jetty.Server.doStart(Server.java:222)n at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)n at RunJetty.main(RunJetty.java:19)nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkUserTask' defined in URL [file:/D:/Java/SVN/code/b2c/wzt-oauth-bundle/target/classes/spring/applicationContext-quartz.xml]: Cannot resolve reference to bean 'checkUserJob' while setting bean property 'jobDetail'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkUserJob' defined in URL [file:/D:/Java/SVN/code/b2c/wzt-oauth-bundle/target/classes/spring/applicationContext-quartz.xml]: Cannot resolve reference to bean 'userTask' while setting bean property 'targetObject'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'userTask' is definedn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)n at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)n at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)n at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)n at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)n at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)n at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)n ... 27 more
spring cloud项目启动报错
快来游戏启动报错: 先说解决办法 把这两个模块加上去。不要引用外部文件 报错什么错:
C3P0数据源在spring启动报错
我用c3p0连接sybase数据库,结果c3p0报错了,错误如下:rn[code=Java]SQLWarnings - Character set conversion is not available between client character set 'eucgb' and server character set 'cp850'.rnrnjava.sql.SQLWarning: Character set conversion is not available between client character set 'eucgb' and server character set 'cp850'.rnrn at net.sourceforge.jtds.jdbc.TdsCore.tdsLoginAckToken(TdsCore.java:2979)rn at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2264)rn at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:610)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:345)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)rn at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)rn at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)rn at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)rn at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)rn at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)rn at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)rn at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)rn at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)rn at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)rnC3P0PooledConnectionPool - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@16e8707.acquireResource() returning. rnSQLWarnings - Character set conversion is not available between client character set 'eucgb' and server character set 'cp850'.[/code]rnrn我的url写的是:jdbc:jtds:sybase://192.168.0.63:5000/test;charset=eucgbrn请问这是错误在哪里呢?
spring cloud 启动报错
ERROR 8824 --- [tbeatExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution errorrnrncom.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connectrn at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) ~[jersey-apache-client4-1.19.1.jar:1.19.1]rn at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123) ~[jersey-client-1.19.1.jar:1.19.1]rn at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27) ~[eureka-client-1.7.0.jar:1.7.0]rn at com.sun.jersey.api.client.Client.handle(Client.java:652) ~[jersey-client-1.19.1.jar:1.19.1]rn at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682) ~[jersey-client-1.19.1.jar:1.19.1]rn at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) ~[jersey-client-1.19.1.jar:1.19.1]rn..........rnrn在网上搜到都是添加 register-with-eureka: false fetch-registry: false 这两条, 但是加上 还是报同样的错 这是为什么? 哪位大神帮帮忙 看看 到底是什么原因!
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法