1 Reply Latest reply on Feb 27, 2013 10:15 AM by jesper.pedersen

    JCA validation report generation

    romanj

      Hello,

      I would like to strat discussion about this JIRA: https://issues.jboss.org/browse/AS7-528 which has been left to comminity.

      Description of the issue itself is not very descriptive

       

      Validation report regarding to IronJacamar documentation(http://docs.jboss.org/ironjacamar/userguide/1.1/en-US/html/validator.html#validator_reports) is something like this:

      Severity: ERROR

      Section: 19.4.2

      Description: A ResourceAdapter must implement a "public int hashCode()" method.

      Code: com.mycompany.myproject.ResourceAdapterImpl

       

      Severity: ERROR

      Section: 19.4.2

      Description: A ResourceAdapter must implement a "public boolean equals(Object)" method.

      Code: com.mycompany.myproject.ResourceAdapterImpl

       

       

      Report like above is passed to Jboss logs on validation failure.

       

      When validation finished with success there is no message pass to jboss log even though validation contain warnings. This have place when failOnWarn=false and there are warnings. In order to resolve this issue as a first step I provided a patch which pass validation warnings to IronJacamar logger(attached to JIRA). Previously they were just ommited and never printed.

      Any ideas on this?

        • 1. Re: JCA validation report generation
          jesper.pedersen

          That JIRA would be to actually write out the validation report to a directory - like the command line validation tool does.

           

          It is sort of related to https://issues.jboss.org/browse/JBJCA-751 which always will log errors when if turned off.

           

          I guess you are looking for an additional setting to also log the WARNINGs to the output (log / file).

           

          You need to look at the printFailuresLog method, and work from there, as the attached patch isn't correct.