Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-613

GlassFish - succesful deployment with warning considered failed

    XMLWordPrintable

Details

    • Release Notes

    Description

      When deploying applications that use GlassFish's built-in database, the deployment often succeeds with a warning like the one mentioned below. The "SEQUENCE" already exists is a very common case.

      Unfortunately, arquillian-glassfish-container treats every response with non-success response as deployment failures - which is wrong. As a result, an application that would normally deploy with a warning and work as expected cannot be tested with Arquillian ATM.

      The proposed solution is to log the WARNING message and consider the deployment successful.

      <?xml version="1.0" encoding="UTF-8" standalone="no"?><map><entry key="message" value="&quot;http://localhost:4848/management/domain/applications/application/seam-booking&quot; created successfully.&#10;&#10;PER01003: Deployment encountered SQL Exceptions:&#10;&#9;PER01000: Got SQLException executing statement &quot;CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(15), PRIMARY KEY (SEQ_NAME))&quot;: java.sql.SQLException: Table/View 'SEQUENCE' already exists in Schema 'APP'."/><entry key="exit_code" value="WARNING"/><entry key="command"/><entry key="subReports"><list><map><entry key="message" value="&#10;PER01003: Deployment encountered SQL Exceptions:&#10;&#9;PER01000: Got SQLException executing statement &quot;CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(15), PRIMARY KEY (SEQ_NAME))&quot;: java.sql.SQLException: Table/View 'SEQUENCE' already exists in Schema 'APP'."/><entry key="exit_code" value="WARNING"/><entry key="command"/></map></list></entry></map>
      

      Attachments

        Issue Links

          Activity

            People

              aslak@redhat.com Aslak Knutsen
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: