della0887 发表于 2018-1-6 06:06:49

K8s的POD连接数据库时报错

# ./showlog.sh dr  
iff-dr-1128668949-lb90g
  
2017-09-29 03:21:57,575 INFO (main) WFSWARM0013: Installed fraction:                  Logging - STABLE          org.wildfly.swarm:logging:2017.8.1
  
2017-09-29 03:21:57,612 INFO (main) WFSWARM0013: Installed fraction:               Logstash - STABLE          org.wildfly.swarm:logstash:2017.8.1
  
2017-09-29 03:21:57,612 INFO (main) WFSWARM0013: Installed fraction:          Bean Validation - STABLE          org.wildfly.swarm:bean-validation:2017.8.1
  
2017-09-29 03:21:57,612 INFO (main) WFSWARM0013: Installed fraction:      CDI Configuration - STABLE          org.wildfly.swarm:cdi-config:2017.8.1
  
2017-09-29 03:21:57,612 INFO (main) WFSWARM0013: Installed fraction:             Transactions - STABLE          org.wildfly.swarm:transactions:2017.8.1
  
2017-09-29 03:21:57,613 INFO (main) WFSWARM0013: Installed fraction:                      CDI - STABLE          org.wildfly.swarm:cdi:2017.8.1
  
2017-09-29 03:21:57,613 INFO (main) WFSWARM0013: Installed fraction:                   JAX-RS - STABLE          org.wildfly.swarm:jaxrs:2017.8.1
  
2017-09-29 03:21:57,614 WARN (main) WFSWARM0013: Installed fraction: CDI JAX-RS API Enhancements - EXPERIMENTAL    org.wildfly.swarm:cdi-jaxrsapi:2017.8.1
  
2017-09-29 03:21:57,615 INFO (main) WFSWARM0013: Installed fraction:      Hibernate Validator - STABLE          org.wildfly.swarm:hibernate-validator:2017.8.1
  
2017-09-29 03:21:57,615 INFO (main) WFSWARM0013: Installed fraction:   JAX-RS with Validation - STABLE          org.wildfly.swarm:jaxrs-validator:2017.8.1
  
2017-09-29 03:21:57,615 INFO (main) WFSWARM0013: Installed fraction:                      JCA - STABLE          org.wildfly.swarm:jca:2017.8.1
  
2017-09-29 03:21:57,615 INFO (main) WFSWARM0013: Installed fraction:            Datasources - STABLE          org.wildfly.swarm:datasources:2017.8.1
  
2017-09-29 03:21:57,615 INFO (main) WFSWARM0013: Installed fraction:                      JPA - STABLE          org.wildfly.swarm:jpa:2017.8.1
  
2017-09-29 03:21:57,616 INFO (main) WFSWARM0013: Installed fraction:                      EJB - STABLE          org.wildfly.swarm:ejb:2017.8.1
  
2017-09-29 03:21:57,616 INFO (main) WFSWARM0013: Installed fraction:               Undertow - STABLE          org.wildfly.swarm:undertow:2017.8.1
  
2017-09-29 03:21:57,616 INFO (main) WFSWARM0013: Installed fraction:               Keycloak - STABLE          org.wildfly.swarm:keycloak:2017.8.1
  
2017-09-29 03:22:01,000 INFO (main) WFSWARM1003: Auto-detected JDBC driver for h2
  
2017-09-29 03:22:01,060 INFO (main) WFSWARM1003: Auto-detected JDBC driver for mysql
  
2017-09-29 03:22:01,065 INFO (main) WFSWARM1003: Auto-detected JDBC driver for postgresql
  
2017-09-29 03:22:02,411 INFO (main) JBoss MSC version 1.2.6.Final
  
2017-09-29 03:22:02,595 INFO (MSC service thread 1-8) WFLYSRV0049: WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) starting
  
2017-09-29 03:22:02,694 INFO (MSC service thread 1-8) WFSWARM0019: Install MSC service for command line args: []

  
2017-09-29 03:22:03,979 WARN (ServerService Thread Pool -- 20) WFLYTX0013: Node>  
2017-09-29 03:22:03,995 INFO (ServerService Thread Pool -- 21) WFLYSEC0002: Activating Security Subsystem
  
2017-09-29 03:22:04,001 INFO (ServerService Thread Pool -- 26) WFLYNAM0001: Activating Naming Subsystem
  
