MaoWenCai opened a new issue #12613:
URL: https://github.com/apache/shardingsphere/issues/12613
pom.xml
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
<version>4.1.1</version>
</dependency>
Error starting ApplicationContext. To display the auto-configuration report
re-run your application with 'debug' enabled.
2021-09-22 11:31:02.861 [main] ERROR o.s.b.SpringApplication(line:771) -
Application startup failed
org.springframework.context.ApplicationContextException: Unable to start
embedded container; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'tomcatEmbeddedServletContainerFactory' defined in class path
resource
[org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ceepPortalWebApplication': Injection of resource dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'shardingDataSource' defined in class path resource
[org/apache/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[javax.sql.DataSource
]: Factory method 'shardingDataSource' threw exception; nested exception is
java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)
~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
~[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at
com.shcepp.ceep.CeepPortalWebApplication.main(CeepPortalWebApplication.java:45)
[classes/:?]
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in
class path resource
[org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ceepPortalWebApplication': Injection of resource dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'shardingDataSource' defined in class path resource
[org/apache/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[javax.sql.DataSource]: Factory method 'shardingDataSource' threw exception;
nested exception is java.sql.SQLSyntaxErrorExc
eption: ORA-00942: 表或视图不存在
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)
~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:199)
~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162)
~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
... 6 more
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]