Score
0
Watch 3K Star 6.4K Fork 3.1K

ThinkGem / JeeSite 4.xJavaAGPL-3.0

微服务版本core项目启动报错

Closed
张光华  Opened this issue

该问题是怎么引起的?

启动项目报错

重现步骤

按照步骤先启动eureka,config,gateway,启动到core时项目报错,报错缺少class

报错信息

2019-10-08 16:41:56.797 ERROR 1536 [ main] [c.j.c.mybatis.SqlSessionFactoryBean ] - Failed to parse mapping resource: 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'

org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.configurationElement(fy:118)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.parse(fy:106)
at com.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactoryImpl(cw:415)
at com.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactory(cw:282)
at com.jeesite.common.mybatis.SqlSessionFactoryBean.afterPropertiesSet(cw:325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1753)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1690)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:239)
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:196)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:406)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:886)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.cloud.context.named.NamedContextFactory.createContext(NamedContextFactory.java:117)
at org.springframework.cloud.context.named.NamedContextFactory.getContext(NamedContextFactory.java:85)
at org.springframework.cloud.context.named.NamedContextFactory.getInstance(NamedContextFactory.java:126)
at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceFeignContext.getInstance(TraceFeignContext.java:45)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.get(FeignClientFactoryBean.java:205)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.feign(FeignClientFactoryBean.java:84)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.getTarget(FeignClientFactoryBean.java:241)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.getObject(FeignClientFactoryBean.java:232)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:171)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1654)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1174)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:257)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1322)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1288)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1098)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessorAutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:581)atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:370)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1336)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:572)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)atorg.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:548)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230)
at com.jeesite.modules.CoreApplication.main(CoreApplication.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:58)
Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:118)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:74)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.buildStatementFromContext(fy:125)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.buildStatementFromContext(fy:114)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.configurationElement(fy:180)
... 67 common frames omitted
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120)
at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149)
at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116)
... 71 common frames omitted
Caused by: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)
at org.apache.ibatis.io.Resources.classForName(Resources.java:261)
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)
... 73 common frames omitted

2019-10-08 16:41:58.910 ERROR 1536 [ main] [o.s.boot.SpringApplication ] - Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'demoController': Unsatisfied dependency expressed through field 'testDataService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.jeesite.modules.test.client.TestDataServiceClient': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/jeesite/autoconfigure/core/MyBatisAutoConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessorAutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:584)atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:370)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1336)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:572)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)atorg.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean0(AbstractBeanFactory.java:317)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:548)atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:307)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1242)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1230)atcom.jeesite.modules.CoreApplication.main(CoreApplication.java:22)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)atorg.springframework.boot.loader.Launcher.launch(Launcher.java:87)atorg.springframework.boot.loader.Launcher.launch(Launcher.java:50)atorg.springframework.boot.loader.WarLauncher.main(WarLauncher.java:58)Causedby:org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′com.jeesite.modules.test.client.TestDataServiceClient′:FactoryBeanthrewexceptiononobjectcreation;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′sqlSessionFactory′definedinclasspathresource[com/jeesite/autoconfigure/core/MyBatisAutoConfiguration.class]:Invocationofinitmethodfailed;nestedexceptionisorg.springframework.core.NestedIOException:Failedtoparsemappingresource:′URL[jar:file:/E:/study/jeesiteSource/v20191008/thinkgem−jeesite4−cloud−v4.1dev/jeesite4−cloud/modules/core/core/target/web.war!/WEB−INF/lib/jeesite−framework−4.1.7−SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]′;nestedexceptionisorg.apache.ibatis.builder.BuilderException:ErrorparsingMapperXML.TheXMLlocationis′URL[jar:file:/E:/study/jeesiteSource/v20191008/thinkgem−jeesite4−cloud−v4.1dev/jeesite4−cloud/modules/core/core/target/web.war!/WEB−INF/lib/jeesite−framework−4.1.7−SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]′.Cause:org.apache.ibatis.builder.BuilderException:Errorresolvingclass.Cause:org.apache.ibatis.type.TypeException:Couldnotresolvetypealias′MsgPush′.Cause:java.lang.ClassNotFoundException:Cannotfindclass:MsgPushatorg.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178)atorg.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101)atorg.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1654)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1174)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:257)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1322)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1288)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1098)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessorAutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:581)
... 27 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/jeesite/autoconfigure/core/MyBatisAutoConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1694)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:239)
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:196)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:406)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:886)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.cloud.context.named.NamedContextFactory.createContext(NamedContextFactory.java:117)
at org.springframework.cloud.context.named.NamedContextFactory.getContext(NamedContextFactory.java:85)
at org.springframework.cloud.context.named.NamedContextFactory.getInstance(NamedContextFactory.java:126)
at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceFeignContext.getInstance(TraceFeignContext.java:45)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.get(FeignClientFactoryBean.java:205)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.feign(FeignClientFactoryBean.java:84)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.getTarget(FeignClientFactoryBean.java:241)
at org.springframework.cloud.openfeign.FeignClientFactoryBean.getObject(FeignClientFactoryBean.java:232)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:171)
... 38 common frames omitted
Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at com.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactoryImpl(cw:601)
at com.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactory(cw:282)
at com.jeesite.common.mybatis.SqlSessionFactoryBean.afterPropertiesSet(cw:325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1753)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1690)
... 61 common frames omitted
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'URL [jar:file:/E:/study/jeesiteSource/v20191008/thinkgem-jeesite4-cloud-v4.1_dev/jeesite4-cloud/modules/core/core/target/web.war!/WEB-INF/lib/jeesite-framework-4.1.7-SNAPSHOT.jar!/mappings/modules/msg/MsgPushDao.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.configurationElement(fy:118)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.parse(fy:106)
at com.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactoryImpl(cw:415)
... 65 common frames omitted
Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:118)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:74)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.buildStatementFromContext(fy:125)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.buildStatementFromContext(fy:114)
at com.jeesite.common.mybatis.mapper.xml.XMLMapperBuilder.configurationElement(fy:180)
... 67 common frames omitted
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'MsgPush'. Cause: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120)
at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149)
at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116)
... 71 common frames omitted
Caused by: java.lang.ClassNotFoundException: Cannot find class: MsgPush
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)
at org.apache.ibatis.io.Resources.classForName(Resources.java:261)
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)
... 73 common frames omitted