2017-09-29 03:22:04,031 INFO (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service
  
2017-09-29 03:22:04,065 INFO (MSC service thread 1-5) WFLYUT0003: Undertow 1.4.11.Final starting
  
2017-09-29 03:22:04,067 INFO (MSC service thread 1-6) WFLYSEC0001: Current PicketBox version=4.9.6.Final
  
2017-09-29 03:22:04,071 INFO (ServerService Thread Pool -- 25) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
  
2017-09-29 03:22:04,116 INFO (MSC service thread 1-1) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.4.Final)

  
2017-09-29 03:22:04,127 INFO (ServerService Thread Pool -- 19) WFLYJCA0005: Deploying non-JDBC-compliant driver>  
2017-09-29 03:22:04,157 INFO (MSC service thread 1-5) WFLYJCA0018: Started Driver service with driver-name = com.mysql

  
2017-09-29 03:22:04,177 INFO (ServerService Thread Pool -- 19) WFLYJCA0004: Deploying JDBC-compliant driver>
  
2017-09-29 03:22:04,188 INFO (ServerService Thread Pool -- 19) WFLYJCA0005: Deploying non-JDBC-compliant driver>  
2017-09-29 03:22:04,193 INFO (MSC service thread 1-4) WFLYJCA0018: Started Driver service with driver-name = h2
  
2017-09-29 03:22:04,204 INFO (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = mysql

  
2017-09-29 03:22:04,219 INFO (ServerService Thread Pool -- 19) WFLYJCA0005: Deploying non-JDBC-compliant driver>  
2017-09-29 03:22:04,222 INFO (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = postgresql
  
2017-09-29 03:22:04,234 INFO (MSC service thread 1-8) XNIO version 3.4.3.Final
  
2017-09-29 03:22:04,266 INFO (MSC service thread 1-8) XNIO NIO Implementation Version 3.4.3.Final
  
2017-09-29 03:22:04,378 INFO (MSC service thread 1-1) WFLYUT0012: Started server default-server.
  
2017-09-29 03:22:04,539 INFO (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on 0.0.0.0:8080
  
2017-09-29 03:22:04,709 INFO (MSC service thread 1-7) WFLYJCA0001: Bound data source
  
2017-09-29 03:22:04,831 INFO (Controller Boot Thread) WFLYSRV0025: WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) started in 2556ms - Started 144 of 157 services (28 services are lazy, passive or on-demand)
  
2017-09-29 03:22:07,494 INFO (main) deploying delayreq.war
  
2017-09-29 03:22:07,527 INFO (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "delayreq.war" (runtime-name: "delayreq.war")
  
2017-09-29 03:22:09,708 INFO (MSC service thread 1-3) WFLYJPA0002: Read persistence.xml for DrPU
  
2017-09-29 03:22:10,244 WARN (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.delayreq.war" is using a private module ("org.jboss.ironjacamar.jdbcadapters:main") which may be changed or removed in future versions without notice.
  
2017-09-29 03:22:10,245 WARN (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.delayreq.war" is using a private module ("org.jboss.jts:main") which may be changed or removed in future versions without notice.
  
2017-09-29 03:22:10,356 INFO (ServerService Thread Pool -- 6) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'delayreq.war#DrPU'
  
2017-09-29 03:22:10,400 INFO (ServerService Thread Pool -- 6) HHH000204: Processing PersistenceUnitInfo [
  name: DrPU
  ...]
  
2017-09-29 03:22:10,402 INFO (MSC service thread 1-1) WFLYWELD0003: Processing weld deployment delayreq.war
  
2017-09-29 03:22:10,494 INFO (MSC service thread 1-1) HV000001: Hibernate Validator 5.2.4.Final
  
2017-09-29 03:22:10,497 INFO (ServerService Thread Pool -- 6) HHH000412: Hibernate Core {5.0.10.Final}
  
2017-09-29 03:22:10,498 INFO (ServerService Thread Pool -- 6) HHH000206: hibernate.properties not found
  
2017-09-29 03:22:10,500 INFO (ServerService Thread Pool -- 6) HHH000021: Bytecode provider name : javassist
  
2017-09-29 03:22:10,564 INFO (ServerService Thread Pool -- 6) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
  
2017-09-29 03:22:10,570 INFO (MSC service thread 1-1) HV000007: META-INF/validation.xml found. Parsing XML based configuration.

  
2017-09-29 03:22:10,969 INFO (MSC service thread 1-1) WFLYJCA0005: Deploying non-JDBC-compliant driver>
  
2017-09-29 03:22:10,970 INFO (MSC service thread 1-1) WFLYJCA0005: Deploying non-JDBC-compliant driver>
  
2017-09-29 03:22:10,971 INFO (MSC service thread 1-1) WFLYJCA0004: Deploying JDBC-compliant driver>
  
2017-09-29 03:22:10,973 INFO (MSC service thread 1-1) WFLYJCA0005: Deploying non-JDBC-compliant driver>  
2017-09-29 03:22:11,003 INFO (MSC service thread 1-1) WELD-000900: 2.3.5 (Final)
  
2017-09-29 03:22:11,070 INFO (MSC service thread 1-4) WFLYUT0018: Host default-host starting
  
2017-09-29 03:22:11,081 INFO (MSC service thread 1-6) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_org.postgresql.Driver_9_4
  
2017-09-29 03:22:11,081 INFO (MSC service thread 1-6) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_com.mysql.jdbc.Driver_5_1
  
2017-09-29 03:22:11,084 INFO (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_org.h2.Driver_1_4
  
2017-09-29 03:22:11,085 INFO (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1
  
2017-09-29 03:22:11,266 INFO (ServerService Thread Pool -- 6) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'delayreq.war#DrPU'
  
2017-09-29 03:22:11,628 WARN (ServerService Thread Pool -- 6) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to create connection
  at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:345)
  at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
  at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
  at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1320)
  at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:496)
  at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:617)
  at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:589)
  at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:590)
  at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:429)
  at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:747)
  at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:138)
  at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:66)
  at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
  at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180)
  at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68)
  at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
  at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:254)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:228)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
  at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
  at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
  at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
  at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
  at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)
  at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)
  at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:161)
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:121)
  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:193)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:748)
  at org.jboss.threads.JBossThread.run(JBossThread.java:320)
  
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  

  
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:989)
  at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)
  at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2203)
  at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2236)
  at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2035)
  at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790)
  at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
  at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
  ... 36 more
  
