Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 852030

Summary: qpid-ra-0.18.rar META-INF
Product: Red Hat Enterprise MRG Reporter: ppecka <ppecka>
Component: qpid-jcaAssignee: Weston M. Price <wprice>
Status: CLOSED CURRENTRELEASE QA Contact: ppecka <ppecka>
Severity: high Docs Contact:
Priority: high    
Version: 2.2CC: cdewolf, iboverma, jross, tross
Target Milestone: 2.2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-jca-0.18-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 17:41:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for multiple ra/jboss-ra.xml inclusions none

Description ppecka 2012-08-27 11:51:15 UTC
Description of problem:
Deployment of qpid-ra-0.18.rar on JBoss EAP 5.1.2 fails.
Reason: double occurence of ./META-INF/{jboss-ra,ra}.xml
qpid-ra-0.18.rar/META-INF/{jboss-ra,ra}.xml
vs.
qpid-ra-0.18.rar/qpid-ra-0.18.jar/META-INF/{jboss-ra,ra}.xml
Resolution:
From perspective of JCA 1.5 spec - files in qpid-ra-0.18.rar/qpid-ra-0.18.jar/META-INF/{jboss-ra,ra}.xml should be removed






Version-Release number of selected component (if applicable):
qpid-jca-0.18-1.el5

How reproducible:
100%

Steps to Reproduce:
1. start jboss server with hdscanner enabled
2. copy qpid-ra.rar into domains deploy directory
3. check log for exception
  
Actual results:
deployment of qpid-ra.rar fails (from EAP log)

07:09:13,682 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/mnt/hudson_workspace/workspace/MRG-EAP-tck5-eap51-jms-mrg-matrix/MODULE/appclient/jdk/java16_default/label/mrg37/work/jboss-eap-5.1/jboss-as/server/cts/deploy/qpid-ra-0.18.rar/ state=PreParse mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/mnt/hudson_workspace/workspace/MRG-EAP-tck5-eap51-jms-mrg-matrix/MODULE/appclient/jdk/java16_default/label/mrg37/work/jboss-eap-5.1/jboss-as/server/cts/deploy/qpid-ra-0.18.rar/qpid-ra-0.18.jar/META-INF/jboss-ra.xml
	at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:307)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:236)
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
	at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
	at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
	at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
	at org.jboss.resource.deployers.RARParserDeployer.mergeMetaData(RARParserDeployer.java:110)
	at org.jboss.resource.deployers.RARParserDeployer.mergeMetaData(RARParserDeployer.java:47)
	at org.jboss.deployers.vfs.spi.deployer.MultipleVFSParsingDeployer.mergeMetaData(MultipleVFSParsingDeployer.java:179)
	at org.jboss.deployers.vfs.spi.deployer.MultipleVFSParsingDeployer.mergeFiles(MultipleVFSParsingDeployer.java:164)
	at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:243)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:350)
	... 30 more




Expected results:
07:07:53,128 INFO  [QpidResourceAdapter] Qpid resource adapter started

Comment 3 Weston M. Price 2012-08-29 15:48:01 UTC
I believe I have a fix for this. I need to do some testing, but it doesn't require any code changes and is a fix inside the build.xml file in the JCA project.

Comment 4 Weston M. Price 2012-08-29 16:30:49 UTC
Created attachment 607955 [details]
Patch for multiple ra/jboss-ra.xml inclusions

Simple fix for reported issue.

Comment 5 ppecka 2012-09-13 11:25:29 UTC
seen
 INFO  [QpidResourceAdapter] Qpid resource adapter started
-> VERIFIED