Bug 1150687 - Unexpected failure of JBossWS testsuite - removing connector requires reload
Summary: Unexpected failure of JBossWS testsuite - removing connector requires reload
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Services
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DR10
: EAP 6.4.0
Assignee: Jan Blizňák
QA Contact: Rostislav Svoboda
URL:
Whiteboard:
Depends On: 1153972
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-08 16:47 UTC by Jan Blizňák
Modified: 2019-08-19 12:42 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:42:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Productization patch for JBossWS sources (19.85 KB, patch)
2014-10-08 16:47 UTC, Jan Blizňák
no flags Details | Diff

Description Jan Blizňák 2014-10-08 16:47:22 UTC
Created attachment 945096 [details]
Productization patch for JBossWS sources

Description of problem:
Running JBossWS testsuite I got unexpected failures of testcases using custom HTTPS connector which is added/removed as needed.

Version-Release number of selected component (if applicable):
EAP 6.4.0.DR4, JBossWS 4.3.1.Final (productized patch applied), JDK 1.7.0_67 with installed JCE Unlimited Strength Jurisdiction Policy Files + BouncyCastle 1.51

How reproducible:
always

Steps to Reproduce:
1. checkout JBossWS project ($TS) svn co http://anonsvn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf-4.3.1.Final
2. apply productization patch: (cd $TS; patch -p0 < $PATCH_FOR_DR4) 
3. extract top level dir of EAP maven repo ($EAP_REPO) - so that dirs exist $EAP_REPO/org, $EAP_REPO/com etc. 
4. extract EAP ($EAP_HOME) 
5. start EAP (on background/another terminal)
6. copy endorsed libraries: cp $EAP_HOME/modules/system/layers/base/org/jboss/ws/cxf/jbossws-cxf-factories/main/jbossws-cxf-factories-4.3.1.Final.jar $TS/modules/endorsed/target/
7. run testsuite:
mvn -Dmaven.repo.local=$EAP_REPO -Djbossws.integration.target=jboss720 -Djboss720.home=$EAP_HOME -Djboss.bind.address=localhost -Ptestsuite,hudson,jboss720 clean integration-test
(your ~/.m2/settings.xml must define repository http://repository.jboss.org/nexus/content/groups/public/ or add custom settings.xml to the command above)

7a. you don't have to run whole testsuite, add -Dtest=xxx property to the command above, where xxx is for example WSSecurityPolicyExamples21xTestCase, WSTrustBearerTestCase, WSSecurityPolicyExamples23xTestCase

To repeat you need to start with fresh EAP, so start at least with step 4.

Actual results:
with 6.4.0.DR4 some testcases where custom HTTPS connector is added failed with:

{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014749: Operation handler failed: org.jboss.msc.service.DuplicateServiceException: Service jboss.web.connector.jbws-test-https-connector is already registered"}}

Expected results:
with 6.4.0.DR3 and earlier they don't fail with this issue

Comment 1 Jan Blizňák 2014-10-08 16:50:49 UTC
The connector can't be added because it really exists in EAP. It seems that the behaviour has changed in 6.4.0.DR4:

/subsystem=web/connector=abcd:remove now requires reload, so new one with same name can't be added until reload

Comment 2 Alessio Soldano 2014-10-16 10:55:41 UTC
Jan, I've cut a new release of the org.jboss.ws:jbossws-jboss720-tests-integration artifact (4.3.1.Final), including a fix for allowing resource service restart when removing the https connector in RemoteDeployer.
Please update your productization patch to have the following line in the stack main pom.xml:
<jbossws.jboss720.version>4.3.1.Final</jbossws.jboss720.version>

Comment 3 Rostislav Svoboda 2014-11-20 12:24:04 UTC
Moving to ON_QA, BZ 1153972 is VERIFIED.

Comment 4 Jan Blizňák 2014-11-20 13:00:42 UTC
Verified on 6.4.0.DR10


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