Bug 1317993 - Application fails to deploy on EAP7 when the rt filter is installed
Summary: Application fails to deploy on EAP7 when the rt filter is installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- JBoss EAP 7, Core Server
Version: JON 3.3.5
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: DR01
: JON 3.3.6
Assignee: Thomas Segismont
QA Contact: Filip Brychta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-15 17:22 UTC by Filip Brychta
Modified: 2016-07-27 15:33 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-27 15:33:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
application (7.55 KB, application/zip)
2016-03-15 17:22 UTC, Filip Brychta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1519 0 normal SHIPPED_LIVE Critical: Red Hat JBoss Operations Network 3.3.6 update 2016-08-26 00:44:36 UTC

Description Filip Brychta 2016-03-15 17:22:22 UTC
Created attachment 1136677 [details]
application

Description of problem:
Application built from eap quickstarts https://github.com/jboss-developer/jboss-eap-quickstarts/tree/7.0.x-develop/helloworld
fails to deploy on eap7 when rt filter is installed.

The application doesn't contain /WEB-INF/web.xml which could be the cause.
web.xml is optional in Java EE 6 so it should not be required by rt filter.

Version-Release number of selected component (if applicable):
JON3.3.5.DR01

How reproducible:
Always

Steps to Reproduce:
1. install rt filter to eap7 - follow https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.3/html/Users_Guide/jboss-rt-seven.html but use rhq-rtfilter-wfly-10-subsystem instead of rhq-rtfilter-subsystem
2. try to deploy attached application

Actual results:
2016-03-15 12:57:53,198 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "hello.war" (runtime-name: "hello.war")
2016-03-15 12:57:53,449 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."hello.war".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.unit."hello.war".DEPENDENCIES: WFLYSRV0153: Failed to process phase DEPENDENCIES of deployment "hello.war"
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at org.rhq.helpers.rtfilter.subsystem.wfly10.deployment.RtFilterDeploymentUnitProcessor.deploy(RtFilterDeploymentUnitProcessor.java:69)
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
	... 5 more

2016-03-15 12:57:53,452 ERROR [org.jboss.as.controller.management-operation] (management task-1) WFLYCTL0013: Operation ("deploy") failed - address: ([{"deployment" => "hello.war"}]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"hello.war\".DEPENDENCIES" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"hello.war\".DEPENDENCIES: WFLYSRV0153: Failed to process phase DEPENDENCIES of deployment \"hello.war\"
    Caused by: java.lang.NullPointerException"}}
2016-03-15 12:57:53,453 ERROR [org.jboss.as.server] (management task-1) WFLYSRV0021: Deploy of deployment "hello.war" was rolled back with the following failure message: 
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"hello.war\".DEPENDENCIES" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"hello.war\".DEPENDENCIES: WFLYSRV0153: Failed to process phase DEPENDENCIES of deployment \"hello.war\"
    Caused by: java.lang.NullPointerException"}}
2016-03-15 12:57:53,459 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment hello.war (runtime-name: hello.war) in 4ms


Expected results:
Application is deployed

Additional info:
When the rt filter is removed from eap7, the application is deployed correctly.

Comment 1 Thomas Segismont 2016-03-15 17:32:14 UTC
Pull request sent https://github.com/rhq-project/rhq/pull/221

#getWebMetaData only gives you the content from web.xml, and may be null if deployment descriptor is omitted
#getMergedJBossWebMetaData gives you the content aggregated from all sources (defaults from subsystem config, values from deployment descriptor), and never returns null

Comment 2 Thomas Segismont 2016-03-16 08:38:08 UTC
Merged in master

commit 4ffe7c87e26400636e169e0400d9dd0e13b128e5
Merge: 49464ba 9938a47
Author: Michael Burman <yak>
Date:   Tue Mar 15 19:45:29 2016 +0200

    Merge pull request #221 from tsegismont/bug/1317993

Comment 3 Mike McCune 2016-03-28 23:42:22 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Simeon Pinder 2016-06-18 01:12:04 UTC
Moving to ON_QA as available to test with JON 3.3.6 DR01 brew build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=499890

Comment 7 errata-xmlrpc 2016-07-27 15:33:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-1519.html


Note You need to log in before you can comment on or make changes to this bug.