Caused by: java.net.UnknownHostException: dev.mysql.mayocase.com: Name does not resolve
  at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
  at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
  at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
  at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
  at java.net.InetAddress.getAllByName(InetAddress.java:1192)
  at java.net.InetAddress.getAllByName(InetAddress.java:1126)
  at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:188)
  at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
  ... 49 more
  

  
2017-09-29 03:22:11,630 WARN (ServerService Thread Pool -- 6) HHH000342: Could not obtain connection to query metadata : javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/ExampleDS
  
2017-09-29 03:22:11,632 ERROR (ServerService Thread Pool -- 6) MSC000001: Failed to start service jboss.persistenceunit."delayreq.war#DrPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."delayreq.war#DrPU": org.hibernate.service.spi.ServiceException: Unable to create requested service
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:179)
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:121)
  at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:193)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:748)
  at org.jboss.threads.JBossThread.run(JBossThread.java:320)
  
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:264)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:228)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
  at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
  at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
  at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
  at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
  at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)
  at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)
  at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:161)
  ... 7 more
  
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
  at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100)
  at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54)
  at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
  at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
  at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:254)
  ... 19 more
  

  
2017-09-29 03:22:11,695 ERROR (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "delayreq.war")) - failure description: {
  "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service
  Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service
  Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},
  "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],
  "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
  
}
  
2017-09-29 03:22:11,697 ERROR (main) WFLYSRV0021: Deploy of deployment "delayreq.war" was rolled back with the following failure message:
  
{
  "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service
  Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service
  Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},
  "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],
  "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
  
}
  
2017-09-29 03:22:11,704 INFO (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_org.postgresql.Driver_9_4
  
2017-09-29 03:22:11,705 INFO (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_com.mysql.jdbc.Driver_5_1
  
2017-09-29 03:22:11,705 INFO (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_org.h2.Driver_1_4
  
2017-09-29 03:22:11,705 INFO (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1
  
2017-09-29 03:22:11,767 INFO (ServerService Thread Pool -- 6) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'delayreq.war#DrPU'
  
2017-09-29 03:22:11,781 INFO (MSC service thread 1-6) WFLYUT0019: Host default-host stopping
  
2017-09-29 03:22:12,102 INFO (MSC service thread 1-5) WFLYSRV0028: Stopped deployment delayreq.war (runtime-name: delayreq.war) in 405ms
  
2017-09-29 03:22:12,104 INFO (main) WFLYCTL0183: Service status report
  
WFLYCTL0184:    New missing/unsatisfied dependencies:
  service jboss.deployment.unit."delayreq.war".WeldBootstrapService (missing) dependents:
  service jboss.deployment.unit."delayreq.war".WeldStartService (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents:
  service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (missing) dependents:
  service jboss.deployment.unit."delayreq.war".ee.ComponentRegistry (missing) dependents:
  service jboss.deployment.unit."delayreq.war".jndiDependencyService (missing) dependents:
  service jboss.persistenceunit."delayreq.war#DrPU" (missing) dependents:
  service jboss.undertow.deployment.default-server.default-host./dr/rest (missing) dependents:
  service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService (missing) dependents:
  service jboss.undertow.deployment.default-server.default-host./dr/rest.codec (missing) dependents:
  service jboss.undertow.deployment.default-server.default-host./dr/rest.session (missing) dependents:
  service org.wildfly.request-controller.control-point."delayreq.war".undertow (missing) dependents:
  
WFLYCTL0186:   Services which failed to start:      service jboss.persistenceunit."delayreq.war#DrPU"
  

  
2017-09-29 03:22:12,108 INFO (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = mysql
  
2017-09-29 03:22:12,109 INFO (MSC service thread 1-6) WFLYJCA0019: Stopped Driver service with driver-name = h2
  
2017-09-29 03:22:12,115 INFO (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = postgresql
  
2017-09-29 03:22:12,118 INFO (MSC service thread 1-1) WFLYJCA0010: Unbound data source
  
2017-09-29 03:22:12,194 INFO (MSC service thread 1-8) WFLYUT0008: Undertow HTTP listener default suspending
  
2017-09-29 03:22:12,196 INFO (MSC service thread 1-8) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 0.0.0.0:8080
  
2017-09-29 03:22:12,204 INFO (MSC service thread 1-8) WFLYUT0004: Undertow 1.4.11.Final stopping
  
2017-09-29 03:22:12,215 INFO (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = com.mysql
  
2017-09-29 03:22:12,233 INFO (MSC service thread 1-7) WFLYSRV0050: WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) stopped in 123ms
  
2017-09-29 03:22:12,249 INFO (main) WELD-ENV-002001: Weld SE container internal shut down
  
2017-09-29 03:22:12,250 ERROR (main) java.lang.reflect.InvocationTargetException
  
2017-09-29 03:22:12,250 ERROR (main)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  
2017-09-29 03:22:12,250 ERROR (main)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  
2017-09-29 03:22:12,250 ERROR (main)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  
2017-09-29 03:22:12,250 ERROR (main)   at java.lang.reflect.Method.invoke(Method.java:498)
  
2017-09-29 03:22:12,250 ERROR (main)   at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
  
2017-09-29 03:22:12,252 ERROR (main)   at org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
  
2017-09-29 03:22:12,252 ERROR (main)   at org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
  
2017-09-29 03:22:12,252 ERROR (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,252 ERROR (main)   Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,252 ERROR (main)   Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
  
2017-09-29 03:22:12,252 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
  
2017-09-29 03:22:12,252 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
  
2017-09-29 03:22:12,252 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
  
2017-09-29 03:22:12,253 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
  
2017-09-29 03:22:12,253 ERROR (main)   at org.wildfly.swarm.Swarm.deploy(Swarm.java:447)
  
2017-09-29 03:22:12,253 ERROR (main)   at org.wildfly.swarm.Swarm.main(Swarm.java:630)
  
2017-09-29 03:22:12,253 ERROR (main)   ... 7 more
  
2017-09-29 03:22:12,253 ERROR (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,253 ERROR (main)   Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,253 ERROR (main)   Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
  
2017-09-29 03:22:12,253 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
  
2017-09-29 03:22:12,253 ERROR (main)   ... 12 more
  
2017-09-29 03:22:12,253 ERROR (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
  
2017-09-29 03:22:12,254 ERROR (main)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  
2017-09-29 03:22:12,254 ERROR (main)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  
2017-09-29 03:22:12,254 ERROR (main)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  
2017-09-29 03:22:12,254 ERROR (main)   at java.lang.reflect.Method.invoke(Method.java:498)
  
2017-09-29 03:22:12,254 ERROR (main)   at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
  
2017-09-29 03:22:12,254 ERROR (main)   at org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
  
2017-09-29 03:22:12,254 ERROR (main)   at org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
  
2017-09-29 03:22:12,254 ERROR (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,254 ERROR (main)   Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,254 ERROR (main)   Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
  
2017-09-29 03:22:12,255 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
  
2017-09-29 03:22:12,255 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
  
2017-09-29 03:22:12,255 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
  
2017-09-29 03:22:12,255 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
  
2017-09-29 03:22:12,255 ERROR (main)   at org.wildfly.swarm.Swarm.deploy(Swarm.java:447)
  
2017-09-29 03:22:12,255 ERROR (main)   at org.wildfly.swarm.Swarm.main(Swarm.java:630)
  
2017-09-29 03:22:12,255 ERROR (main)   ... 7 more
  
2017-09-29 03:22:12,256 ERROR (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,256 ERROR (main)   Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service
  
2017-09-29 03:22:12,256 ERROR (main)   Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
  
2017-09-29 03:22:12,256 ERROR (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
  
2017-09-29 03:22:12,256 ERROR (main)   ... 12 more
  
页: [1]
查看完整版本: K8s的POD连接数据库时报错