Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-1570

[EAP70-1.5] Container should not fail to boot when no database is found in env variables

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • EAP70 1.5.0.GA
    • EAP7
    • None

      Currently when we run the container with following environment variables:

            | variable                     | value                |
            | DB_SERVICE_PREFIX_MAPPING    | test-postgresql=TEST |
            | TEST_USERNAME                | marek                |
            | TEST_PASSWORD                | hardtoguess          |
            | TEST_POSTGRESQL_SERVICE_HOST | 10.1.1.1             |
            | TEST_POSTGRESQL_SERVICE_PORT | 5432                 |
      

      the container fails to boot with following message:

      12:15:10,287 INFO  [stdout] (JolokiaStart) I> No access restrictor found, access to any MBean is allowed
      12:15:10,293 INFO  [stdout] (JolokiaStart) Jolokia: Agent started with URL https://172.17.0.2:8778/jolokia/
      12:15:10,821 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
      	at org.jboss.as.server.ServerService.boot(ServerService.java:362) [wildfly-server-2.1.13.Final-redhat-1.jar:2.1.13.Final-redhat-1]
      	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:301)
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_121]
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[138,9]
      Message: WFLYCTL0133: Missing required attribute(s): default-job-repository
      	at org.jboss.as.controller.parsing.ParseUtils.missingRequired(ParseUtils.java:161)
      	at org.wildfly.extension.batch.jberet.BatchSubsystemParser_1_0.readElement(BatchSubsystemParser_1_0.java:97)
      	at org.wildfly.extension.batch.jberet.BatchSubsystemParser_1_0.readElement(BatchSubsystemParser_1_0.java:50)
      	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
      	at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
      	at org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546) [wildfly-server-2.1.13.Final-redhat-1.jar:2.1.13.Final-redhat-1]
      	at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242) [wildfly-server-2.1.13.Final-redhat-1.jar:2.1.13.Final-redhat-1]
      	at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141) [wildfly-server-2.1.13.Final-redhat-1.jar:2.1.13.Final-redhat-1]
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103) [wildfly-server-2.1.13.Final-redhat-1.jar:2.1.13.Final-redhat-1]
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49) [wildfly-server-2.1.13.Final-redhat-1.jar:2.1.13.Final-redhat-1]
      	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
      	at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
      	... 3 more
      
      12:15:10,822 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      12:15:10,862 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0050: JBoss EAP 7.0.5.GA (WildFly Core 2.1.13.Final-redhat-1) stopped in 25ms
      

      Instead a warning should be printed (this is already implemented), but datasource configuration should not be altered in a breaking way.

              wdecoste1@redhat.com William Decoste (Inactive)
              rhn-engineering-mgoldman Marek Goldmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: