Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-959

Some XTS services fail to deploy to AS7 when deploying from Arquillian based test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.16.0.Beta1
    • 4.15.3
    • XTS
    • None
    • Hide

      1. git clone git@github.com:istudens/jboss-as.git
      2. cd jboss-as
      3. git checkout xts_tests
      4. ./build.sh clean install -DskipTests
      5. cd testsuite/integration
      6. mvn clean test -Dintegration.module -Dxts.integration.tests -Dtest=XTSUnitTestCase

      Show
      1. git clone git@github.com:istudens/jboss-as.git 2. cd jboss-as 3. git checkout xts_tests 4. ./build.sh clean install -DskipTests 5. cd testsuite/integration 6. mvn clean test -Dintegration.module -Dxts.integration.tests -Dtest=XTSUnitTestCase

    Description

      Some of the XTS services fail to deploy to AS7 when deploying by an Arquillian test within the AS7 testsuite. The org.jboss.as.webservices.publish.EndpointPublisherImpl.publish() method fails in org.apache.naming.resources.FileDirContext.setDocBase() method which gets an invalid path to the AS7 tmp directory in which the context path occurs twice, see the stacktrace below and take notice of 'target/xts/standalone/tmp' substring in it.

      This issue does not occur when the AS7 is manually started from the command line, but it only occurs when started by Arquillian from the new AS7 testsuite. However, it does not seem to hit all the XTS functionality as the wsas and wscf tests pass. Only ws-c, ws-t and ws-tx tests are hit by it.

      The stacktrace snippet from target/xts/standalone/logs/server.log:

      14:48:30,579 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-2) WSDL published to: file:/home/studensky/job/git/jboss-as/testsuite/integration/target/xts/standalone/data/wsdl/ws-t11-client.deployment/TerminationParticipantService.wsdl
      14:48:30,585 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-7) Setting the server's publish address to be http://localhost:8080/ws-t11-participant/BusinessAgreementWithCoordinatorCompletionParticipantService
      14:48:30,597 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error starting static Resources: java.lang.IllegalArgumentException: Document base /home/studensky/job/git/jboss-as/testsuite/integration/target/xts/standalone/tmp/target/xts/standalone/tmp/ws-t11-client does not exist or is not a readable directory
      	at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:148) [jbossweb-7.0.3.Final.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3554) [jbossweb-7.0.3.Final.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3723) [jbossweb-7.0.3.Final.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.jboss.as.webservices.publish.EndpointPublisherImpl.startWebApp(EndpointPublisherImpl.java:133) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:103) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:81) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:76) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.jboss.as.webservices.service.EndpointPublishService.start(EndpointPublishService.java:87) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
      	at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
      
      14:48:30,599 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error in resourceStart()
      14:48:30,603 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/ws-t11-client] startup failed due to previous errors
      14:48:30,603 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ws-t11-client] has not been started
      

      The list of services affected by this issue:
      /ws-t11-client
      /ws-t11-participant
      /ws-t11-coordinator
      /ws-c11

      Attachments

        1. jbtm-959-target.tar.gz
          7.89 MB
          Paul Robinson
        2. log.txt
          2.28 MB
          Paul Robinson

        Activity

          People

            paul.robinson@redhat.com Paul Robinson
            istudens@redhat.com Ivo Studensky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: