??977 2017-10-08 06:23 采纳率: 0%
浏览 584

Maven项目启动时连接虚拟机中的Oracle数据库无法创建表!控制台信息如下

怎么解决呀!

[INFO] Scanning for projects...
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building bos_management 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ bos_management >>>
[WARNING] The POM for com.oracle:ojdbc6:jar:11.2.0.1.0 is missing, no dependency information available
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bos_management ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ bos_management ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ bos_management <<<
[INFO]
[INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ bos_management ---
[INFO] Running war on http://localhost:8080/bos_management
[INFO] Using existing Tomcat server configuration at D:\develop\springwork\struts2\bos_management\target\tomcat
十月 08, 2017 2:07:57 下午 org.apache.catalina.startup.Embedded start
信息: Starting tomcat server
十月 08, 2017 2:07:57 下午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
十月 08, 2017 2:07:57 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
14:07:57,673 INFO ContextLoader:285 - Root WebApplicationContext: initialization started
14:07:57,759 INFO XmlWebApplicationContext:510 - Refreshing Root WebApplicationContext: startup date [Sun Oct 08 14:07:57 CST 2017]; root of context hierarchy
14:07:57,798 INFO XmlBeanDefinitionReader:317 - Loading XML bean definitions from class path resource [applicationContext.xml]
14:07:58,207 INFO PropertySourcesPlaceholderConfigurer:172 - Loading properties file from class path resource [config.properties]
14:07:58,216 INFO AutowiredAnnotationBeanPostProcessor:153 - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
14:07:58,274 INFO MLog:80 - MLog clients using log4j logging.
14:07:58,373 INFO C3P0Registry:204 - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
14:07:58,512 INFO LocalContainerEntityManagerFactoryBean:339 - Building JPA container EntityManagerFactory for persistence unit 'default'
14:07:58,548 INFO LogHelper:31 - HHH000204: Processing PersistenceUnitInfo [
name: default
...]
14:07:58,654 INFO Version:37 - HHH000412: Hibernate Core {5.0.1.Final}
14:07:58,656 INFO Environment:213 - HHH000206: hibernate.properties not found
14:07:58,659 INFO Environment:317 - HHH000021: Bytecode provider name : javassist
14:07:58,712 INFO Version:66 - HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
14:07:58,918 INFO AbstractPoolBackedDataSource:462 - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgegp29q1xj59p4qn28vm|414f13fc, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgegp29q1xj59p4qn28vm|414f13fc, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@localhost:1521:XE, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]

  • 写回答

1条回答 默认 最新

  • lshen01 2023-03-16 10:26
    关注

    参考GPT和自己的思路:

    根据控制台信息,可以发现“[WARNING] The POM for com.oracle:ojdbc6:jar:11.2.0.1.0 is missing, no dependency information available”,也就是说,缺失“com.oracle:ojdbc6:jar:11.2.0.1.0”的POM文件或者该依赖未被正确地引入。因此,需要检查项目的pom.xml文件是否正确地配置了该依赖项,并且需要确保该依赖对应的jar包已被正确下载到本地仓库。同时,也需要检查所连接的Oracle数据库是否正确地部署及相关的驱动是否正确配置。如果以上问题都排除正确后,还需进一步考虑具体的错误原因及解决方法。

    评论

报告相同问题?

悬赏问题

  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP