Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129998

Non-tomcat app servers fail to connect to JNDI jdbc data source

    Details

      Description

      Steps to Reproduce:

      1. Configure Wildfly (or Websphere, Weblogic) with JNDI data source
        See configuration inĀ https://github.com/liferay/liferay-portal/blob/master/build-test.xml#L2000
      2. Start portal

      Expected Result:
      Portal can start successfully use JDNI database connection.

      Actual Result:
      JDNI connection fails

        [waitfor] [0m[33m21:27:58,652 WARN  [org.jboss.as.jaxrs] (MSC service thread 1-3) WFLYRS0018: Explicit usage of Jackson annotation in a JAX-RS deployment; the system will disable JSON-B processing for the current deployment. Consider setting the 'resteasy.preferJacksonOverJsonB' property to 'false' to restore JSON-B.
        [waitfor] [0m[0m21:27:58,655 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.mariadb.jdbc.Driver (version 1.1)
        [waitfor] [0m[0m21:27:58,659 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 42.2)
        [waitfor] [0m[0m21:27:58,664 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.cj.jdbc.Driver (version 8.0)
        [waitfor] [0m[0m21:27:58,665 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0004: Deploying JDBC-compliant driver class org.hsqldb.jdbc.JDBCDriver (version 2.3)
        [waitfor] [0m[33m21:27:58,666 WARN  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0013: Deployment ROOT.war contains CDI annotations but no bean archive was found (no beans.xml or class with bean defining annotations was present).
        [waitfor] [0m[0m21:27:58,708 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = ROOT.war_org.mariadb.jdbc.Driver_1_1
        [waitfor] [0m[0m21:27:58,710 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0018: Started Driver service with driver-name = ROOT.war_org.postgresql.Driver_42_2
        [waitfor] [0m[0m21:27:58,710 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = ROOT.war_com.mysql.cj.jdbc.Driver_8_0
        [waitfor] [0m[0m21:27:58,710 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = ROOT.war_org.hsqldb.jdbc.JDBCDriver_2_3
        [waitfor] [0m[31m21:27:58,774 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
        [waitfor]     ("subsystem" => "datasources"),
        [waitfor]     ("data-source" => "LiferayPool")
        [waitfor] ]) - failure description: {
        [waitfor]     "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.mariadb"],
        [waitfor]     "WFLYCTL0180: Services with missing/unavailable dependencies" => [
        [waitfor]         "jboss.driver-demander.java:/jdbc/LiferayPool is missing [jboss.jdbc-driver.mariadb]",
        [waitfor]         "org.wildfly.data-source.LiferayPool is missing [jboss.jdbc-driver.mariadb]"
        [waitfor]     ]
        [waitfor] }
        [waitfor] [0m[31m21:27:58,775 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
        [waitfor]     ("subsystem" => "datasources"),
        [waitfor]     ("data-source" => "LiferayPool")
        [waitfor] ]) - failure description: {
        [waitfor]     "WFLYCTL0412: Required services that are not installed:" => [
        [waitfor]         "jboss.jdbc-driver.mariadb",
        [waitfor]         "jboss.jdbc-driver.mariadb"
        [waitfor]     ],
        [waitfor]     "WFLYCTL0180: Services with missing/unavailable dependencies" => [
        [waitfor]         "jboss.driver-demander.java:/jdbc/LiferayPool is missing [jboss.jdbc-driver.mariadb]",
        [waitfor]         "org.wildfly.data-source.LiferayPool is missing [jboss.jdbc-driver.mariadb]",
        [waitfor]         "org.wildfly.data-source.LiferayPool is missing [jboss.jdbc-driver.mariadb]"
        [waitfor]     ]
        [waitfor] }
        [waitfor] [0m[0m21:27:58,783 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 42) WFLYSRV0010: Deployed "ROOT.war" (runtime-name : "ROOT.war")
        [waitfor] [0m[0m21:27:58,794 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
        [waitfor] WFLYCTL0184:    New missing/unsatisfied dependencies:
        [waitfor]       service jboss.jdbc-driver.mariadb (missing) dependents: [service jboss.driver-demander.java:/jdbc/LiferayPool, service org.wildfly.data-source.LiferayPool] 
        [waitfor] WFLYCTL0448: 328 additional services are down due to their dependencies being missing or failed
        [waitfor] [0m[0m21:27:58,934 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
        [waitfor] [0m[0m21:27:58,936 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
        [waitfor] [0m[0m21:27:58,936 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
        [waitfor] [0m[31m21:27:58,936 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 14.0.0.Final (WildFly Core 6.0.1.Final) started (with errors) in 9399ms - Started 1366 of 1885 services (330 services failed or missing dependencies, 329 services are lazy, passive or on-demand)
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/jps_output
       [parallel] {
       [parallel]     "outcome" => "success",
       [parallel]     "result" => undefined
       [parallel] }
       [parallel] [0m[0m21:57:51,572 INFO  [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0236: Suspending server with no timeout. 

      Reproduced on:
      Master: 542ac19ddfbb24263d429cb2041b65f6d8c42f73

      Caused by: LPS-129817. Confirmed the issue is no longer reproducible when reverting this ticket.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              victor.ware Victor Ware
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Victor Ware
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 weeks, 5 days ago

                  Packages

                  Version Package