??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 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记