BZ 905210 retrieval of alertCount failed for requested xml content type
[BZ 907037 - Missing Column in Schedules Table] Schedule ID column added. By default it is a hidden field and if needed, it has to be enabled in the table header menu.
[BZ 907558] - JavaCommandLine and subclasses now parse the commandline lazily
to prevent calling overriden methods in super-class constructor.
A couple of other cosmetic improvements like static logger, etc.
Bug 885664 OpenSSHD and MySQL availability check may report stale data part 2

Found the reason why Sigar can return wrong value on consecutive calls to getProcState:
http://communities.vmware.com/message/2187972#2187972

So now:
Get rid of 2 seconds interval check in ProcessInfo#refresh (no longer)
Update regression tests
Add logging for tests
Get rid of state double check in ResourceContext#getNativeProcess
Clean unused things in SigarAccess and OsProcessUtility
[Bug 907407 - RHQ master build fails starting - Failed to load module: deployment.rhq.ear.rhq-enterprise-server-ejb3.jar:main]
Server JAR has a dependency on the OJDBC driver because Quartz sometimes needs
to load a BLOB class from the driver. Postgres installs will not have (and
don't need) the Oracle driver, so we declared the dependency "optional" in
jboss-deployment-structure.xml.  But "optional" just means AS7 will ignore the
fact that the module may not exist at all.  Our build and install  process
is simplified by always creating the oracle driver module structure. But "optional"
will not ignore the fact that the module directory is empty (no jar file). So,
this commit ensures an empty/mock OJDBC driver jar will be placed in the
module directory if the driver is not available at build time.

The JAR has a readme file inside describing the process of how to install
a real driver (by providing a wiki link).  We felt it was easier to provide
the whole structure and just let users drop in the real driver as opposed to
not providing the module structure at all, and making them build it.  For users
following the Oracle setup/prerequiste docs the steps are unchanged. For postgres
installs these changes should just make things work.
Arquillian container version should be independent from the container version due to artifact dependencies.
BZ 907029 - Make the reports available at /rest/ as well.
[BZ 902823 - Nonsense data returned as backing content of non-content-backed resources] The UnsupportedOperationException is thrown when the resource is non-content-backed. I was checking also the usages of the method and it seems to be ok.
Adding the Hadoop plugin to the validate-all-plugins module.
Fixing the build. It was failing because of message "Component class [org.rhq.plugins.hadoop.JobJarComponent] for resource type [Job Jar] from plugin [hadoop] does not support the content management facet but defines package types.". The skeleton implementation has been added.
[Bug 907407 - RHQ master build fails starting - Failed to load module: deployment.rhq.ear.rhq-enterprise-server-ejb3]
A fix to the original fix
[Bug 907407 - RHQ master build fails starting - Failed to load module: deployment.rhq.ear.rhq-enterprise-server-ejb3] The dummy oracle driver was created by 7zip, now it is plain old .zip renamed to .jar
Fix a bug in the ResourceType pojo to ResourceType entity conversion code.
Criteria String matching is *fuzzy* (i.e. substring matching) by default. This
needs to have the Criteria.setStrict(true) added to make it exact.

In the end I got rid of the Criteria query in favor of an existing NamedQuery,
for a possible perf boost as the query could be executed many times during a
large inventory merge.
Make sure Criteria.setStrict(true) is set when using a Criteria search where
exact matches are expected and substrings could return unwanted results.

I found these just looking for the 'addFilter.*Name' in server jar. In most cases
a name filter will want to be exact.

Keep an eye out for other similar cases.
BZ 906155 text/plain is not supported, only json,xml,html
Squashed commit of the following:

commit 90b9bf394e7282cc2f509548440b2100540a6045
Merge: d928dea 74e469c
Author: John Mazzitelli <mazz@redhat.com>
Date:   Thu Feb 7 11:47:51 2013 -0500

    Merge remote-tracking branch 'origin/master' into bug/902406

commit d928dea3f5484c315f7125a6ee1100cb0ab66f69
Author: John Mazzitelli <mazz@redhat.com>
Date:   Fri Feb 1 19:11:17 2013 -0500

    clean up the StopWatch toString

commit 0c4f425ce9499b82c70b0447348f15273b91d0a5
Author: John Mazzitelli <mazz@redhat.com>
Date:   Fri Feb 1 17:59:36 2013 -0500

    add some debugging for sync timings

commit a2d3d1ba9278c2d2847a0eb4381ce09ee1475b0d
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Fri Feb 1 15:32:38 2013 -0500

    InventoryManager tweeks
    - return to debug logging
    - make the sync batch size configurable

commit a9d9edd07ce3a53df0c994b098df078273aa91eb
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Fri Feb 1 15:00:41 2013 -0500

    Change to private vars I guess means a change to Serialization id

commit 2e223b0da5b8643d38cc970482a513c8f8dd4ee8
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Fri Feb 1 14:33:00 2013 -0500

    Protect against NotNull assumptions

commit 03175821fa0cf8ad77d01691f72e71c8a920327c
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Fri Feb 1 14:31:53 2013 -0500

    Add some null protection to addChildResource

commit 5c08fe27afdd5712622fb2f212e6496bdd082976
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Fri Feb 1 12:50:50 2013 -0500

    Fix up some stuff in getResourcesAsList
    - new filtering for better perf
    - pull optional data we need to send to the agent

commit 5c6b126d93845163b2d8138995cd9d70538084cf
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Fri Feb 1 12:50:01 2013 -0500

    Add a new filter for ResourceCriteria, for a list of
    InventoryStatuses.  And also add a convenience method
    to InventoryStatus to get just the set of enums for resources
    in Inventory.

commit 76a2ad16d3e45fc6a7aab59d273e7626deed23ad
Author: John Mazzitelli <mazz@redhat.com>
Date:   Fri Feb 1 11:46:41 2013 -0500

    just make it easier to debug this - rather than pass the find results directly in the argument list, put it in a local var

commit f658f9542ecb953249b7ba5859abfb6b72221057
Author: John Mazzitelli <mazz@redhat.com>
Date:   Thu Jan 31 18:22:05 2013 -0500

    make a array copy of the IDs

commit 270606f4c7613efd3444df25f872230dc1c55de2
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Thu Jan 31 17:38:48 2013 -0500

    Hopefully get more speed in mergeUnknownResource logic by
    making a single criteria query for a batch of ids, and passing
    Integers by array.

commit 3a537379ea8ff95145c876d3ba9ca7c771489c92
Author: John Mazzitelli <mazz@redhat.com>
Date:   Thu Jan 31 17:14:12 2013 -0500

    opp.. no need to pass this param

commit 3c0c3d47c86c3e1aa0b4ee7617924ba660f88ec7
Author: John Mazzitelli <mazz@redhat.com>
Date:   Thu Jan 31 17:11:32 2013 -0500

    * make sure to send proper object over the wire
    * don't need parent param

commit 4d3f721141b42c1e1ac6eed3a93124f51fbae3e6
Author: Jay Shaughnessy <jshaughn@jshaughn.csb>
Date:   Thu Jan 31 15:43:28 2013 -0500

    Try to batch unknown resource merge in the inventory sync to
    help with large inventories and an agent start --purgeData
    - also fix issues with server service annotations
Move arquillian container dependency to a profile that is activated if tests are not skipped.

More test dependencies to be moved here if the set of sub-dependencies is complex.
Changes to Plugin and ResourceType deletion
- refactor PluginManagerBean.deletePlugins for scalability and perf by avoiding
  an umbrella transaction and allowing for deferred resource removal.
- refactor ResourceMetadataManagerBean.removeObsoleteTypes to utilize the same
  approach as plugin deletion for type removal.
- fix bug in ResourceManagerBean.uninventoryResources() that did not utilize
  a new transaction for each resource uninventory.
- Various perf enhancements.
  - avoid unnecessary and timely authz checks when uninventory is being performed
    by overlord/inventoryManager
  - use overlord a little more efficiently in places (but still take into
    consideration its session timeout limit).
- Add a little defensive coding to AsyncResourceDeleteJob to log less if
  the doomed resource has already been removed. This can happen when the quartz job
  runs at the same time as a runtime plugin update that removes types.
[BZ Bug 893802 - [as7] Restart operation fails to start AS when shutdown hasn't completed when start script is invoked] If the AS is deployed on the same node as the agent, the check whether the process is runing or not is done in a loop once a second. This new check was added after the original (using the DMR api polling) check. In total, the AS has up to 20 second to finish its work and completely shut down.
Fix issue with SLSB invocation.