2019-10-08 16:42:07.683 ERROR 1536 [freshExecutor-0] [com.netflix.discovery.DiscoveryClient ] - Cannot fetch registry from server

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/jeesite/autoconfigure/core/MyBatisAutoConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXException: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/apache/ibatis/builder/xml/mybatis-3-config.dtd]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1694)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:239)
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:196)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)
at org.springframework.cloud.netflix.eureka.CloudEurekaClient.onCacheRefreshed(CloudEurekaClient.java:112)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:981)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClientCacheRefreshThread.run(DiscoveryClient.java:1440)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutorWorker.run(UnknownSource)atjava.lang.Thread.run(UnknownSource)Causedby:org.apache.ibatis.builder.BuilderException:Errorcreatingdocumentinstance.Cause:org.xml.sax.SAXException:java.lang.IllegalStateException:Illegalaccess:thiswebapplicationinstancehasbeenstoppedalready.Couldnotload[org/apache/ibatis/builder/xml/mybatis−3−config.dtd].Thefollowingstacktraceisthrownfordebuggingpurposesaswellastoattempttoterminatethethreadwhichcausedtheillegalaccess.atorg.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:259)atorg.apache.ibatis.parsing.XPathParser.(XPathParser.java:125)atorg.apache.ibatis.builder.xml.XMLConfigBuilder.(XMLConfigBuilder.java:82)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactoryImpl(cw:577)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactory(cw:282)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.afterPropertiesSet(cw:325)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1753)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1690)...20commonframesomittedCausedby:org.xml.sax.SAXException:java.lang.IllegalStateException:Illegalaccess:thiswebapplicationinstancehasbeenstoppedalready.Couldnotload[org/apache/ibatis/builder/xml/mybatis−3−config.dtd].Thefollowingstacktraceisthrownfordebuggingpurposesaswellastoattempttoterminatethethreadwhichcausedtheillegalaccess.atorg.apache.ibatis.builder.xml.XMLMapperEntityResolver.resolveEntity(XMLMapperEntityResolver.java:65)atcom.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplDTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplDTDDriver.next(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplPrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:257)
... 27 common frames omitted

2019-10-08 16:42:12.766 ERROR 1536 [freshExecutor-0] [com.netflix.discovery.DiscoveryClient ] - Cannot fetch registry from server

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/jeesite/autoconfigure/core/MyBatisAutoConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXException: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/apache/ibatis/builder/xml/mybatis-3-config.dtd]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1694)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:239)
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:196)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)
at org.springframework.cloud.netflix.eureka.CloudEurekaClient.onCacheRefreshed(CloudEurekaClient.java:112)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:981)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClientCacheRefreshThread.run(DiscoveryClient.java:1440)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutorWorker.run(UnknownSource)atjava.lang.Thread.run(UnknownSource)Causedby:org.apache.ibatis.builder.BuilderException:Errorcreatingdocumentinstance.Cause:org.xml.sax.SAXException:java.lang.IllegalStateException:Illegalaccess:thiswebapplicationinstancehasbeenstoppedalready.Couldnotload[org/apache/ibatis/builder/xml/mybatis−3−config.dtd].Thefollowingstacktraceisthrownfordebuggingpurposesaswellastoattempttoterminatethethreadwhichcausedtheillegalaccess.atorg.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:259)atorg.apache.ibatis.parsing.XPathParser.(XPathParser.java:125)atorg.apache.ibatis.builder.xml.XMLConfigBuilder.(XMLConfigBuilder.java:82)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactoryImpl(cw:577)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactory(cw:282)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.afterPropertiesSet(cw:325)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1753)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1690)...20commonframesomittedCausedby:org.xml.sax.SAXException:java.lang.IllegalStateException:Illegalaccess:thiswebapplicationinstancehasbeenstoppedalready.Couldnotload[org/apache/ibatis/builder/xml/mybatis−3−config.dtd].Thefollowingstacktraceisthrownfordebuggingpurposesaswellastoattempttoterminatethethreadwhichcausedtheillegalaccess.atorg.apache.ibatis.builder.xml.XMLMapperEntityResolver.resolveEntity(XMLMapperEntityResolver.java:65)atcom.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplDTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplDTDDriver.next(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplPrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:257)
... 27 common frames omitted

2019-10-08 16:42:17.841 ERROR 1536 [freshExecutor-0] [com.netflix.discovery.DiscoveryClient ] - Cannot fetch registry from server

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/jeesite/autoconfigure/core/MyBatisAutoConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXException: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/apache/ibatis/builder/xml/mybatis-3-config.dtd]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1694)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:239)
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:196)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)
at org.springframework.cloud.netflix.eureka.CloudEurekaClient.onCacheRefreshed(CloudEurekaClient.java:112)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:981)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClientCacheRefreshThread.run(DiscoveryClient.java:1440)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutorWorker.run(UnknownSource)atjava.lang.Thread.run(UnknownSource)Causedby:org.apache.ibatis.builder.BuilderException:Errorcreatingdocumentinstance.Cause:org.xml.sax.SAXException:java.lang.IllegalStateException:Illegalaccess:thiswebapplicationinstancehasbeenstoppedalready.Couldnotload[org/apache/ibatis/builder/xml/mybatis−3−config.dtd].Thefollowingstacktraceisthrownfordebuggingpurposesaswellastoattempttoterminatethethreadwhichcausedtheillegalaccess.atorg.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:259)atorg.apache.ibatis.parsing.XPathParser.(XPathParser.java:125)atorg.apache.ibatis.builder.xml.XMLConfigBuilder.(XMLConfigBuilder.java:82)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactoryImpl(cw:577)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.buildSqlSessionFactory(cw:282)atcom.jeesite.common.mybatis.SqlSessionFactoryBean.afterPropertiesSet(cw:325)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1753)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1690)...20commonframesomittedCausedby:org.xml.sax.SAXException:java.lang.IllegalStateException:Illegalaccess:thiswebapplicationinstancehasbeenstoppedalready.Couldnotload[org/apache/ibatis/builder/xml/mybatis−3−config.dtd].Thefollowingstacktraceisthrownfordebuggingpurposesaswellastoattempttoterminatethethreadwhichcausedtheillegalaccess.atorg.apache.ibatis.builder.xml.XMLMapperEntityResolver.resolveEntity(XMLMapperEntityResolver.java:65)atcom.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplDTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplDTDDriver.next(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplPrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:257)
... 27 common frames omitted

6732_thinkgem total 2 participants

Comments (1)

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority

Help Search